Avatar
omochimetaru 9/26/2018 5:09 AM
Swift for TensorFlow now has a Jupyter notebook tutorial, with latest available features like first-class autodiff on arbitrary structs, the new dataset API, and the parameter aggregate API. https://t.co/zHizoO9On7
Retweets
120
Likes
374
5:09 AM
Contribute to tensorflow/swift-tutorials development by creating an account on GitHub.
5:09 AM
Jupyterの中でSwiftでPython書いてるww
5:10 AM
func lossAndGradient(for input: Tensor<Float>, using model: IrisParameters, labels: Tensor<Int32>) -> (Float, IrisParameters) { let (loss, (_, modelGrad)) = #valueAndGradient(loss(for:using:labels:), wrt: .0, .1)(input, model, labels) return (loss, modelGrad) }
5:10 AM
これめちゃくちゃ面白いなw gradientを言語機能で書く