Home
last modified time | relevance | path

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

12345678910>>...20

/external/tensorflow/tensorflow/python/layers/
Dpooling.py53 def __init__(self, pool_function, pool_size, strides, argument
59 self.strides = utils.normalize_tuple(strides, 1, 'strides')
71 strides = (1, 1) + self.strides + (1,)
78 strides = (1, 1, 1) + self.strides
84 strides=strides,
96 self.padding, self.strides[0])
119 def __init__(self, pool_size, strides, argument
125 strides=strides,
133 def average_pooling1d(inputs, pool_size, strides, argument
160 strides=strides,
[all …]
Dpooling_test.py33 pooling_layers.max_pooling2d(images, 3, strides=2, data_format='invalid')
39 pooling_layers.max_pooling2d(images, 3, strides=(1, 2, 3))
42 pooling_layers.max_pooling2d(images, 3, strides=None)
48 pooling_layers.max_pooling2d(images, (1, 2, 3), strides=2)
51 pooling_layers.max_pooling2d(images, None, strides=2)
56 layer = pooling_layers.MaxPooling2D([2, 2], strides=2)
63 layer = pooling_layers.AveragePooling2D([2, 2], strides=2)
71 strides=1,
80 strides=(1, 1),
91 strides=(1, 1),
[all …]
Dconvolutional.py89 strides=1, argument
111 self.strides = utils.normalize_tuple(strides, rank, 'strides')
161 strides=self.strides,
206 stride=self.strides[i],
219 stride=self.strides[i],
279 strides=1, argument
299 strides=strides,
320 strides=1, argument
396 strides=strides,
477 strides=(1, 1), argument
[all …]
/external/tensorflow/tensorflow/compiler/tests/
Dconv2d_test.py40 strides=None, argument
60 strides = [1] + strides + [1]
72 strides=strides,
87 strides=[1, 1],
97 strides=[1, 1],
106 strides=[1, 1],
119 strides=[1, 1],
128 strides=[2, 2],
138 strides=[2, 2],
146 strides=[1, 1],
[all …]
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 …]
Dconv3d_test.py47 strides = [1, stride, stride, stride, 1]
51 array_ops.zeros(filter_shape), strides,
58 out_backprop_val, strides,
73 strides = [1, 1, 1, 1, 1]
87 x, f, y_shape, strides=strides, padding="SAME")
123 strides = [1, 2, 2, 2, 1]
137 x, f, y_shape, strides=strides, padding="SAME")
146 d_in = d % strides[1] == 0 and 0 < d < y_shape[1] - 1
147 h_in = h % strides[2] == 0 and 0 < h < y_shape[2] - 1
148 w_in = w % strides[3] == 0 and 0 < w < y_shape[3] - 1
[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.py32 def _VerifyValues(self, image, kernel, strides, rates, padding, out, use_gpu): argument
44 strides = [1] + strides + [1]
51 strides=strides,
67 strides=[1, 1],
83 strides=[1, 1],
99 strides=[1, 1],
115 strides=[1, 1],
131 strides=[1, 1],
151 strides=[1, 1],
168 strides=[1, 2],
[all …]
Dpool_test.py104 strides, argument
141 stride=strides[i])
166 strides=[1, 2])
182 strides=[1])
183 for strides in [[1], [2], [3]]:
184 if np.any(np.array(strides) > window_shape):
192 strides=strides)
208 strides=[1, 1])
209 for strides in [[1, 1], [2, 1], [1, 2], [2, 3]]:
210 if np.any(np.array(strides) > window_shape):
[all …]
Dconv_ops_test.py116 strides = [
140 for i, f, o, s, p in zip(input_sizes, filter_sizes, out_sizes, strides,
169 strides, padding, data_format, dtype, use_gpu): argument
200 strides = [1] + strides + [1]
204 strides = test_util.NHWCToNCHW(strides)
210 strides=strides,
237 strides = [1] + conv_strides + [1]
240 strides = test_util.NHWCToNCHW(strides)
242 t1, t2, strides=strides, padding=padding, data_format=data_format)
272 strides = list(stride)
[all …]
Dconv2d_transpose_test.py40 strides = [1, 1, 1, 1]
54 x, f, y_shape, strides=strides, padding="SAME")
78 strides = [1, 2, 2, 1]
92 x, f, y_shape, strides=strides, padding="SAME")
101 h_in = h % strides[1] == 0 and h > 0 and h < y_shape[1] - 1
102 w_in = w % strides[2] == 0 and w > 0 and w < y_shape[2] - 1
111 strides = [1, 2, 2, 1]
125 x, f, y_shape, strides=strides, padding="VALID")
139 h_in = h % strides[1] == 0 and h > pad and h < y_shape[
141 w_in = w % strides[2] == 0 and w > pad and w < y_shape[
[all …]
Dpooling_ops_test.py81 strides = [[1, 2, 2, 1], [1, 2, 2, 1], [1, 2, 2, 1], [1, 1, 1, 1]]
89 strides, paddings):
95 def _VerifyOneType(self, pool_func, input_sizes, ksize, strides, padding, argument
126 input_sizes, total_size, pool_func, ksize, strides)
139 strides = test_util.NHWCToNCHW(strides)
146 strides=strides_placeholder,
153 strides=strides,
164 strides_placeholder: strides
171 def _VerifyOneTest(self, pool_func, input_sizes, ksize, strides, padding, argument
193 self._VerifyOneType(pool_func, input_sizes, ksize, strides, padding,
[all …]
Dconv3d_transpose_test.py36 strides = [1, 1, 1, 1, 1]
50 x, f, y_shape, strides=strides, padding="SAME")
86 strides = [1, 2, 2, 2, 1]
100 x, f, y_shape, strides=strides, padding="SAME")
109 d_in = d % strides[1] == 0 and 0 < d < y_shape[1] - 1
110 h_in = h % strides[2] == 0 and 0 < h < y_shape[2] - 1
111 w_in = w % strides[3] == 0 and 0 < w < y_shape[3] - 1
124 strides = [1, 2, 2, 2, 1]
138 x, f, y_shape, strides=strides, padding="VALID")
152 d_in = d % strides[1] == 0 and pad < d < y_shape[1] - 1 - pad
[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/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 …]
Dcxx11_tensor_inflation.cpp21 array<ptrdiff_t, 4> strides; in test_simple_inflation() local
23 strides[0] = 1; in test_simple_inflation()
24 strides[1] = 1; in test_simple_inflation()
25 strides[2] = 1; in test_simple_inflation()
26 strides[3] = 1; in test_simple_inflation()
29 no_stride = tensor.inflate(strides); in test_simple_inflation()
46 strides[0] = 2; in test_simple_inflation()
47 strides[1] = 4; in test_simple_inflation()
48 strides[2] = 2; in test_simple_inflation()
49 strides[3] = 3; in test_simple_inflation()
[all …]
/external/tensorflow/tensorflow/python/keras/_impl/keras/layers/
Dpooling.py48 def __init__(self, pool_size=2, strides=None, padding='valid', **kwargs): argument
49 if strides is None:
50 strides = pool_size
51 super(MaxPooling1D, self).__init__(pool_size, strides, padding, **kwargs)
55 'strides': self.strides,
81 def __init__(self, pool_size=2, strides=None, padding='valid', **kwargs): argument
82 if strides is None:
83 strides = pool_size
84 super(AveragePooling1D, self).__init__(pool_size, strides, padding,
89 'strides': self.strides,
[all …]
/external/libvpx/libvpx/third_party/libyuv/source/
Dconvert_jpeg.cc37 const int* strides, in JpegCopyI420() argument
40 I420Copy(data[0], strides[0], in JpegCopyI420()
41 data[1], strides[1], in JpegCopyI420()
42 data[2], strides[2], in JpegCopyI420()
55 const int* strides, in JpegI422ToI420() argument
58 I422ToI420(data[0], strides[0], in JpegI422ToI420()
59 data[1], strides[1], in JpegI422ToI420()
60 data[2], strides[2], in JpegI422ToI420()
73 const int* strides, in JpegI444ToI420() argument
76 I444ToI420(data[0], strides[0], in JpegI444ToI420()
[all …]
/external/tensorflow/tensorflow/contrib/fused_conv/python/ops/
Dfused_conv2d_bias_activation_op_test.py118 strides = [
142 for i, f, o, s, p in zip(input_sizes, filter_sizes, out_sizes, strides,
166 strides, padding, activation_mode, data_format, argument
203 strides = [1] + strides + [1]
206 strides = test_util.NHWCToNCHW(strides)
211 strides=strides,
217 t1, t2, strides=strides, padding=padding, data_format=data_format)
248 strides = [1] + conv_strides + [1]
251 strides = test_util.NHWCToNCHW(strides)
256 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/tensorflow/tensorflow/python/ops/
Dnn_ops.py55 strides=None, argument
106 strides=strides,
133 strides=None, argument
145 if strides is None:
146 strides = [1] * conv_dims
147 elif len(strides) != conv_dims:
148 raise ValueError("len(strides)=%d, but should be %d" % (len(strides),
158 self.strides = strides[0]
164 strides = [1] + list(strides) + [1]
166 strides = [1, 1] + list(strides)
[all …]
/external/tensorflow/tensorflow/core/lib/random/
Drandom_distributions_test.cc147 const std::vector<int>& strides, T z_limit) { in UniformMomentsTest() argument
154 for (int stride : strides) { in UniformMomentsTest()
165 const std::vector<int>& strides, T z_limit) { in NormalMomentsTest() argument
186 for (int stride : strides) { in NormalMomentsTest()
240 const std::vector<int>& strides, T z_limit) { in RandomParametersMomentsTest() argument
248 for (int stride : strides) { in RandomParametersMomentsTest()
256 const std::vector<int> strides = {0, 1, 4, 17}; in TEST() local
257 UniformMomentsTest<float>(1 << 20, 40, strides, kZLimit); in TEST()
261 const std::vector<int> strides = {0, 1, 4, 17}; in TEST() local
262 NormalMomentsTest<float>(8 << 20, 25, strides, kZLimit); in TEST()
[all …]

12345678910>>...20