Home
last modified time | relevance | path

Searched refs:index_2 (Results 1 – 14 of 14) sorted by relevance

/third_party/mindspore/tests/st/pynative/
Dtest_tensor_getitem.py167 def construct(self, x, index_0, index_1, index_2): argument
170 ret2 = x[index_0, index_1, index_2] + self.const2
185 index_2 = np.random.randint(6, size=(5, 3, 4, 5)).astype(np.int32)
189 input_2_ms = Tensor(index_2)
193 assert np.all(output2.asnumpy() == input_x[index_0, index_1, index_2] + np.ones([5, 3, 4, 5]))
356 def construct(self, index_0, index_1, index_2): argument
372 index_2 = np.random.randint(3, size=(2, 1, 4, 5))
375 index_2_ms = Tensor(index_2, mstype.int32)
396 def construct(self, index_0, index_1, index_2): argument
412 index_2 = np.random.randint(3, size=(2, 1, 4, 5))
[all …]
/third_party/mindspore/mindspore/ccsrc/backend/kernel_compiler/cpu/
Dsort_cpu_kernel.cc75 … comparator = [&input](size_t index_1, size_t index_2) { return input[index_1] > input[index_2]; }; in Launch() argument
77 … comparator = [&input](size_t index_1, size_t index_2) { return input[index_1] < input[index_2]; }; in Launch() argument
Dtopk_cpu_kernel.cc55 const std::function<bool(size_t, size_t)> comparator = [input](size_t index_1, size_t index_2) { in LaunchKernel() argument
56 return input[index_1] > input[index_2]; in LaunchKernel()
/third_party/mindspore/tests/ut/python/ops/
Dtest_tensor_slice.py174 def construct(self, x, index_0, index_1, index_2): argument
175 ret = x[index_0, index_1, index_2] + self.const
224 def construct(self, tensor, index_0, index_1, index_2): argument
225 ret = tensor[0:2, index_0, index_1, 2, index_2, 0:3, ...] + self.const
234 def construct(self, tensor, index_0, index_1, index_2): argument
235 ret = tensor[0:2, index_0, index_1, ..., index_2, 2] + self.const
244 def construct(self, tensor, index_0, index_1, index_2): argument
245 ret = tensor[..., index_0, index_1, index_2, 3] + self.const
258 def construct(self, index_0, index_1, index_2): argument
259 self.param[0:2, index_0, index_1, 2, index_2, 0:3, ...] = self.value
[all …]
/third_party/protobuf/src/google/protobuf/util/
Dfield_comparator.cc60 const FieldDescriptor* field, int index_1, int index_2, in Compare() argument
70 reflection_2->GetRepeated##METHOD(message_2, field, index_2))); \ in Compare()
101 message_2, field, index_2, &scratch2))); in Compare()
Dfield_comparator.h90 int index_2,
118 int index_2,
Dmessage_differencer_unittest.cc2276 int index_2, in Compare() argument
/third_party/mindspore/mindspore/lite/src/runtime/kernel/opencl/cl/
Dstrassen.cl64 int index_2 = (gidx + offset.z) * origin_shape + gidy + offset.w;
66 FLT4 result2 = input[index_2];
/third_party/typescript/lib/
DtypingsInstaller.js51136 var index_2 = pattern.elements.indexOf(declaration);
51142 mapType(parentType, function (t) { return sliceTupleType(t, index_2); }) :
51146 var indexType = getLiteralType(index_2);
Dtsc.js42082 var index_2 = pattern.elements.indexOf(declaration);
42085 mapType(parentType, function (t) { return sliceTupleType(t, index_2); }) :
42089 var indexType = getLiteralType(index_2);
Dtsserver.js51147 var index_2 = pattern.elements.indexOf(declaration);
51153 mapType(parentType, function (t) { return sliceTupleType(t, index_2); }) :
51157 var indexType = getLiteralType(index_2);
DtypescriptServices.js51341 var index_2 = pattern.elements.indexOf(declaration);
51347 mapType(parentType, function (t) { return sliceTupleType(t, index_2); }) :
51351 var indexType = getLiteralType(index_2);
Dtsserverlibrary.js51341 var index_2 = pattern.elements.indexOf(declaration);
51347 mapType(parentType, function (t) { return sliceTupleType(t, index_2); }) :
51351 var indexType = getLiteralType(index_2);
Dtypescript.js51341 var index_2 = pattern.elements.indexOf(declaration);
51347 mapType(parentType, function (t) { return sliceTupleType(t, index_2); }) :
51351 var indexType = getLiteralType(index_2);