def _as_variant_tensor(self):
   return gen_dataset_ops.optimize_dataset(
       self._input_dataset._as_variant_tensor(),  # pylint: disable=protected-access
       self._optimizations,
       output_shapes=nest.flatten(
           sparse.as_dense_shapes(self.output_shapes, self.output_classes)),
       output_types=nest.flatten(
           sparse.as_dense_types(self.output_types, self.output_classes)))
 def _as_variant_tensor(self):
     return gen_dataset_ops.optimize_dataset(
         self._input_dataset._as_variant_tensor(),  # pylint: disable=protected-access
         self._optimizations,
         output_shapes=nest.flatten(
             sparse.as_dense_shapes(self.output_shapes,
                                    self.output_classes)),
         output_types=nest.flatten(
             sparse.as_dense_types(self.output_types, self.output_classes)))
Exemple #3
0
 def _as_variant_tensor(self):
     return gen_dataset_ops.optimize_dataset(
         self._input_dataset._as_variant_tensor(),  # pylint: disable=protected-access
         self._optimizations,
         **dataset_ops.flat_structure(self))
Exemple #4
0
 def _as_variant_tensor(self):
   return gen_dataset_ops.optimize_dataset(
       self._input_dataset._as_variant_tensor(),  # pylint: disable=protected-access
       self._optimizations,
       **dataset_ops.flat_structure(self))