Home
last modified time | relevance | path

Searched refs:net2 (Results 1 – 25 of 27) sorted by relevance

12

/third_party/mindspore/tests/ut/python/parallel/
Dtest_using_seed_for_initializer.py46 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…
Dtest_allreduce_fusion.py93 def __init__(self, net1, net2): argument
96 self.backbone2 = net2
/third_party/mindspore/tests/st/hook/
Dtest_hook_function.py71 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/
Dtest_momentum_fusion.py57 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)
Dtest_multinomial_op.py43 net2 = Net(6, True, 20)
46 out2 = net2(x1)
Dtest_reduce_all_op.py122 net2 = ReduceAllDynamic(Tensor(x_2), axis_2)
128 output2 = net2()
Dtest_reduce_any_op.py122 net2 = ReduceAnyDynamic(Tensor(x_2), axis_2)
128 output2 = net2()
Dtest_reduce_min_op.py205 net2 = ReduceMinDynamic(Tensor(x_2), axis_2)
211 output2 = net2()
Dtest_reduce_max_op.py205 net2 = ReduceMaxDynamic(Tensor(x_2), axis_2)
211 output2 = net2()
Dtest_reduce_sum_op.py297 net2 = ReduceSumDynamic(Tensor(x_2), axis_2)
303 output2 = net2()
/third_party/mindspore/tests/st/dynamic_shape/
Dtest_dynamic_shape_embedding.py56 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/
Dnetwork_v4.cpp44 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()
Dnetwork_v6.cpp44 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/
Dtest_utils.py129 net2 = Net('tuple')
130 net2()
170 net2 = Net1('tuple')
171 net2()
/third_party/mindspore/tests/ut/python/train/
Dtest_training.py149 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/
Dtest_function_staging.py52 net2 = NetStaging()
53 out_me_staging = net2(Tensor(input1)).asnumpy()
Dtest_tensor_getitem.py912 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/
Dtest_multinomial_op.py45 net2 = Net(6, True, 20)
48 out2 = net2(x1)
Dtest_cpu_type.py72 net2 = Net2()
73 output2 = net2(Tensor(x), Tensor(b), Tensor(c))
Dtest_bias_add.py127 net2 = Net2()
128 output = net2(Tensor(x), Tensor(y), Tensor(z), Tensor(w))
/third_party/mindspore/tests/st/heterogeneous_excutor/
Dtest_control.py63 net2 = Net2()
64 output2 = net2(Tensor(x), Tensor(y))
/third_party/mindspore/tests/ut/python/pynative_mode/
Dtest_tuple_parameter.py71 net2 = Net2()
72 output = grad_op(net2)(x, y)
/third_party/mindspore/tests/ut/python/pipeline/infer/
Dtest_net_infer.py94 def net2(): function
99 return net1() + net2()
/third_party/mindspore/tests/ut/python/ops/
Dtest_control_ops.py581 net2 = NetGrad(net)
584 net2(x, i)
611 net2 = NetGrad(net)
614 net2(x, i)
1009 net2 = Net2()
1010 x = net2(x)
Dtest_tensor_slice.py450 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)

12