tensorflow/core/kernels/image/scale_and_translate_op.cc
// Computes the grad spans for the passed kernel.
// forward_input_size and forward_output_size are the input and output size from
// the forward operation.
Computes the grad spans for the passed kernel.
forward_input_size and forward_output_size are the input and output size from
the forward operation.
Computes the grad spans for the passed kernel . forward_input_size and forward_output_size are the input and output size from the forward operation .
Status ComputeGradSpans(OpKernelContext* context,
                        const functor::SamplingKernelType kernel_type,
                        const int64_t forward_output_size,
                        const int64_t forward_input_size, const float scale,
                        const float translate, const bool antialias,
                        Spans* grad_spans) {
  Spans spans;
  TF_RETURN_IF_ERROR(ComputeSpans(context, kernel_type, forward_output_size,
                                  forward_input_size, scale, translate,
                                  antialias, &spans));
  return ComputeGradSpansCore(context, spans, forward_output_size,
                              forward_input_size, grad_spans);
}
Status ComputeGradSpans ( OpKernelContext * context , const functor :: SamplingKernelType kernel_type , const int64_t forward_output_size , const int64_t forward_input_size , const float scale , const float translate , const bool antialias , Spans * grad_spans ) { Spans spans ; TF_RETURN_IF_ERROR ( ComputeSpans ( context , kernel_type , forward_output_size , forward_input_size , scale , translate , antialias , & spans ) ) ; return ComputeGradSpansCore ( context , spans , forward_output_size , forward_input_size , grad_spans ) ; }
Computes the grad spans for the passed kernel.
Computes the grad spans for the passed kernel .