Home
last modified time | relevance | path

Searched refs:in_width (Results 1 – 25 of 61) 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
50 const T* bottom_data_n = bottom_data + n * channels * in_height * in_width; in ResizeNearestNeighborNHWC()
59 in_width - 1), in ResizeNearestNeighborNHWC()
61 const int idx = (in_y * in_width + in_x) * channels + c; in ResizeNearestNeighborNHWC()
69 const int in_width, const int channels, const int out_height, in LegacyResizeNearestNeighborNHWC() argument
81 const T* bottom_data_n = bottom_data + n * channels * in_height * in_width; in LegacyResizeNearestNeighborNHWC()
89 in_width - 1); in LegacyResizeNearestNeighborNHWC()
90 const int idx = (in_y * in_width + in_x) * channels + c; in LegacyResizeNearestNeighborNHWC()
98 const int in_width, const int channels, const int out_height, in ResizeNearestNeighborBackwardNHWC() argument
105 int in_x = n % in_width; in ResizeNearestNeighborBackwardNHWC()
[all …]
Dresize_bilinear_op_gpu.cu.cc38 int batch, int in_height, int in_width, in ResizeBilinearKernel() argument
61 (in_x < in_width - 1) ? ceilf(in_x) : in_width - 1; in ResizeBilinearKernel()
65 images[((b * in_height + top_y_index) * in_width + left_x_index) * in ResizeBilinearKernel()
69 images[((b * in_height + top_y_index) * in_width + right_x_index) * in ResizeBilinearKernel()
73 images[((b * in_height + bottom_y_index) * in_width + left_x_index) * in ResizeBilinearKernel()
77 images[((b * in_height + bottom_y_index) * in_width + right_x_index) * in ResizeBilinearKernel()
153 int in_height, int in_width, in LegacyResizeBilinearKernel() argument
175 (in_x < in_width - 1) ? ceilf(in_x) : in_width - 1; in LegacyResizeBilinearKernel()
179 images[((b * in_height + top_y_index) * in_width + left_x_index) * in LegacyResizeBilinearKernel()
183 images[((b * in_height + top_y_index) * in_width + right_x_index) * in LegacyResizeBilinearKernel()
[all …]
Ddepthwise_conv_op_gpu.h79 const int in_width = args.in_cols; in DepthwiseConv2dGPUKernelNHWC() local
115 input_row_end < in_height && input_col_end < in_width) { in DepthwiseConv2dGPUKernelNHWC()
126 in_depth * (in_col + in_width * (in_row + input_offset_temp)); in DepthwiseConv2dGPUKernelNHWC()
143 in_col < in_width) { in DepthwiseConv2dGPUKernelNHWC()
148 in_depth * (in_col + in_width * (in_row + input_offset_temp)); in DepthwiseConv2dGPUKernelNHWC()
186 const int in_width = args.in_cols; in DepthwiseConv2dGPUKernelNHWCSmall() local
201 const int block_size = block_height * in_width * kBlockDepth; in DepthwiseConv2dGPUKernelNHWCSmall()
202 const int in_row_size = in_width * in_depth; in DepthwiseConv2dGPUKernelNHWCSmall()
204 const int in_increment = (in_width - 1) * kBlockDepth; in DepthwiseConv2dGPUKernelNHWCSmall()
206 const int tile_width = in_width + filter_width - 1; in DepthwiseConv2dGPUKernelNHWCSmall()
[all …]
Dresize_area_op.cc72 int64 offset = 3 * BOUND_IF_NEEDED(x_interp.start, st.in_width); in ComputePatchSumOf3Channels()
79 int64 offset = 3 * BOUND_IF_NEEDED(x, st.in_width); in ComputePatchSumOf3Channels()
85 offset = 3 * BOUND_IF_NEEDED(x_interp.end - 1, st.in_width); in ComputePatchSumOf3Channels()
123 BOUND_IF_NEEDED(x_interp.start, st.in_width) + in ComputePatchSum()
129 ptr[num_channels * BOUND_IF_NEEDED(x, st.in_width) + c]); in ComputePatchSum()
134 BOUND_IF_NEEDED(x_interp.end - 1, st.in_width) + in ComputePatchSum()
182 Bound(x_interp.start, st.in_width) != x_interp.start || in Compute()
183 Bound(x_interp.end - 1, st.in_width) != (x_interp.end - 1); in Compute()
243 input_ptr + (b * st.in_height * st.in_width * st.channels + in ComputeLoop()
244 Bound(i, st.in_height) * st.in_width * st.channels)); in ComputeLoop()
Dquantized_resize_bilinear_op_test.cc111 const int64 in_width, const int64 out_height, in CalcReferenceResizedVal() argument
117 half_pixel_centers, out_width, in_width, channels, x, width_scale); in CalcReferenceResizedVal()
121 const int64 in_row_size = in_width * channels; in CalcReferenceResizedVal()
145 const int64 in_height, const int64 in_width, in CheckTensorValue() argument
155 CalculateResizeScale(in_width, out_width, align_corners); in CheckTensorValue()
162 in_data, half_pixel_centers, batch_size, in_height, in_width, in CheckTensorValue()
296 void RunTestResizeBilinearTwoDims(int batch_size, int in_height, int in_width, in RunTestResizeBilinearTwoDims() argument
302 const float max = batch_size * in_height * in_width * channels / RATIO; in RunTestResizeBilinearTwoDims()
305 batch_size, in_height, in_width, channels, RATIO, min, max); in RunTestResizeBilinearTwoDims()
313 batch_size, in_height, in_width, out_height, out_width, channels, in RunTestResizeBilinearTwoDims()
[all …]
Dresize_area_op_test.cc64 const int64 in_width = input_data.dimension(2); in ResizeAreaBaseline() local
74 const float width_scale = in_width / static_cast<float>(out_width); in ResizeAreaBaseline()
131 BOUND(j, in_width), c)) * in ResizeAreaBaseline()
146 void RunRandomTest(int in_height, int in_width, int target_height, in RunRandomTest() argument
149 SetRandomImageInput(TensorShape({1, in_height, in_width, channels})); in RunRandomTest()
Dresize_nearest_neighbor_op.cc54 OP_REQUIRES(context, st.in_height < (1 << 24) && st.in_width < (1 << 24), in Compute()
139 const Eigen::Index in_width = input.dimension(2); in operator ()() local
160 in_width - 1); in operator ()()
205 const int64 in_width = input.dim_size(2); in Compute() local
227 CalculateResizeScale(out_width, in_width, align_corners_); in Compute()
283 const Eigen::Index in_width = input.dimension(2); in operator ()() local
297 for (Eigen::Index x = 0; x < in_width; ++x) { in operator ()()
Dresize_bicubic_op_test.cc115 const int64 in_width = images.dimension(2); in ResizeBicubicBaseline() local
125 const float width_scale = in_width / static_cast<float>(out_width); in ResizeBicubicBaseline()
137 GetWeightsAndIndices(width_scale, x, in_width, &x_weights, in ResizeBicubicBaseline()
160 const int64 in_width, const int target_height, in RunRandomTest() argument
162 LOG(INFO) << "Running random test " << in_height << "x" << in_width << "x" in RunRandomTest()
166 TensorShape({batch_size, in_height, in_width, channels})); in RunRandomTest()
Dresize_bilinear_op.cc113 const int64 in_height, const int64 in_width, const int64 out_height,
121 const int64 in_width, const int64 out_height, in resize_image() argument
126 const int64 in_row_size = in_width * channels; in resize_image()
218 const int64 in_width = images.dimension(2); in operator ()() local
225 if (out_height == in_height && out_width == in_width) { in operator ()()
236 compute_interpolation_weights(HalfPixelScaler(), out_width, in_width, in operator ()()
243 compute_interpolation_weights(LegacyScaler(), out_width, in_width, in operator ()()
252 resize_image<T>(images, batch_size, in_height, in_width, out_height, in operator ()()
Dquantized_resize_bilinear_op.cc469 const int64 in_width, const int64 out_height, in ResizeImageReference() argument
478 out_width, in_width, width_scale, channels, 0, half_pixel_centers); in ResizeImageReference()
482 const int64 in_row_size = in_width * channels; in ResizeImageReference()
518 const int64 in_width, const int64 out_height, in ResizeImage() argument
524 ResizeImageReference<T>(images, batch_size, in_height, in_width, out_height, in ResizeImage()
532 const int64 in_width, const int64 out_height, in ResizeImage() argument
545 BuildLerpCache<int32>(out_width, in_width, width_scale, channels, in ResizeImage()
550 const int64 in_row_size = in_width * channels; in ResizeImage()
595 const int64 in_width, const int64 out_height, in ResizeImage() argument
608 BuildLerpCache<int16>(out_width, in_width, width_scale, channels, in ResizeImage()
[all …]
Dimage_resizer_state.h106 in_width = static_cast<int32>(input.dim_size(2)); in ValidateAndCalculateOutputSize()
117 width_scale = CalculateResizeScale(in_width, out_width, align_corners_); in ValidateAndCalculateOutputSize()
147 int64 in_width; member
Dscale_and_translate_op_test.cc100 const int64 in_width = images.dimension(2); in Sample() local
112 static_cast<int64>(0), in_width - 1, in Sample()
117 Clamp(static_cast<int64>(0), in_width - 1, in Sample()
123 if (sample_f.x() < 0.0f || sample_f.y() < 0.0f || sample_f.x() > in_width || in Sample()
175 const int64 in_width = images.dimension(2); in ScaleAndTranslateBaseline() local
184 if (in_x_f < 0.0f || in_y_f < 0.0f || in_x_f > in_width || in ScaleAndTranslateBaseline()
/external/tensorflow/tensorflow/lite/kernels/
Dpadding.h44 int in_width, int filter_height, int filter_width, TfLitePadding padding) { in ComputePaddingHeightWidth() argument
45 int out_width = ComputeOutSize(padding, in_width, filter_width, stride_width); in ComputePaddingHeightWidth()
53 ComputePadding(stride_width, 1, in_width, filter_width, out_width); in ComputePaddingHeightWidth()
/external/tensorflow/tensorflow/core/api_def/base_api/
Dapi_def_Conv3D.pbtxt6 Shape `[batch, in_depth, in_height, in_width, in_channels]`.
34 [batch, in_depth, in_height, in_width, in_channels].
36 [batch, in_channels, in_depth, in_height, in_width].
Dapi_def_Conv2DBackpropFilter.pbtxt6 4-D with shape `[batch, in_height, in_width, in_channels]`.
60 [batch, in_height, in_width, in_channels].
62 [batch, in_channels, in_height, in_width].
Dapi_def_Conv2DBackpropInput.pbtxt27 4-D with shape `[batch, in_height, in_width, in_channels]`. Gradient
59 [batch, in_height, in_width, in_channels].
61 [batch, in_channels, in_height, in_width].
Dapi_def_Dilation2DBackpropInput.pbtxt6 4-D with shape `[batch, in_height, in_width, depth]`.
24 4-D with shape `[batch, in_height, in_width, depth]`.
Dapi_def_MaxPool.pbtxt39 [batch, in_height, in_width, in_channels].
41 [batch, in_channels, in_height, in_width].
Dapi_def_MaxPoolV2.pbtxt39 [batch, in_height, in_width, in_channels].
41 [batch, in_channels, in_height, in_width].
Dapi_def_MaxPool3D.pbtxt40 [batch, in_depth, in_height, in_width, in_channels].
42 [batch, in_channels, in_depth, in_height, in_width].
Dapi_def_AvgPool3D.pbtxt40 [batch, in_depth, in_height, in_width, in_channels].
42 [batch, in_channels, in_depth, in_height, in_width].
Dapi_def_AvgPool.pbtxt38 [batch, in_height, in_width, in_channels].
40 [batch, in_channels, in_height, in_width].
Dapi_def_MaxPoolGradGrad.pbtxt51 [batch, in_height, in_width, in_channels].
53 [batch, in_channels, in_height, in_width].
/external/webrtc/talk/media/base/
Dvideoadapter.cc260 VideoFormat VideoAdapter::AdaptFrameResolution(int in_width, int in_height) { in AdaptFrameResolution() argument
265 in_width, in_height, input_format_.interval, input_format_.fourcc)); in AdaptFrameResolution()
295 << " Input: " << in_width in AdaptFrameResolution()
305 in_width, in_height, output_num_pixels_); in AdaptFrameResolution()
306 const int output_width = static_cast<int>(in_width * scale + .5f); in AdaptFrameResolution()
334 << " Input: " << in_width in AdaptFrameResolution()
/external/webrtc/webrtc/modules/video_render/android/java/src/org/webrtc/videoengine/
DViESurfaceRenderer.java61 int in_width, int in_height) { in surfaceChanged() argument
64 changeDestRect(in_width, in_height); in surfaceChanged()
67 " in_width:" + in_width + " in_height:" + in_height + in surfaceChanged()

123