TensorFlow.jl
TensorFlow.jl copied to clipboard
`zeros` creates constant locally
The TF.jl implementation of zeros creates an array of zeros locally and then puts it into the graph. This is problematic if you're using a small client to drive a large distributed cluster (e.g. a TPU), both because the client can run out of memory and because you run into max message size limits.
FWIW, fill(TensorFlow.constant(0f0), dims...) seems to work fairly well as an implementation here.
Wanna just submit a PR to do that?