Class: TensorStream::Evaluator::OutputGroup

Inherits:
Object
  • Object
show all
Includes:
Enumerable
Defined in:
lib/tensor_stream/evaluator/base_evaluator.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_typesObject

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

#outputsObject

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

#eachObject



13
14
15
# File 'lib/tensor_stream/evaluator/base_evaluator.rb', line 13

def each
  @outputs.map { |output| yield output }
end