Method: TensorStream::OpStub#zeros
- Defined in:
- lib/tensor_stream/generated_stub/ops.rb
#zeros(shape, dtype: :float32, name: nil) ⇒ Object
Creates a tensor with all elements set to zero
Options:
775 776 777 |
# File 'lib/tensor_stream/generated_stub/ops.rb', line 775 def zeros(shape, dtype: :float32, name: nil) _op(:zeros, shape, dtype: dtype, name: name) end |