The document discusses client-side deep learning and introduces MPSCNN, a library that allows running convolutional neural networks on iOS devices using Metal Performance Shaders. MPSCNN can import trained models from frameworks like TensorFlow and run them to perform tasks like object detection on images at 60 times per second. Client-side deep learning could enable new mobile applications for areas like self-driving cars, AI assistants, and cancer detection by taking advantage of on-device processing power.
2019/12/25 に開催した「みんなで Swift 復習会?GO! in 札幌」で使用した資料です。主にオープニング用の資料で、本編で使ったスライドは僅かで現場にいないと役に立たないかもしれませんが、何かの参考用に公開します。
実際の現場で使った本編資料は2ページですけれど、話が脱線する中で詳細に触れた項目が記載されていたページも数ページですけれど公開しておきました。
2018/11/09 の Swift 愛好会の LT で『Swift の let した変数に値を再代入してみよう』という問題提起をするのに使ったオープニング的なスライドです。
このスライドに「解答」は含まれていないので、この話題をきっかけにあれこれ試行錯誤して、さらにはそこから『どうして2回、代入することができたのか』みたいな理由を考える糸口にしてもらえたら嬉しいです。
This code snippet shows two switch statements in Swift. The first switch statement matches on a variable v and prints different outputs depending on which pattern matches. The second switch statement matches on a device variable and can match multiple patterns on one case or use a where clause to check for a suffix, printing outputs accordingly.
The document discusses control flow statements in Swift including if/else statements to check conditions, switch statements to check multiple options, and looping statements like for-in, while and repeat-while. It also provides examples of if let to safely unwrap optionals and the nil coalescing operator ?? to handle nil values.
2019/12/25 に開催した「みんなで Swift 復習会?GO! in 札幌」で使用した資料です。主にオープニング用の資料で、本編で使ったスライドは僅かで現場にいないと役に立たないかもしれませんが、何かの参考用に公開します。
実際の現場で使った本編資料は2ページですけれど、話が脱線する中で詳細に触れた項目が記載されていたページも数ページですけれど公開しておきました。
2018/11/09 の Swift 愛好会の LT で『Swift の let した変数に値を再代入してみよう』という問題提起をするのに使ったオープニング的なスライドです。
このスライドに「解答」は含まれていないので、この話題をきっかけにあれこれ試行錯誤して、さらにはそこから『どうして2回、代入することができたのか』みたいな理由を考える糸口にしてもらえたら嬉しいです。
This code snippet shows two switch statements in Swift. The first switch statement matches on a variable v and prints different outputs depending on which pattern matches. The second switch statement matches on a device variable and can match multiple patterns on one case or use a where clause to check for a suffix, printing outputs accordingly.
The document discusses control flow statements in Swift including if/else statements to check conditions, switch statements to check multiple options, and looping statements like for-in, while and repeat-while. It also provides examples of if let to safely unwrap optionals and the nil coalescing operator ?? to handle nil values.
20. // 普通に計算すれば、掛け算が優先
let a = 1 + 2 * 5 // 11
// 評価式の一部を.self で括ると…
let b = (1 + 2).self * 5 // 15
// でも.self がなくても同じ?
let c = (1 + 2) * 5 // 15
21. // 先に評価なら、このように Int 型になりそうだが
let a = (1 + 2) as Int * 3.5
// リテラルのまま存続して Double 型に落ち着く
let b = (1 + 2).self * 3.5 // 10.5
Binary operator '*' cannot be applied to operands
of type 'Int' and 'Double'
22. let value: Int = 10
let value: Double = 10
let value = 10 as Int32
let value = 10 + doubleValue