Method: TensorFlow.constant

Defined in:
lib/tensorflow.rb

.constant(value, dtype: nil, shape: nil) ⇒ Object



84
85
86
# File 'lib/tensorflow.rb', line 84

def constant(value, dtype: nil, shape: nil)
  Tensor.new(value, dtype: dtype, shape: shape)
end