Class: Tensorflow::Data::MapDataset
- Defined in:
- lib/tensorflow/data/map_dataset.rb
Constant Summary
Constants inherited from Dataset
Dataset::DEFAULT_READER_BUFFER_SIZE_BYTES
Instance Attribute Summary
Attributes inherited from Dataset
#output_shapes, #output_types, #variant_tensor
Instance Method Summary collapse
-
#initialize(input_dataset, function, other_arguments: []) ⇒ MapDataset
constructor
A new instance of MapDataset.
Methods inherited from Dataset
#batch, #data, #each, from_tensor_slices, from_tensors, #make_initializable_iterator, #make_one_shot_iterator, #map_func, #repeat, #shuffle, #to_ptr, to_tensor_array, #with_options
Constructor Details
#initialize(input_dataset, function, other_arguments: []) ⇒ MapDataset
4 5 6 7 8 9 10 11 12 13 14 |
# File 'lib/tensorflow/data/map_dataset.rb', line 4 def initialize(input_dataset, function, other_arguments: []) @output_types = function.output_types @output_shapes = function.output_shapes variant_tensor = RawOps.map_dataset(input_dataset.variant_tensor, other_arguments, f: function, output_types: @output_types, output_shapes: @output_shapes) super(variant_tensor) end |