Home
last modified time | relevance | path

Searched refs:out_height (Results 1 – 25 of 74) sorted by relevance

123

/external/tensorflow/tensorflow/core/kernels/
Dresize_nearest_neighbor_op_gpu.cu.cc38 const int in_width, const int channels, const int out_height, in ResizeNearestNeighborNHWC() argument
47 int out_y = n % out_height; in ResizeNearestNeighborNHWC()
48 n /= out_height; in ResizeNearestNeighborNHWC()
67 const int in_width, const int channels, const int out_height, in ResizeNearestNeighborBackwardNHWC() argument
79 T* bottom_diff_n = bottom_diff + n * channels * out_height * out_width; in ResizeNearestNeighborBackwardNHWC()
83 out_height - 1); in ResizeNearestNeighborBackwardNHWC()
108 const int64 out_height = output.dimension(1); in operator ()() local
111 const int output_size = batch_size * out_height * out_width * channels; in operator ()()
118 out_height, out_width, height_scale, width_scale, output.data()); in operator ()()
142 const int64 out_height = output.dimension(1); in operator ()() local
[all …]
Deigen_spatial_convolutions_test.cc677 const int out_height = in_rows; in TEST() local
683 Tensor<float, 4> result(kern_filters, out_depth, out_height, out_width); in TEST()
692 EXPECT_EQ(result.dimension(2), out_height); in TEST()
701 for (int j = 0; j < out_height; ++j) { in TEST()
738 const int out_height = in_rows; in TEST() local
744 Tensor<float, 4, RowMajor> result(out_width, out_height, out_depth, in TEST()
754 EXPECT_EQ(result.dimension(1), out_height); in TEST()
763 for (int j = 0; j < out_height; ++j) { in TEST()
800 const int out_height = 3; in TEST() local
806 Tensor<float, 4> result(kern_filters, out_depth, out_height, out_width); in TEST()
[all …]
Dpooling_ops_common.h64 int64 out_height; member
181 params.out_width * params.out_height * params.tensor_in_batch); in SpatialMaxPool()
206 const int32 out_height = params.out_height; in SpatialMaxPool() local
211 const int32 output_image_size = out_height * out_width * params.depth; in SpatialMaxPool()
218 const int32 out_offset_batch = b * out_height; in SpatialMaxPool()
228 const int32 h_end = std::min(hpad / row_stride + 1, out_height); in SpatialMaxPool()
275 params.depth, params.out_height, params.out_width, params.window_rows,
428 params.out_width * params.out_height * params.tensor_in_batch);
453 const int32 out_height = params.out_height;
458 const int32 output_image_size = out_height * out_width * params.depth;
[all …]
Deigen_cuboid_convolution.h122 TensorIndex out_height; variable
128 out_height = Eigen::divup(inputRows - kernelRows + 1,
136 out_height =
142 out_height = 0;
164 pre_contract_dims[1] = out_depth * out_height * out_width;
171 pre_contract_dims[0] = out_depth * out_height * out_width;
191 post_contract_dims[2] = out_height;
199 post_contract_dims[NumDims - 3] = out_height;
Dquantized_resize_bilinear_op_test.cc110 const int64 out_height, const int64 out_width, in CalcReferenceResizedVal() argument
118 GetReferenceWeight(out_height, in_height, 1, y, height_scale); in CalcReferenceResizedVal()
145 const int64 out_height, const int64 out_width, in CheckTensorValue() argument
151 CalculateResizeScale(in_height, out_height, align_corners); in CheckTensorValue()
156 for (int64 y = 0; y < out_height; ++y) { in CheckTensorValue()
160 in_data, batch_size, in_height, in_width, out_height, out_width, in CheckTensorValue()
163 out_data[(b * out_height + y) * out_row_size + x * channels + c]; in CheckTensorValue()
290 int out_height, int out_width, int channels, in RunTestResizeBilinearTwoDims() argument
301 {out_height, out_width}, false, 1, min, max, &outputs); in RunTestResizeBilinearTwoDims()
304 in_width, out_height, out_width, channels, in RunTestResizeBilinearTwoDims()
[all …]
Dimage_resizer_state.h71 out_height = internal::SubtleMustCopy(Svec(0)); in ValidateAndCalculateOutputSize()
83 OP_REQUIRES(context, out_height > 0 && out_width > 0, in ValidateAndCalculateOutputSize()
91 height_scale = CalculateResizeScale(in_height, out_height, align_corners_); in ValidateAndCalculateOutputSize()
96 ceilf((out_height - 1) * height_scale) <= in ValidateAndCalculateOutputSize()
113 TensorShape({input.dim_size(0), out_height, in ValidateAndCreateOutput()
119 int64 out_height; member
Dresize_nearest_neighbor_op.cc96 const int64 out_height = output.dimension(1); in operator ()() local
100 for (int y = 0; y < out_height; ++y) { in operator ()()
152 const int64 out_height = sizes(0); in Compute() local
159 0, TensorShape({batch_size, out_height, out_width, channels}), in Compute()
169 CalculateResizeScale(out_height, in_height, align_corners_); in Compute()
207 const int64 out_height = output.dimension(1); in operator ()() local
216 out_height - 1); in operator ()()
Dmaxpooling_op.cc72 params.out_width * params.out_height * params.tensor_in_batch); in SpatialMaxPoolWithArgMaxHelper()
75 params.out_width * params.out_height * params.tensor_in_batch); in SpatialMaxPoolWithArgMaxHelper()
101 const int32 out_height = params.out_height; in SpatialMaxPoolWithArgMaxHelper() local
106 const int32 output_image_size = out_height * out_width * depth; in SpatialMaxPoolWithArgMaxHelper()
125 const int h_end = std::min(hpad / row_stride + 1, out_height); in SpatialMaxPoolWithArgMaxHelper()
132 const int64 out_index_base = (b * out_height + ph) * out_width; in SpatialMaxPoolWithArgMaxHelper()
168 const int out_size = out_height * out_width * depth; in SpatialMaxPoolWithArgMaxHelper()
326 params.out_height, params.out_width, params.window_rows, in MaxPoolingBackwardCustomKernel()
539 params.out_width * params.out_height * params.tensor_in_batch); in SpatialMaxPoolGradGrad()
545 params.out_width * params.out_height * params.tensor_in_batch); in SpatialMaxPoolGradGrad()
[all …]
Dresize_bilinear_op.cc105 const int64 in_height, const int64 in_width, const int64 out_height,
113 const int64 in_width, const int64 out_height, in resize_image() argument
128 for (int64 y = 0; y < out_height; ++y) { in resize_image()
173 for (int64 y = 0; y < out_height; ++y) { in resize_image()
212 const int64 out_height = output.dimension(1); in operator ()() local
216 if (out_height == in_height && out_width == in_width) { in operator ()()
221 std::vector<CachedInterpolation> ys(out_height + 1); in operator ()()
225 compute_interpolation_weights(out_height, in_height, height_scale, in operator ()()
235 resize_image<T>(images, batch_size, in_height, in_width, out_height, in operator ()()
Dresize_bilinear_op_gpu.cu.cc39 int channels, int out_height, in ResizeBilinearKernel() argument
48 const int y = idx % out_height; in ResizeBilinearKernel()
49 const int b = idx / out_height; in ResizeBilinearKernel()
160 const int out_height = output.dimension(1); in operator ()() local
163 const int total_count = batch * out_height * out_width * channels; in operator ()()
170 width_scale, batch, in_height, in_width, channels, out_height, in operator ()()
Dquantized_resize_bilinear_op.cc463 const int64 in_width, const int64 out_height, in ResizeImageReference() argument
473 BuildLerpCache<float>(out_height, in_height, height_scale, 1, 0); in ResizeImageReference()
483 for (int64 y = 0; y < out_height; ++y) { in ResizeImageReference()
511 const int64 in_width, const int64 out_height, in ResizeImage() argument
516 ResizeImageReference<T>(images, batch_size, in_height, in_width, out_height, in ResizeImage()
524 const int64 in_width, const int64 out_height, in ResizeImage() argument
538 BuildLerpCache<int32>(out_height, in_height, height_scale, 1, RESOLUTION); in ResizeImage()
549 for (int64 y = 0; y < out_height; ++y) { in ResizeImage()
585 const int64 in_width, const int64 out_height, in ResizeImage() argument
599 BuildLerpCache<int16>(out_height, in_height, height_scale, 1, RESOLUTION); in ResizeImage()
[all …]
Ddepthwise_conv_op_gpu.cu.cc87 const int out_height = args.out_rows; in DepthwiseConv2dGPUKernelNHWC() local
95 const int out_row = (thread_id / out_depth / out_width) % out_height; in DepthwiseConv2dGPUKernelNHWC()
96 const int batch = thread_id / out_depth / out_width / out_height; in DepthwiseConv2dGPUKernelNHWC()
323 const int out_height = args.out_rows; in DepthwiseConv2dGPUKernelNCHW() local
336 const int out_row = (thread_id / out_width) % out_height; in DepthwiseConv2dGPUKernelNCHW()
337 const int out_channel = (thread_id / out_width / out_height) % out_depth; in DepthwiseConv2dGPUKernelNCHW()
338 const int batch = thread_id / out_width / out_height / out_depth; in DepthwiseConv2dGPUKernelNCHW()
777 const int out_height = args.out_rows; in DepthwiseConv2dBackpropInputGPUKernelNHWC() local
793 tf_min(out_height - 1, (in_row + pad_height) / stride); in DepthwiseConv2dBackpropInputGPUKernelNHWC()
803 out_depth * out_width * (out_row + out_height * batch); in DepthwiseConv2dBackpropInputGPUKernelNHWC()
[all …]
Dpooling_ops_3d.cc89 padding, &out_height, &pad_rows)); in Pool3dParameters()
97 {{out_plane, out_height, out_width}}, depth); in forward_output_shape()
563 params.out_height * params.tensor_in_batch); in launch()
570 params.out_plane * params.out_width * params.out_height * in launch()
592 const int32 out_height = params.out_height; in launch() local
598 out_plane * out_height * out_width * params.depth; in launch()
607 for (int ph = 0; ph < out_height; ++ph) { in launch()
621 ((b * out_plane + pp) * out_height + ph) * out_width + pw; in launch()
648 params.out_plane * params.out_height * params.out_width * params.depth * in launch()
814 params.out_height, params.out_width, params.depth, in launch()
Dmkl_pooling_ops_common.cc105 padding, &out_height, &pad_top, &pad_bottom)); in Init()
115 FastBoundsCheck(out_height, std::numeric_limits<int>::max()), in Init()
163 mkl_params->out_sizes[1] = params.out_height; in ExtractMklOpParams()
Dresize_area_op_test.cc70 const int64 out_height = output_data.dimension(1); in ResizeAreaBaseline() local
73 const float height_scale = in_height / static_cast<float>(out_height); in ResizeAreaBaseline()
101 for (int64 y = 0; y < out_height; ++y) { in ResizeAreaBaseline()
/external/tensorflow/tensorflow/contrib/lite/kernels/internal/optimized/
Deigen_spatial_convolutions.h145 TensorIndex out_height; variable
149 out_height = numext::ceil((InputRows - kernelRowsEff + 1.f) /
155 out_height = numext::ceil(InputRows / static_cast<float>(row_stride));
160 out_height = 0;
172 pre_contract_dims[1] = out_height * out_width;
178 pre_contract_dims[0] = out_height * out_width;
193 post_contract_dims[1] = out_height;
200 post_contract_dims[NumDims - 2] = out_height;
/external/tensorflow/tensorflow/contrib/hvx/hexagon_controller/src_impl/
Dgraph_functions_wrapper.c215 const uint32_t int_data_size, uint32_t* out_batches, uint32_t* out_height, in hexagon_controller_ExecuteGraph() argument
244 *out_height = output.height; in hexagon_controller_ExecuteGraph()
251 TFMLOGD("%d x %d x %d x %d, byte size = %d\n", *out_batches, *out_height, in hexagon_controller_ExecuteGraph()
259 uint32_t out_batches, out_height, out_width, out_depth; in hexagon_controller_ExecuteInceptionDummyData() local
268 &out_batches, &out_height, &out_width, &out_depth, in hexagon_controller_ExecuteInceptionDummyData()
273 s_output_values, out_batches * out_height * out_width * out_depth, in hexagon_controller_ExecuteInceptionDummyData()
275 TFMLOGD("%d x %d x %d x %d, size = %d\n", out_batches, out_height, in hexagon_controller_ExecuteInceptionDummyData()
279 out_batches * out_height * out_width * out_depth)); in hexagon_controller_ExecuteInceptionDummyData()
/external/libxcam/cl_kernel/
Dkernel_image_warp.cl34 int out_height = get_image_height (output);
69 warp_y = (s_y * w) / (float)out_height;
99 int out_height = get_image_height (output);
116 float warp_y = (s_y * w) / (float)out_height;
Dkernel_bayer_pipe.cl132 __write_only image2d_t out, uint out_height, int out_x, int out_y)
162 write_imagef (out, (int2)(out_x, out_y + out_height * 2), out_data);
166 write_imagef (out, (int2)(out_x, out_y + 1 + out_height * 2), out_data);
184 write_imagef (out, (int2)(out_x, out_y + out_height), out_data);
190 write_imagef (out, (int2)(out_x, out_y + 1 + out_height), out_data);
197 …__write_only image2d_t out, uint out_height, int out_x, int out_y, __local float *table, CLEeConfi…
292 write_imagef (out, (int2)(out_x, out_y + out_height), out_data_g[0]);
293 write_imagef (out, (int2)(out_x, out_y + 1 + out_height), out_data_g[1]);
311 write_imagef (out, (int2)(out_x, out_y + out_height * 2), out_data_b[0]);
312 write_imagef (out, (int2)(out_x, out_y + 1 + out_height * 2), out_data_b[1]);
/external/deqp/external/openglcts/modules/glesext/geometry_shader/
DesextcGeometryShaderRendering.hpp144 …tRenderTargetSize(unsigned int n_instances, unsigned int* out_width, unsigned int* out_height) = 0;
264 …d getRenderTargetSize(unsigned int n_instances, unsigned int* out_width, unsigned int* out_height);
359 …d getRenderTargetSize(unsigned int n_instances, unsigned int* out_width, unsigned int* out_height);
515 …d getRenderTargetSize(unsigned int n_instances, unsigned int* out_width, unsigned int* out_height);
/external/webp/src/dec/
Dio_dec.c301 const int out_height = io->scaled_height; in InitYUVRescaler() local
303 const int uv_out_height = (out_height + 1) >> 1; in InitYUVRescaler()
332 buf->y, out_width, out_height, buf->y_stride, 1, in InitYUVRescaler()
344 buf->a, out_width, out_height, buf->a_stride, 1, in InitYUVRescaler()
485 const int out_height = io->scaled_height; in InitRGBRescaler() local
518 tmp + 0 * out_width, out_width, out_height, 0, 1, in InitRGBRescaler()
521 tmp + 1 * out_width, out_width, out_height, 0, 1, in InitRGBRescaler()
524 tmp + 2 * out_width, out_width, out_height, 0, 1, in InitRGBRescaler()
531 tmp + 3 * out_width, out_width, out_height, 0, 1, in InitRGBRescaler()
/external/tensorflow/tensorflow/examples/ios/benchmark/
Dios_image_load.mm28 int* out_width, int* out_height,
60 *out_height = 0;
84 *out_height = height;
/external/tensorflow/tensorflow/contrib/lite/examples/ios/simple/
Dios_image_load.mm25 std::vector<uint8_t> LoadImageFromFile(const char* file_name, int* out_width, int* out_height,
54 *out_height = 0;
79 *out_height = height;
/external/tensorflow/tensorflow/examples/ios/camera/
Dios_image_load.mm28 int* out_width, int* out_height,
60 *out_height = 0;
84 *out_height = height;
/external/tensorflow/tensorflow/examples/ios/simple/
Dios_image_load.mm28 int* out_width, int* out_height,
60 *out_height = 0;
84 *out_height = height;

123