Class: TensorStream::Evaluator::OutputGroup
- Inherits:
-
Object
- Object
- TensorStream::Evaluator::OutputGroup
- Includes:
- Enumerable
- Defined in:
- lib/tensor_stream/evaluator/base_evaluator.rb
Instance Attribute Summary collapse
-
#data_types ⇒ Object
Returns the value of attribute data_types.
-
#outputs ⇒ Object
Returns the value of attribute outputs.
Instance Method Summary collapse
- #each ⇒ Object
-
#initialize(outputs = [], data_types = []) ⇒ OutputGroup
constructor
A new instance of OutputGroup.
Constructor Details
#initialize(outputs = [], data_types = []) ⇒ OutputGroup
Returns a new instance of OutputGroup.
8 9 10 11 |
# File 'lib/tensor_stream/evaluator/base_evaluator.rb', line 8 def initialize(outputs = [], data_types = []) @outputs = outputs @data_types = data_types end |
Instance Attribute Details
#data_types ⇒ Object
Returns the value of attribute data_types.
7 8 9 |
# File 'lib/tensor_stream/evaluator/base_evaluator.rb', line 7 def data_types @data_types end |
#outputs ⇒ Object
Returns the value of attribute outputs.
7 8 9 |
# File 'lib/tensor_stream/evaluator/base_evaluator.rb', line 7 def outputs @outputs end |
Instance Method Details
#each ⇒ Object
13 14 15 |
# File 'lib/tensor_stream/evaluator/base_evaluator.rb', line 13 def each @outputs.map { |output| yield output } end |