lib/tensor_stream/generated_stub/ops.rb
def ones_like(input, dtype: nil, name: nil)
      _op(:ones_like, input, data_type: dtype, name: name)
    end
def ones_like(input, dtype: nil, name: nil)
      _op(:ones_like, input, data_type: dtype, name: name)
    end
Creates a tensor with all elements set to 1.
 Given a single tensor (tensor), this operation returns a
 tensor of the same type and shape as tensor with all elements set to 1.
 Optionally, you can specify a new type (dtype) for the returned tensor.


 @param input A tensor

 Options:
 @option dtype Optional new data type to cast into
 @option name Optional name
 @return Tensor