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:

Parameters:

  • shape

    A 1-D integer Tensor or ruby array. The shape of the output tensor.

  • dtype (Hash) (defaults to: :float32)

    a customizable set of options

  • name (Hash) (defaults to: nil)

    a customizable set of options

Options Hash (dtype:):

  • Optional (Object)

    name default (:float32)

Options Hash (name:):

  • Optional (Object)

    name

Returns:

  • Tensor



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