Class: TensorStream::Buffer
- Inherits:
-
Object
- Object
- TensorStream::Buffer
- Defined in:
- lib/tensor_stream/evaluator/buffer.rb
Overview
this class represents an evaluator specific native buffer
Instance Attribute Summary collapse
-
#buffer ⇒ Object
Returns the value of attribute buffer.
-
#data_type ⇒ Object
Returns the value of attribute data_type.
-
#dirty ⇒ Object
Returns the value of attribute dirty.
-
#name ⇒ Object
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(data_type:, buffer:) ⇒ Buffer
constructor
A new instance of Buffer.
- #to_ruby ⇒ Object
Constructor Details
#initialize(data_type:, buffer:) ⇒ Buffer
Returns a new instance of Buffer.
6 7 8 9 |
# File 'lib/tensor_stream/evaluator/buffer.rb', line 6 def initialize(data_type:, buffer:) @data_type = data_type @buffer = buffer end |
Instance Attribute Details
#buffer ⇒ Object
Returns the value of attribute buffer.
4 5 6 |
# File 'lib/tensor_stream/evaluator/buffer.rb', line 4 def buffer @buffer end |
#data_type ⇒ Object
Returns the value of attribute data_type.
4 5 6 |
# File 'lib/tensor_stream/evaluator/buffer.rb', line 4 def data_type @data_type end |
#dirty ⇒ Object
Returns the value of attribute dirty.
4 5 6 |
# File 'lib/tensor_stream/evaluator/buffer.rb', line 4 def dirty @dirty end |
#name ⇒ Object
Returns the value of attribute name.
4 5 6 |
# File 'lib/tensor_stream/evaluator/buffer.rb', line 4 def name @name end |
Instance Method Details
#to_ruby ⇒ Object
11 12 13 |
# File 'lib/tensor_stream/evaluator/buffer.rb', line 11 def to_ruby buffer end |