Class: DNN::Tensor

Inherits:
Object
  • Object
show all
Defined in:
lib/dnn/core/tensor.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(data, link = nil) ⇒ Tensor

Returns a new instance of Tensor.



6
7
8
9
# File 'lib/dnn/core/tensor.rb', line 6

def initialize(data, link = nil)
  @data = data
  @link = link
end

Instance Attribute Details

#dataObject (readonly)

Returns the value of attribute data.



3
4
5
# File 'lib/dnn/core/tensor.rb', line 3

def data
  @data
end

Returns the value of attribute link.



4
5
6
# File 'lib/dnn/core/tensor.rb', line 4

def link
  @link
end