/third_party/mindspore/tests/ut/python/parallel/ |
D | test_using_seed_for_initializer.py | 46 net2 = ParameterNet() 47 net2.init_parameters_data() 49 if key not in net2.parameters_dict(): 52 …assert allclose(net1.parameters_dict()[key].data.asnumpy(), net2.parameters_dict()[key].data.asnum… 60 net2 = ParameterNet() 61 net2.init_parameters_data() 63 if key not in net2.parameters_dict(): 66 …assert not allclose(net1.parameters_dict()[key].data.asnumpy(), net2.parameters_dict()[key].data.a…
|
D | test_allreduce_fusion.py | 93 def __init__(self, net1, net2): argument 96 self.backbone2 = net2
|
/third_party/mindspore/tests/st/hook/ |
D | test_hook_function.py | 71 net2 = GraphVarHook() 72 out2 = net2(input_x) 88 net2 = GraphVarHook() 89 grad_out2 = grad_all(net2)(input_x) 138 net2 = GraphCellHook() 139 out2 = net2(input_x) 155 net2 = GraphCellHook() 156 grad_out2 = grad_all(net2)(input_x)
|
/third_party/mindspore/tests/st/ops/gpu/ |
D | test_momentum_fusion.py | 57 net2 = MomentumFusionNet(var, accum) 58 _ = net2(grad) 60 assert np.allclose(net1.var.data.asnumpy(), net2.var.data.asnumpy(), atol=1e-5) 61 assert np.allclose(net1.accum.data.asnumpy(), net2.accum.data.asnumpy(), atol=1e-5)
|
D | test_multinomial_op.py | 43 net2 = Net(6, True, 20) 46 out2 = net2(x1)
|
D | test_reduce_all_op.py | 122 net2 = ReduceAllDynamic(Tensor(x_2), axis_2) 128 output2 = net2()
|
D | test_reduce_any_op.py | 122 net2 = ReduceAnyDynamic(Tensor(x_2), axis_2) 128 output2 = net2()
|
D | test_reduce_min_op.py | 205 net2 = ReduceMinDynamic(Tensor(x_2), axis_2) 211 output2 = net2()
|
D | test_reduce_max_op.py | 205 net2 = ReduceMaxDynamic(Tensor(x_2), axis_2) 211 output2 = net2()
|
D | test_reduce_sum_op.py | 297 net2 = ReduceSumDynamic(Tensor(x_2), axis_2) 303 output2 = net2()
|
/third_party/mindspore/tests/st/dynamic_shape/ |
D | test_dynamic_shape_embedding.py | 56 net2 = NetWithEmbeddingLookUp(vocab_size=8, embedding_size=8, target="CPU") 57 optimizer2 = nn.Adam(params=net2.trainable_params(), learning_rate=0.1) 60 train_network2 = TrainOneStepCell(WithLossCell(net2, loss), optimizer2)
|
/third_party/boost/libs/asio/test/ip/ |
D | network_v4.cpp | 44 ip::network_v4 net2(ip::make_address_v4("192.168.1.0"), in test() local 73 bool b2 = net1.is_subnet_of(net2); in test() 84 bool b3 = (net1 == net2); in test() 87 bool b4 = (net1 != net2); in test() 148 network_v4 net2(addr, make_address_v4("255.255.255.192")); in test() local 149 BOOST_ASIO_CHECK(net2.prefix_length() == 26); in test()
|
D | network_v6.cpp | 44 ip::network_v6 net2(ip::make_address_v6("2001:370::10:7345"), 96); in test() local 66 bool b2 = net1.is_subnet_of(net2); in test() 77 bool b3 = (net1 == net2); in test() 80 bool b4 = (net1 != net2); in test()
|
/third_party/mindspore/tests/ut/python/nn/probability/distribution/ |
D | test_utils.py | 129 net2 = Net('tuple') 130 net2() 170 net2 = Net1('tuple') 171 net2()
|
/third_party/mindspore/tests/ut/python/train/ |
D | test_training.py | 149 net2 = LossNet() 150 model2 = Model(net2, eval_network=net2, eval_indexes=[0, 1, 2], metrics={"loss"}) 155 model3 = Model(net2, eval_network=net2, metrics={"loss"})
|
/third_party/mindspore/tests/st/pynative/ |
D | test_function_staging.py | 52 net2 = NetStaging() 53 out_me_staging = net2(Tensor(input1)).asnumpy()
|
D | test_tensor_getitem.py | 912 net2 = TensorAssignWithSlice2() 919 out = net2(ta, tb, tck) 937 net2 = TensorAssignWithSlice2() 962 net2(t, Tb, tck) 965 net2(t, Tc, tck) 968 net2(t, Tb, tck) 1133 net2 = TensorAssignWithBoolTensorIndex2() 1134 out = net2(Ta, u_tensor) 1162 net2 = TensorAssignWithBoolTensorIndex2() 1175 net2(Ta, u_tensor_error)
|
/third_party/mindspore/tests/st/ops/cpu/ |
D | test_multinomial_op.py | 45 net2 = Net(6, True, 20) 48 out2 = net2(x1)
|
D | test_cpu_type.py | 72 net2 = Net2() 73 output2 = net2(Tensor(x), Tensor(b), Tensor(c))
|
D | test_bias_add.py | 127 net2 = Net2() 128 output = net2(Tensor(x), Tensor(y), Tensor(z), Tensor(w))
|
/third_party/mindspore/tests/st/heterogeneous_excutor/ |
D | test_control.py | 63 net2 = Net2() 64 output2 = net2(Tensor(x), Tensor(y))
|
/third_party/mindspore/tests/ut/python/pynative_mode/ |
D | test_tuple_parameter.py | 71 net2 = Net2() 72 output = grad_op(net2)(x, y)
|
/third_party/mindspore/tests/ut/python/pipeline/infer/ |
D | test_net_infer.py | 94 def net2(): function 99 return net1() + net2()
|
/third_party/mindspore/tests/ut/python/ops/ |
D | test_control_ops.py | 581 net2 = NetGrad(net) 584 net2(x, i) 611 net2 = NetGrad(net) 614 net2(x, i) 1009 net2 = Net2() 1010 x = net2(x)
|
D | test_tensor_slice.py | 450 net2 = TensorAssignWithSlice2() 468 net2(t, b, tck) 478 net2(t, Tb, tck) 481 net2(t, Tc, tck) 484 net2(t, Tb, tck) 686 net2 = TensorAssignWithBoolTensorIndex2() 701 net2(Ta, u_tensor_error)
|