lib/tensor_stream/ops.rb
def ones_like(tensor, dtype: nil, name: nil)
      _op(:ones_like, tensor, data_type: dtype, name: name)
    end
def ones_like(tensor, dtype: nil, name: nil)
      _op(:ones_like, tensor, 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.