/third_party/mindspore/mindspore/core/ops/ |
D | mat_mul.cc | 43 bool transpose_b = GetValue<bool>(transpose_b_ptr); in MatMulInferShape() local 45 int64_t y_row = y_last[static_cast<size_t>(transpose_b)]; in MatMulInferShape() 52 << ", x2 shape " << y_shp << "(transpose_b=" << transpose_b << "})"; in MatMulInferShape() 72 auto y_r = y_shp[(transpose_b ? 1 : 0)]; in MatMulInferShape() 81 auto make_shape = [&transpose_a, &transpose_b](ShapeVector &output, const ShapeVector xshp, in MatMulInferShape() 84 output.push_back(yshp[(transpose_b ? 0 : 1)]); in MatMulInferShape() 103 void MatMul::Init(bool transpose_a, bool transpose_b) { in Init() argument 105 set_transpose_b(transpose_b); in Init() 110 void MatMul::set_transpose_b(bool transpose_b) { (void)AddAttr(kTransposeB, MakeValue(transpose_b))… in set_transpose_b() argument
|
D | batch_matmul.cc | 56 bool transpose_b = GetValue<bool>(transpose_b_ptr); in BatchMatmulInferShape() local 58 int64_t y_row = y_last[static_cast<size_t>(transpose_b)]; in BatchMatmulInferShape() 65 << ", x2 shape " << y_shp << "(transpose_b=" << transpose_b << "})"; in BatchMatmulInferShape() 86 auto y_r = y_shp[y_offset + (transpose_b ? 1 : 0)]; in BatchMatmulInferShape() 95 …auto make_shape = [&transpose_a, &transpose_b, &offset](ShapeVector &output, const ShapeVector xsh… in BatchMatmulInferShape() 110 output.push_back(yshp[y_offset + (transpose_b ? 0 : 1)]); in BatchMatmulInferShape() 129 void BatchMatmul::Init(bool transpose_a, bool transpose_b) { in Init() argument 131 set_transpose_b(transpose_b); in Init() 136 void BatchMatmul::set_transpose_b(bool transpose_b) { (void)AddAttr(kTransposeB, MakeValue(transpos… in set_transpose_b() argument
|
D | affine.cc | 22 …nit(const std::vector<int64_t> &contexts, int64_t output_dim, bool transpose_a, bool transpose_b) { in Init() argument 26 this->set_transpose_b(transpose_b); in Init() 37 void Affine::set_transpose_b(bool transpose_b) { (void)AddAttr(kTransposeB, MakeValue(transpose_b))… in set_transpose_b() argument
|
D | mat_mul.h | 40 void Init(bool transpose_a = false, bool transpose_b = false); 44 void set_transpose_b(bool transpose_b);
|
D | batch_matmul.h | 37 void Init(bool transpose_a = false, bool transpose_b = false); 41 void set_transpose_b(bool transpose_b);
|
D | affine.h | 42 bool transpose_b = false); 58 void set_transpose_b(bool transpose_b);
|
/third_party/mindspore/tests/ut/python/parallel/ |
D | test_auto_star_elimination.py | 53 def __init__(self, transpose_a=False, transpose_b=False): argument 55 self.fc = P.MatMul(transpose_a=transpose_a, transpose_b=transpose_b) 65 self.fc = CustomMatMul(transpose_b=True) 66 self.fc1 = CustomMatMul(transpose_b=True) 67 self.fc2 = CustomMatMul(transpose_b=True) 68 self.fc3 = CustomMatMul(transpose_b=True) 69 self.fc4 = CustomMatMul(transpose_b=True)
|
D | test_batch_matmul.py | 25 …def __init__(self, mul_weight, batch_matmul_weight, transpose_b=False, strategy1=None, strategy2=N… argument 28 self.batch_matmul = P.BatchMatMul(transpose_b=transpose_b).shard(strategy2)
|
D | test_loss_and_optimizer.py | 49 self.matmul = P.MatMul(transpose_a=False, transpose_b=True).shard(strategy1) 83 self.matmul = P.MatMul(transpose_a=False, transpose_b=True).shard(strategy1) 117 self.matmul = P.MatMul(transpose_a=False, transpose_b=True).shard(strategy1) 152 self.matmul = P.MatMul(transpose_a=False, transpose_b=True).shard(strategy1) 188 self.matmul = P.MatMul(transpose_a=False, transpose_b=True).shard(strategy1)
|
D | test_different_type_for_div_op.py | 48 self.fc_nobias = P.MatMul(transpose_b=True).shard(strategy0) 71 self.fc_nobias = P.MatMul(transpose_b=True).shard(strategy0) 94 self.fc_nobias = P.MatMul(transpose_b=True).shard(strategy0)
|
D | test_softmax_cross_entropy_loss.py | 59 self.matmul = P.MatMul(transpose_b=True).shard(strategy1) 84 self.matmul = P.MatMul(transpose_b=True).shard(strategy1) 109 self.matmul = P.MatMul(transpose_b=True)
|
D | test_sum_as_loss.py | 48 self.fc_nobias = P.MatMul(transpose_b=True).shard(strategy0) 71 self.fc_nobias = P.MatMul(transpose_b=True).shard(strategy0)
|
D | test_optimizer_clone_weight.py | 48 self.matmul = P.MatMul(transpose_a=False, transpose_b=True).shard(strategy1) 83 self.matmul = P.MatMul(transpose_a=False, transpose_b=True).shard(strategy1)
|
/third_party/mindspore/tests/st/ops/gpu/ |
D | test_batch_matmul.py | 28 def __init__(self, transpose_a=False, transpose_b=False): argument 30 self.batch_matmul = P.BatchMatMul(transpose_a, transpose_b) 109 net = BatchMatMulNet(transpose_b=True) 131 net = BatchMatMulNet(transpose_a=True, transpose_b=True) 168 def __init__(self, transpose_a=False, transpose_b=False): argument 170 self.batch_matmul = P.BatchMatMul(transpose_a, transpose_b)
|
/third_party/mindspore/tests/st/ops/cpu/ |
D | test_matmul.py | 27 def __init__(self, transpose_a=False, transpose_b=False): argument 29 self.matmul = P.MatMul(transpose_a, transpose_b) 93 net = MatMulNet(transpose_b=True) 108 net = MatMulNet(transpose_a=True, transpose_b=True)
|
D | test_batch_matmul.py | 27 def __init__(self, transpose_a=False, transpose_b=False): argument 29 self.batch_matmul = P.BatchMatMul(transpose_a, transpose_b) 120 net = BatchMatMulNet(transpose_b=True) 145 net = BatchMatMulNet(transpose_a=True, transpose_b=True)
|
/third_party/mindspore/mindspore/_extends/graph_kernel/expanders/ |
D | matmul.py | 30 self.transpose_b = self.attrs['transpose_b'] 41 k_b = self.shape_b[-1] if self.transpose_b else self.shape_b[-2] 65 if self.transpose_b:
|
/third_party/mindspore/tests/ut/cpp/parallel/ |
D | step_auto_parallel_test.cc | 76 ValuePtr transpose_b = MakeValue(false); in Create_Node() local 78 prim->set_attr("transpose_b", transpose_b); in Create_Node() 118 ValuePtr transpose_b = MakeValue(false); in Create_two_nodes() local 120 prim->set_attr("transpose_b", transpose_b); in Create_two_nodes() 132 prim2->set_attr("transpose_b", transpose_b); in Create_two_nodes()
|
D | step_parallel_test.cc | 153 ValuePtr transpose_b = MakeValue(false); in Make_Manager() local 155 prim1->AddAttr("transpose_b", transpose_b); in Make_Manager() 177 prim2->AddAttr("transpose_b", transpose_b); in Make_Manager() 347 ValuePtr transpose_b = MakeValue(false); in TEST_F() local 349 prim->set_attr("transpose_b", transpose_b); in TEST_F() 502 ValuePtr transpose_b = MakeValue(false); in TEST_F() local 504 prim->set_attr("transpose_b", transpose_b); in TEST_F()
|
/third_party/mindspore/mindspore/core/abstract/ |
D | prim_maths.cc | 286 bool transpose_b = GetValue<bool>(transpose_b_ptr); in InferImplMatMul() local 299 auto y_row = y_shp[(transpose_b ? 1 : 0)]; in InferImplMatMul() 308 auto make_shape = [&transpose_a, &transpose_b](ShapeVector &output, const ShapeVector xshp, in InferImplMatMul() 311 output.push_back(yshp[(transpose_b ? 0 : 1)]); in InferImplMatMul() 353 bool transpose_b = GetValue<bool>(transpose_b_ptr); in InferImplBatchMatMul() local 367 auto y_row = y_shp[offset + (transpose_b ? 1 : 0)]; in InferImplBatchMatMul() 376 auto make_shape = [&transpose_a, &transpose_b](ShapeVector &output, const ShapeVector xshp, in InferImplBatchMatMul() 391 output.push_back(yshp[offset + (transpose_b ? 0 : 1)]); in InferImplBatchMatMul()
|
/third_party/mindspore/tests/st/auto_parallel/ |
D | parallel_strategy_search.py | 183 test_size, prelu_size, transpose_b, matmul_size, num_class): argument 216 self.matmul = P.MatMul(transpose_b=transpose_b) 335 … prelu_size=(1,), transpose_b=True, matmul_size=(1, 12), 342 … prelu_size=(1,), transpose_b=True, matmul_size=(1, 12), 364 … prelu_size=(1,), transpose_b=True, matmul_size=(1, 12), 371 … prelu_size=(1,), transpose_b=True, matmul_size=(1, 12),
|
/third_party/mindspore/mindspore/ops/composite/ |
D | math_ops.py | 671 def _infer_shape_rem(shape1, shape2, ndim1, ndim2, transpose_b): argument 676 if transpose_b: 800 transpose_b = ndim2_orig == 1 804 ndim1_orig, ndim2_orig, transpose_b) 811 res = P.MatMul(False, transpose_b)(x1, x2) 820 res = P.BatchMatMul(False, transpose_b)(x1, x2)
|
/third_party/mindspore/tests/st/ops/graph_kernel/ |
D | test_matmul_to_mul.py | 26 self.matmul = P.MatMul(transpose_a=False, transpose_b=False) 34 self.bmm = P.BatchMatMul(transpose_a=False, transpose_b=False)
|
D | test_matmul.py | 26 self.matmul = P.MatMul(transpose_a=True, transpose_b=True) 34 self.matmul = P.MatMul(transpose_a=True, transpose_b=True)
|
/third_party/mindspore/mindspore/parallel/nn/ |
D | layers.py | 330 transpose_b=True, argument 345 if transpose_b: 354 self.matmul = P.BatchMatMul(transpose_b=transpose_b) 358 self.matmul = P.MatMul(transpose_b=transpose_b)
|