Surge icon indicating copy to clipboard operation
Surge copied to clipboard

Broadcasting

Open ajayjapan opened this issue 7 years ago • 1 comments

When using numpy dividing an matrix by a vector is possible via broadcasting.

Any opinions on implementing broadcasting in Surge? Some thing similar to what numpy does.

https://docs.scipy.org/doc/numpy/user/basics.broadcasting.html

ajayjapan avatar May 21 '17 22:05 ajayjapan

Not entirely an answer - but side note - with latest tensorflow - you can import Python + numpy with swift for tensorflow / it's not going to help for ios though.

// Import Python modules
let matplotlib = Python.import("matplotlib")
let np = Python.import("numpy")

https://github.com/tensorflow/swift https://github.com/tensorflow/swift-models/blob/stable/Autoencoder/Autoencoder.swift

johndpope avatar Aug 30 '18 16:08 johndpope