Class: DNN::Tensor
- Inherits:
-
Object
- Object
- DNN::Tensor
- Defined in:
- lib/dnn/core/tensor.rb
Instance Attribute Summary collapse
-
#data ⇒ Object
readonly
Returns the value of attribute data.
-
#link ⇒ Object
Returns the value of attribute link.
Instance Method Summary collapse
-
#initialize(data, link = nil) ⇒ Tensor
constructor
A new instance of Tensor.
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
#data ⇒ Object (readonly)
Returns the value of attribute data.
3 4 5 |
# File 'lib/dnn/core/tensor.rb', line 3 def data @data end |
#link ⇒ Object
Returns the value of attribute link.
4 5 6 |
# File 'lib/dnn/core/tensor.rb', line 4 def link @link end |