lib/tensor_stream/tensor.rb
# Base class that defines a tensor like interface
Base class that defines a tensor like interface
Base class that defines a tensor like interface
def to_h
      {
        name: @name,
        value: hashify_tensor(@value),
        dtype: @data_type,
        shape: @shape,
        const: !!is_const,
      }
    end
def to_h { name : @name , value : hashify_tensor ( @value ) , dtype : @data_type , shape : @shape , const : ! ! is_const , } end
Base class that defines a tensor like interface
Base class that defines a tensor like interface