Home
last modified time | relevance | path

Searched refs:strides (Results 1 – 25 of 622) sorted by relevance

12345678910>>...25

/external/tensorflow/tensorflow/python/layers/
Dpooling.py47 def __init__(self, pool_size, strides, argument
50 if strides is None:
54 strides=strides,
65 def average_pooling1d(inputs, pool_size, strides, argument
92 strides=strides,
118 def __init__(self, pool_size, strides, argument
121 if strides is None:
125 strides=strides,
136 def max_pooling1d(inputs, pool_size, strides, argument
163 strides=strides,
[all …]
Dconvolutional.py82 strides=1, argument
101 strides=strides,
125 strides=1, argument
201 strides=strides,
281 strides=(1, 1), argument
300 strides=strides,
324 strides=(1, 1), argument
407 strides=strides,
488 strides=(1, 1, 1), argument
507 strides=strides,
[all …]
Dpooling_test.py34 pooling_layers.max_pooling2d(images, 3, strides=2, data_format='invalid')
40 pooling_layers.max_pooling2d(images, 3, strides=(1, 2, 3))
43 pooling_layers.max_pooling2d(images, 3, strides=None)
49 pooling_layers.max_pooling2d(images, (1, 2, 3), strides=2)
52 pooling_layers.max_pooling2d(images, None, strides=2)
57 layer = pooling_layers.MaxPooling2D([2, 2], strides=2)
64 layer = pooling_layers.AveragePooling2D([2, 2], strides=2)
73 strides=1,
83 strides=(1, 1),
95 strides=(1, 1),
[all …]
/external/libxcam/xcore/
Dxcam_buffer.cpp52 info->strides [0] = aligned_width; in xcam_video_buffer_info_reset()
54 image_size = info->strides [0] * aligned_height; in xcam_video_buffer_info_reset()
59 info->strides [0] = aligned_width; in xcam_video_buffer_info_reset()
60 info->strides [1] = info->strides [0]; in xcam_video_buffer_info_reset()
62 info->offsets [1] = info->offsets [0] + info->strides [0] * aligned_height; in xcam_video_buffer_info_reset()
63 image_size = info->strides [0] * aligned_height + info->strides [1] * aligned_height / 2; in xcam_video_buffer_info_reset()
68 info->strides [0] = aligned_width * 2; in xcam_video_buffer_info_reset()
70 image_size = info->strides [0] * aligned_height; in xcam_video_buffer_info_reset()
75 info->strides [0] = aligned_width * 2; in xcam_video_buffer_info_reset()
77 image_size = info->strides [0] * aligned_height; in xcam_video_buffer_info_reset()
[all …]
Dv4l2_buffer_proxy.cpp93 info.strides [0] = format.fmt.pix.bytesperline * 2 / 3; in v4l2_format_to_video_info()
94 info.strides [1] = info.strides [0]; in v4l2_format_to_video_info()
96 info.offsets[1] = info.strides [0] * format.fmt.pix.height; in v4l2_format_to_video_info()
100 info.strides [0] = format.fmt.pix.bytesperline / 2; in v4l2_format_to_video_info()
101 info.strides [1] = info.strides [0] / 2 ; in v4l2_format_to_video_info()
102 info.strides [2] = info.strides [0] / 2 ; in v4l2_format_to_video_info()
104 info.offsets[1] = info.strides [0] * format.fmt.pix.height; in v4l2_format_to_video_info()
105 info.offsets[2] = info.offsets[1] + info.strides [1] * format.fmt.pix.height; in v4l2_format_to_video_info()
109 info.strides [0] = format.fmt.pix.bytesperline; in v4l2_format_to_video_info()
111 info.aligned_width = info.strides [0] / 2; in v4l2_format_to_video_info()
[all …]
/external/tensorflow/tensorflow/python/kernel_tests/
Dpooling_ops_3d_test.py48 def _VerifyOneTest(self, pool_func, input_sizes, window, strides, padding, argument
71 strides = [1] + list(strides) + [1]
75 strides = test_util.NHWCToNCHW(strides)
79 strides=strides,
89 def _VerifyValues(self, pool_func, input_sizes, window, strides, argument
92 self._VerifyOneTest(pool_func, input_sizes, window, strides, padding,
101 strides=(2, 2, 2),
111 strides=(2, 2, 2),
121 strides=(2, 3, 1),
131 strides=(2, 2, 2),
[all …]
Dmorphological_ops_test.py33 def _VerifyValues(self, image, kernel, strides, rates, padding, out, use_gpu): argument
45 strides = [1] + strides + [1]
52 strides=strides,
68 strides=[1, 1],
84 strides=[1, 1],
100 strides=[1, 1],
116 strides=[1, 1],
132 strides=[1, 1],
152 strides=[1, 1],
169 strides=[1, 2],
[all …]
Dpool_test.py105 strides, argument
142 stride=strides[i])
167 strides=[1, 2])
183 strides=[1])
184 for strides in [[1], [2], [3]]:
185 if np.any(np.array(strides) > window_shape):
193 strides=strides)
209 strides=[1, 1])
210 for strides in [[1, 1], [2, 1], [1, 2], [2, 3]]:
211 if np.any(np.array(strides) > window_shape):
[all …]
Dconv_ops_test.py121 strides = [
145 for i, f, o, s, p in zip(input_sizes, filter_sizes, out_sizes, strides,
180 strides, padding, data_format, dtype, use_gpu): argument
203 strides = [1] + strides + [1]
209 strides = test_util.NHWCToNCHW(strides)
217 strides=strides,
244 strides = [1] + conv_strides + [1]
247 strides = test_util.NHWCToNCHW(strides)
249 t1, t2, strides=strides, padding=padding, data_format=data_format)
270 strides = list(stride)
[all …]
Dconv1d_transpose_test.py37 strides = [1, 1, 1]
51 x, f, y_shape, strides=strides, padding="SAME")
65 strides = [1, 2, 1]
79 x, f, y_shape, strides=strides, padding="SAME")
87 w_in = w % strides[1] == 0 and w > 0 and w < y_shape[1] - 1
94 strides = [1, 2, 1]
108 x, f, y_shape, strides=strides, padding="VALID")
121 w_in = w % strides[1] == 0 and w > pad and w < y_shape[1] - 1 - pad
138 strides = [1, 2, 1]
146 x, f, y_shape, strides=strides, padding="SAME")
[all …]
Dconv2d_transpose_test.py41 strides = [1, 1, 1, 1]
55 x, f, y_shape, strides=strides, padding="SAME")
79 strides = [1, 2, 2, 1]
93 x, f, y_shape, strides=strides, padding="SAME")
102 h_in = h % strides[1] == 0 and h > 0 and h < y_shape[1] - 1
103 w_in = w % strides[2] == 0 and w > 0 and w < y_shape[2] - 1
112 strides = [1, 2, 2, 1]
126 x, f, y_shape, strides=strides, padding="VALID")
140 h_in = h % strides[1] == 0 and h > pad and h < y_shape[
142 w_in = w % strides[2] == 0 and w > pad and w < y_shape[
[all …]
Dconv3d_transpose_test.py37 strides = [1, 1, 1, 1, 1]
51 x, f, y_shape, strides=strides, padding="SAME")
87 strides = [1, 2, 2, 2, 1]
101 x, f, y_shape, strides=strides, padding="SAME")
110 d_in = d % strides[1] == 0 and 0 < d < y_shape[1] - 1
111 h_in = h % strides[2] == 0 and 0 < h < y_shape[2] - 1
112 w_in = w % strides[3] == 0 and 0 < w < y_shape[3] - 1
129 strides = [1, 1, 2, 2, 2]
134 x_value, f_value, y_shape, strides, data_format='NCDHW')
143 strides = [1, 1, 1, 1, 1]
[all …]
/external/tensorflow/tensorflow/lite/testing/nnapi_tflite_zip_tests/
Dtest_manifest.txt17 avg_pool/avg_pool_data_format='NHWC',input_shape=[1,1,1,1],ksize=[1,1,1,1],padding='SAME',strides=[…
18 avg_pool/avg_pool_data_format='NHWC',input_shape=[1,1,1,1],ksize=[1,1,1,1],padding='SAME',strides=[…
19 avg_pool/avg_pool_data_format='NHWC',input_shape=[1,1,1,1],ksize=[1,1,1,1],padding='SAME',strides=[…
20 avg_pool/avg_pool_data_format='NHWC',input_shape=[1,15,14,1],ksize=[1,1,1,1],padding='SAME',strides
21 avg_pool/avg_pool_data_format='NHWC',input_shape=[1,15,14,1],ksize=[1,1,1,1],padding='SAME',strides
22 avg_pool/avg_pool_data_format='NHWC',input_shape=[1,15,14,1],ksize=[1,1,1,1],padding='SAME',strides
23 avg_pool/avg_pool_data_format='NHWC',input_shape=[3,15,14,3],ksize=[1,1,1,1],padding='SAME',strides
24 avg_pool/avg_pool_data_format='NHWC',input_shape=[3,15,14,3],ksize=[1,1,1,1],padding='SAME',strides
25 avg_pool/avg_pool_data_format='NHWC',input_shape=[3,15,14,3],ksize=[1,1,1,1],padding='SAME',strides
26 avg_pool/avg_pool_data_format='NHWC',input_shape=[1,1,1,1],ksize=[1,1,1,1],padding='VALID',strides=…
[all …]
/external/tensorflow/tensorflow/compiler/tests/
Dpooling_ops_3d_test.py34 def _AvgPoolGrad(inputs, outputs, output_gradients, ksize, strides, padding): argument
40 strides=strides,
46 def _VerifyValues(self, pool_func, input_sizes, window, strides, padding, argument
70 strides=[1] + strides + [1],
83 strides=[2, 2, 2],
93 strides=[2, 2, 2],
103 strides=[2, 3, 1],
113 strides=[2, 2, 2],
123 strides=[2, 2, 2],
133 strides=[2, 3, 1],
[all …]
Dpooling_ops_test.py74 def _VerifyOneTest(self, pool_func, input_sizes, ksize, strides, padding, argument
99 strides = NHWCToNCHW(strides)
102 strides=strides,
110 def _VerifyValues(self, pool_func, input_sizes, ksize, strides, padding, argument
124 self._VerifyOneTest(pool_func, input_sizes, ksize, strides, padding,
132 strides=[1, 2, 2, 1],
141 strides=[1, 2, 2, 1],
158 strides=[1, 1, 1, 1],
167 strides=[1, 1, 2, 1],
174 strides=[1, 2, 1, 1],
[all …]
Dconv2d_test.py47 strides=None, argument
73 strides = [1] + strides + [1]
85 strides = test_utils.PermuteDimsBetweenDataFormats(strides, data_format_src,
97 strides=strides,
114 strides=[1, 1],
127 strides=[1, 1],
139 strides=[1, 1],
155 strides=[1, 1],
167 strides=[2, 2],
180 strides=[2, 2],
[all …]
/external/tensorflow/tensorflow/python/keras/layers/
Dpooling.py57 def __init__(self, pool_function, pool_size, strides, argument
63 if strides is None:
64 strides = pool_size
67 self.strides = conv_utils.normalize_tuple(strides, 1, 'strides')
78 strides=self.strides + (1,),
94 self.strides[0])
102 'strides': self.strides,
142 def __init__(self, pool_size=2, strides=None, argument
148 strides=strides,
185 def __init__(self, pool_size=2, strides=None, argument
[all …]
/external/tensorflow/tensorflow/python/ops/
Dnn_ops.py85 strides=None, argument
136 strides=strides,
163 strides=None, argument
175 if strides is None:
176 strides = [1] * conv_dims
177 elif len(strides) != conv_dims:
178 raise ValueError("len(strides)=%d, but should be %d" % (len(strides),
186 self.strides = strides[0]
192 strides = [1] + list(strides) + [1]
194 strides = [1, 1] + list(strides)
[all …]
/external/libjpeg-turbo/java/org/libjpegturbo/turbojpeg/
DYUVImage.java90 public YUVImage(int width, int[] strides, int height, int subsamp) { in YUVImage() argument
91 setBuf(null, null, width, strides, height, subsamp, true); in YUVImage()
147 public YUVImage(byte[][] planes, int[] offsets, int width, int[] strides, in YUVImage() argument
149 setBuf(planes, offsets, width, strides, height, subsamp, false); in YUVImage()
211 public void setBuf(byte[][] planes, int[] offsets, int width, int[] strides, in setBuf() argument
213 setBuf(planes, offsets, width, strides, height, subsamp, false); in setBuf()
216 private void setBuf(byte[][] planes, int[] offsets, int width, int[] strides, in setBuf() argument
225 (strides != null && strides.length != nc)) in setBuf()
232 if (strides == null) in setBuf()
233 strides = new int[nc]; in setBuf()
[all …]
/external/eigen/unsupported/test/
Dcxx11_tensor_striding.cpp21 array<ptrdiff_t, 4> strides; in test_simple_striding() local
22 strides[0] = 1; in test_simple_striding()
23 strides[1] = 1; in test_simple_striding()
24 strides[2] = 1; in test_simple_striding()
25 strides[3] = 1; in test_simple_striding()
28 no_stride = tensor.stride(strides); in test_simple_striding()
45 strides[0] = 2; in test_simple_striding()
46 strides[1] = 4; in test_simple_striding()
47 strides[2] = 2; in test_simple_striding()
48 strides[3] = 3; in test_simple_striding()
[all …]
/external/libaom/libaom/third_party/libyuv/source/
Dconvert_jpeg.cc36 const int* strides, in JpegCopyI420() argument
39 I420Copy(data[0], strides[0], in JpegCopyI420()
40 data[1], strides[1], in JpegCopyI420()
41 data[2], strides[2], in JpegCopyI420()
54 const int* strides, in JpegI422ToI420() argument
57 I422ToI420(data[0], strides[0], in JpegI422ToI420()
58 data[1], strides[1], in JpegI422ToI420()
59 data[2], strides[2], in JpegI422ToI420()
72 const int* strides, in JpegI444ToI420() argument
75 I444ToI420(data[0], strides[0], in JpegI444ToI420()
[all …]
/external/tensorflow/tensorflow/contrib/fused_conv/python/ops/
Dfused_conv2d_bias_activation_op_test_base.py128 strides = [
152 for i, f, o, s, p in zip(input_sizes, filter_sizes, out_sizes, strides,
209 strides, padding, activation_mode, data_format, argument
246 strides = [1] + strides + [1]
249 strides = test_util.NHWCToNCHW(strides)
254 strides=strides,
260 t1, t2, strides=strides, padding=padding, data_format=data_format)
291 strides = [1] + conv_strides + [1]
294 strides = test_util.NHWCToNCHW(strides)
299 strides=strides,
[all …]
/external/libyuv/files/source/
Dconvert_jpeg.cc37 const int* strides, in JpegCopyI420() argument
40 I420Copy(data[0], strides[0], data[1], strides[1], data[2], strides[2], in JpegCopyI420()
51 const int* strides, in JpegI422ToI420() argument
54 I422ToI420(data[0], strides[0], data[1], strides[1], data[2], strides[2], in JpegI422ToI420()
65 const int* strides, in JpegI444ToI420() argument
68 I444ToI420(data[0], strides[0], data[1], strides[1], data[2], strides[2], in JpegI444ToI420()
79 const int* strides, in JpegI400ToI420() argument
82 I400ToI420(data[0], strides[0], dest->y, dest->y_stride, dest->u, in JpegI400ToI420()
194 const int* strides, in JpegI420ToARGB() argument
197 I420ToARGB(data[0], strides[0], data[1], strides[1], data[2], strides[2], in JpegI420ToARGB()
[all …]
/external/libvpx/libvpx/third_party/libyuv/source/
Dconvert_jpeg.cc37 const int* strides, in JpegCopyI420() argument
40 I420Copy(data[0], strides[0], data[1], strides[1], data[2], strides[2], in JpegCopyI420()
51 const int* strides, in JpegI422ToI420() argument
54 I422ToI420(data[0], strides[0], data[1], strides[1], data[2], strides[2], in JpegI422ToI420()
65 const int* strides, in JpegI444ToI420() argument
68 I444ToI420(data[0], strides[0], data[1], strides[1], data[2], strides[2], in JpegI444ToI420()
79 const int* strides, in JpegI400ToI420() argument
82 I400ToI420(data[0], strides[0], dest->y, dest->y_stride, dest->u, in JpegI400ToI420()
203 const int* strides, in JpegI420ToARGB() argument
206 I420ToARGB(data[0], strides[0], data[1], strides[1], data[2], strides[2], in JpegI420ToARGB()
[all …]
/external/tensorflow/tensorflow/core/lib/random/
Drandom_distributions_test.cc151 const std::vector<int>& strides, T z_limit) { in UniformMomentsTest() argument
158 for (int stride : strides) { in UniformMomentsTest()
169 const std::vector<int>& strides, T z_limit) { in NormalMomentsTest() argument
190 for (int stride : strides) { in NormalMomentsTest()
244 const std::vector<int>& strides, T z_limit) { in RandomParametersMomentsTest() argument
252 for (int stride : strides) { in RandomParametersMomentsTest()
260 const std::vector<int> strides = {0, 1, 4, 17}; in TEST() local
261 UniformMomentsTest<bfloat16>(1 << 20, 40, strides, bfloat16(kZLimitBfloat16)); in TEST()
265 const std::vector<int> strides = {0, 1, 4, 17}; in TEST() local
266 NormalMomentsTest<bfloat16>(8 << 20, 25, strides, bfloat16(kZLimitBfloat16)); in TEST()
[all …]

12345678910>>...25