Home
last modified time | relevance | path

Searched refs:original_width (Results 1 – 5 of 5) sorted by relevance

/external/tensorflow/tensorflow/core/kernels/
Dresize_bilinear_op_gpu.cu.cc90 float width_scale, int batch, int original_height, int original_width, in ResizeBilinearGradKernel() argument
114 const int right_x_index = (original_x < original_width - 1) in ResizeBilinearGradKernel()
116 : original_width - 1; in ResizeBilinearGradKernel()
121 ((b * original_height + top_y_index) * original_width + in ResizeBilinearGradKernel()
127 ((b * original_height + top_y_index) * original_width + in ResizeBilinearGradKernel()
135 ((b * original_height + bottom_y_index) * original_width + in ResizeBilinearGradKernel()
141 ((b * original_height + bottom_y_index) * original_width + in ResizeBilinearGradKernel()
204 float width_scale, int batch, int original_height, int original_width, in LegacyResizeBilinearGradKernel() argument
225 const int right_x_index = (original_x < original_width - 1) in LegacyResizeBilinearGradKernel()
227 : original_width - 1; in LegacyResizeBilinearGradKernel()
[all …]
Dsample_distorted_bounding_box_op.cc110 bool GenerateRandomCrop(int original_width, int original_height, in GenerateRandomCrop() argument
115 original_width <= 0 || original_height <= 0 || in GenerateRandomCrop()
121 min_relative_crop_area * original_width * original_height; in GenerateRandomCrop()
123 max_relative_crop_area * original_width * original_height; in GenerateRandomCrop()
128 if (lrintf(max_height * aspect_ratio) > original_width) { in GenerateRandomCrop()
132 max_height = static_cast<int>((original_width + 0.5 - kEps) / aspect_ratio); in GenerateRandomCrop()
149 DCHECK_LE(width, original_width); in GenerateRandomCrop()
172 if (area < min_area || area > max_area || width > original_width || in GenerateRandomCrop()
182 if (width < original_width) { in GenerateRandomCrop()
183 x = random->Uniform(original_width - width); in GenerateRandomCrop()
Dimage_resizer_state.h191 original_width = original_image.dim_size(2); in ValidateAndCreateOutput()
196 FastBoundsCheck(original_width, std::numeric_limits<int32>::max()), in ValidateAndCreateOutput()
203 CalculateResizeScale(original_width, resized_width, align_corners_); in ValidateAndCreateOutput()
208 original_width, channels}), in ValidateAndCreateOutput()
217 int64 original_width; member
Dresize_bilinear_op.cc304 const Eigen::Index original_width = output_grad.dimension(2); in ResizeGradCore() local
335 static_cast<Eigen::Index>(ceilf(in_x)), original_width - 1); in ResizeGradCore()
Dresize_bicubic_op.cc245 resizer_state.original_width, in ComputeGradientXWeightsAndIndices()
255 resizer_state.original_width, in ComputeGradientXWeightsAndIndices()