tensorflow/core/kernels/data/map_defun_op.cc
// Create a copy of output_shapes because every `Compute` may expect a
// different output shape.
Create a copy of output_shapes because every `Compute` may expect a
different output shape.
Create a copy of output_shapes because every ` Compute ` may expect a different output shape .
ComputeOptions(OpKernelContext* ctx, OpInputList args,
                 OpInputList captured_inputs,
                 std::vector<TensorShape> arg_shapes, int64_t batch_size,
                 const std::vector<PartialTensorShape>& output_shapes_attr,
                 int max_parallelism)
      : args(args),
        arg_shapes(std::move(arg_shapes)),
        captured_inputs(captured_inputs),
        batch_size(batch_size),
        output_shapes(output_shapes_attr) {
    if (max_parallelism >= 1) {
      runner = RunnerWithMaxParallelism(*ctx->runner(), max_parallelism);
    }
  }
ComputeOptions ( OpKernelContext * ctx , OpInputList args , OpInputList captured_inputs , std :: vector < TensorShape > arg_shapes , int64_t batch_size , const std :: vector < PartialTensorShape > & output_shapes_attr , int max_parallelism ) : args ( args ) , arg_shapes ( std :: move ( arg_shapes ) ) , captured_inputs ( captured_inputs ) , batch_size ( batch_size ) , output_shapes ( output_shapes_attr ) { if ( max_parallelism >= 1 ) { runner = RunnerWithMaxParallelism ( * ctx -> runner ( ) , max_parallelism ) ; } }
Create a copy of output_shapes because every `Compute` may expect a
different output shape.
Create a copy of output_shapes because every ` Compute ` may expect a different output shape .