/external/tensorflow/tensorflow/compiler/tests/ |
D | pooling_ops_test.py | 74 def _VerifyOneTest(self, pool_func, input_sizes, ksize, strides, padding, argument 98 ksize = NHWCToNCHW(ksize) 101 ksize=ksize, 110 def _VerifyValues(self, pool_func, input_sizes, ksize, strides, padding, argument 124 self._VerifyOneTest(pool_func, input_sizes, ksize, strides, padding, 131 ksize=[1, 2, 2, 1], 140 ksize=[1, 2, 2, 1], 157 ksize=[1, 1, 2, 1], 166 ksize=[1, 2, 2, 1], 173 ksize=[1, 2, 2, 1], [all …]
|
D | pooling_ops_3d_test.py | 34 def _AvgPoolGrad(inputs, outputs, output_gradients, ksize, strides, padding): argument 39 ksize=ksize, 69 ksize=[1] + window + [1], 194 ksize, argument 209 ksize = [1] + ksize + [1] 220 ksize=ksize, 240 ksize=ksize, 255 ksize=ksize, 271 ksize=ksize, 279 ksize=ksize, [all …]
|
/external/tensorflow/tensorflow/python/kernel_tests/ |
D | pooling_ops_test.py | 118 def _VerifyOneType(self, pool_func, input_sizes, ksize, strides, padding, argument 152 input_sizes, total_size, pool_func, ksize, strides, 166 ksize = test_util.NHWCToNCHW(ksize) 175 ksize=ksize_placeholder, 182 ksize=ksize, 193 ksize_placeholder: ksize, 201 def _VerifyOneTest(self, pool_func, input_sizes, ksize, strides, padding, argument 230 self._VerifyOneType(pool_func, input_sizes, ksize, strides, padding, 235 self._VerifyOneType(pool_func, input_sizes, ksize, strides, padding, 240 self._VerifyOneType(pool_func, input_sizes, ksize, strides, padding, [all …]
|
D | extract_volume_patches_grad_test.py | 92 ksize = 5 101 ksizes=[1, ksize, ksize, ksize, 1],
|
/external/llvm-project/clang/test/Sema/ |
D | vla.c | 105 const int ksize = 4; in test_fold_to_constant_array() local 108 char a1[ksize]; // expected-note{{variable length array}} in test_fold_to_constant_array() 112 …char a2[ksize] = "foo"; // expected-warning{{variable length array folded to constant array as an … in test_fold_to_constant_array() 116 …char a3[ksize] = {}; // expected-warning {{variable length array folded to constant array as an ex… in test_fold_to_constant_array() 120 char a4[ksize][2]; // expected-note{{variable length array}} in test_fold_to_constant_array() 123 …char a5[ksize][2] = {}; // expected-warning {{variable length array folded to constant array as an… in test_fold_to_constant_array() 125 …int a6[ksize] = {1,2,3,4}; // expected-warning{{variable length array folded to constant array as … in test_fold_to_constant_array() 128 int a7[ksize] __attribute__((annotate("foo"))) = {1,2,3,4}; in test_fold_to_constant_array() 131 char a8[2][ksize] = {{1,2,3,4},{4,3,2,1}}; in test_fold_to_constant_array()
|
/external/eigen/unsupported/test/ |
D | cxx11_tensor_image_patch.cpp | 189 int ksize = 2; // Corresponds to the Rows and Cols for tensor.extract_image_patches<>. in test_patch_padding_valid() local 197 …Tensor<float, 5> result = tensor.extract_image_patches(ksize, ksize, stride, stride, 1, 1, PADDING… in test_patch_padding_valid() 200 VERIFY_IS_EQUAL(result.dimension(1), ksize); // kernel rows in test_patch_padding_valid() 201 VERIFY_IS_EQUAL(result.dimension(2), ksize); // kernel cols in test_patch_padding_valid() 212 …Tensor<float, 5, RowMajor> result_row_major = tensor_row_major.extract_image_patches(ksize, ksize,… in test_patch_padding_valid() 223 for (int i = 0; (i+stride+ksize-1) < input_rows; i += stride) { // input rows in test_patch_padding_valid() 224 for (int j = 0; (j+stride+ksize-1) < input_cols; j += stride) { // input cols in test_patch_padding_valid() 226 for (int r = 0; r < ksize; ++r) { // patch rows in test_patch_padding_valid() 227 for (int c = 0; c < ksize; ++c) { // patch cols in test_patch_padding_valid() 265 int ksize = 3; // Corresponds to the Rows and Cols for tensor.extract_image_patches<>. in test_patch_padding_valid_same_value() local [all …]
|
/external/tensorflow/tensorflow/core/framework/ |
D | ops_util.cc | 40 Status GetBroadcastSize(const int index, const int in_size, const int ksize, in GetBroadcastSize() argument 49 *bsize = ksize; in GetBroadcastSize() 53 *bsize = ksize + *bindex - pad_size; in GetBroadcastSize() 59 if (*bindex + ksize > in_size) { in GetBroadcastSize() 60 *bsize = std::min((in_size - *bindex), ksize); in GetBroadcastSize()
|
/external/tensorflow/tensorflow/core/kernels/ |
D | quantized_pooling_ops_test.cc | 39 const int ksize = 2; in TEST_F() local 46 .Attr("ksize", {1, ksize, ksize, 1}) in TEST_F() 84 const int ksize = 2; in TEST_F() local 91 .Attr("ksize", {1, ksize, ksize, 1}) in TEST_F()
|
D | maxpooling_op.cc | 286 std::vector<int32> ksize = ksize_; in Compute() local 291 ksize.resize(tensor_ksize.shape().num_elements()); in Compute() 292 std::copy_n(&value_ksize(0), ksize.size(), ksize.begin()); in Compute() 300 OP_REQUIRES(context, ksize.size() == 4, in Compute() 306 OP_REQUIRES(context, ksize[0] == 1 && stride[0] == 1, in Compute() 310 context, ksize[3] == 1 && stride[3] == 1, in Compute() 315 ksize, in Compute() 396 std::vector<int32> ksize = ksize_; in Compute() local 401 ksize.resize(tensor_ksize.shape().num_elements()); in Compute() 402 std::copy_n(&value_ksize(0), ksize.size(), ksize.begin()); in Compute() [all …]
|
/external/tensorflow/tensorflow/core/kernels/mkl/ |
D | mkl_pooling_ops_common.cc | 226 const std::vector<int32>& ksize, in Init() argument 248 Init(context, ksize, stride, padding, data_format); in Init() 253 const std::vector<int32>& ksize, in Init() argument 258 if (ksize.size() == 4) { in Init() 273 Init(context, ksize, stride, padding, data_format); in Init() 278 const std::vector<int32>& ksize, in Init() argument 284 bool is_pool2d = (ksize.size() == 4); in Init() 288 window_rows = GetTensorDim(ksize, data_format, 'H'); in Init() 289 window_cols = GetTensorDim(ksize, data_format, 'W'); in Init() 290 depth_window = GetTensorDim(ksize, data_format, 'C'); in Init() [all …]
|
D | mkl_quantized_pooling_ops_test.cc | 65 const int ksize = 2; in TEST_F() local 75 .Attr("ksize", {1, ksize, ksize, 1}) in TEST_F() 134 const int ksize = 2; in TEST_F() local 144 .Attr("ksize", {1, ksize, ksize, 1}) in TEST_F()
|
/external/tensorflow/tensorflow/python/ops/ |
D | nn_ops.py | 4245 def avg_pool_v2(input, ksize, strides, padding, data_format=None, name=None): # pylint: disable=re… argument 4287 ksize = _get_sequence(ksize, n, channel_index, "ksize") 4299 ksize=ksize, 4308 def avg_pool(value, ksize, strides, padding, data_format="NHWC", argument 4339 ksize = _get_sequence(ksize, 2, channel_index, "ksize") 4344 ksize=ksize, 4353 def avg_pool2d(input, ksize, strides, padding, data_format="NHWC", name=None): # pylint: disable=r… argument 4379 ksize = _get_sequence(ksize, 2, channel_index, "ksize") 4384 ksize=ksize, 4393 def avg_pool1d(input, ksize, strides, padding, data_format="NWC", name=None): # pylint: disable=re… argument [all …]
|
D | init_ops.py | 847 def _orthogonal_kernel(self, ksize, cin, cout): argument 864 if ksize == 1: 869 for _ in range(ksize - 2): 873 for i in range(ksize): 874 for j in range(ksize): 877 return self._dict_to_tensor(p, ksize, ksize) 975 def _orthogonal_kernel(self, ksize, cin, cout): argument 992 if ksize == 1: 996 for _ in range(ksize - 2): 999 for i in range(ksize): [all …]
|
D | nn_test.py | 1476 ksize = 2 1479 y1 = nn_ops.avg_pool_v2(x, ksize, strides, "SAME") 1480 y2 = nn_ops.avg_pool1d(x, ksize, strides, "SAME") 1489 ksize = 2 1492 y1 = nn_ops.avg_pool_v2(x, ksize, strides, "SAME") 1493 y2 = nn_ops.avg_pool1d(x, ksize, strides, "SAME") 1501 ksize = 2 1503 y = nn_ops.avg_pool1d(x, ksize, strides, "SAME") 1510 ksize = 2 1513 y1 = nn_ops.avg_pool_v2(x, ksize, strides, "SAME") [all …]
|
/external/linux-kselftest/tools/testing/selftests/bpf/progs/ |
D | test_get_stack_rawtp.c | 60 int max_len, max_buildid_len, usize, ksize, total_size; in bpf_prog1() local 90 ksize = bpf_get_stack(ctx, raw_data + usize, max_len - usize, 0); in bpf_prog1() 91 if (ksize < 0) in bpf_prog1() 94 total_size = usize + ksize; in bpf_prog1()
|
/external/llvm-project/clang/test/SemaObjC/ |
D | variable-size-ivar.m | 3 const int ksize = 42; 8 int arr1[ksize]; // expected-warning{{variable length array folded to constant array}} 10 int arr3[ksize-43]; // expected-error{{array size is negative}}
|
/external/tensorflow/tensorflow/lite/testing/op_tests/ |
D | pool.py | 94 ksize=parameters["ksize"], 119 def make_l2_pool(input_tensor, ksize, strides, padding, data_format): argument 124 ksize=ksize,
|
/external/tensorflow/tensorflow/cc/gradients/ |
D | nn_grad_test.cc | 241 const std::vector<int> ksize{1, 2, 2, 1}; in TEST_F() local 243 auto y = MaxPool(scope_, x, ksize, strides, "VALID"); in TEST_F() 254 Tensor ksize = test::AsTensor<int>({1, 2, 2, 1}, {4}); in TEST_F() local 256 auto y = MaxPoolV2(scope_, x, ksize, strides, "VALID"); in TEST_F() 267 const std::vector<int> ksize{1, 3, 3, 3, 1}; in TEST_F() local 269 auto y = MaxPool3D(scope_, x, ksize, strides, "VALID"); in TEST_F() 280 const std::vector<int> ksize{1, 2, 2, 1}; in TEST_F() local 282 auto y = AvgPool(scope_, x, ksize, strides, "SAME"); in TEST_F() 291 const std::vector<int> ksize{1, 3, 3, 3, 1}; in TEST_F() local 293 auto y = AvgPool3D(scope_, x, ksize, strides, "SAME"); in TEST_F()
|
D | nn_grad.cc | 246 std::vector<int32> ksize; in MaxPoolGradHelper() local 249 TF_RETURN_IF_ERROR(GetNodeAttr(attrs, "ksize", &ksize)); in MaxPoolGradHelper() 253 scope, op.input(0), op.output(0), grad_inputs[0], ksize, strides, padding, in MaxPoolGradHelper() 281 std::vector<int32> ksize; in MaxPool3DGradHelper() local 286 TF_RETURN_IF_ERROR(GetNodeAttr(attrs, "ksize", &ksize)); in MaxPool3DGradHelper() 292 MaxPool3DGrad(scope, op.input(0), op.output(0), grad_inputs[0], ksize, in MaxPool3DGradHelper() 302 std::vector<int32> ksize; in AvgPoolGradHelper() local 307 TF_RETURN_IF_ERROR(GetNodeAttr(attrs, "ksize", &ksize)); in AvgPoolGradHelper() 313 grad_inputs[0], ksize, strides, padding, in AvgPoolGradHelper() 323 std::vector<int32> ksize; in AvgPool3DGradHelper() local [all …]
|
/external/tensorflow/tensorflow/core/api_def/base_api/ |
D | api_def_AvgPool3D.pbtxt | 16 name: "ksize" 19 the input tensor. Must have `ksize[0] = ksize[4] = 1`. 47 Each entry in `output` is the mean of the corresponding size `ksize` window in
|
/external/tensorflow/tensorflow/core/ops/compat/ops_history_v1/ |
D | MaxPool3D.pbtxt | 12 name: "ksize" 54 name: "ksize" 109 name: "ksize" 165 name: "ksize"
|
D | AvgPool3D.pbtxt | 12 name: "ksize" 55 name: "ksize" 111 name: "ksize" 168 name: "ksize"
|
D | MaxPoolWithArgmax.pbtxt | 16 name: "ksize" 79 name: "ksize" 146 name: "ksize" 215 name: "ksize" 285 name: "ksize" 355 name: "ksize"
|
/external/tensorflow/tensorflow/core/ops/compat/ops_history_v2/ |
D | AvgPool3D.pbtxt | 12 name: "ksize" 55 name: "ksize" 111 name: "ksize" 168 name: "ksize"
|
D | MaxPool3D.pbtxt | 12 name: "ksize" 54 name: "ksize" 109 name: "ksize" 165 name: "ksize"
|