Home
last modified time | relevance | path

Searched refs:net1 (Results 1 – 25 of 26) sorted by relevance

12

/third_party/boost/libs/asio/test/ip/
Dnetwork_v4.cpp43 ip::network_v4 net1(ip::make_address_v4("192.168.1.0"), 32); in test() local
49 ip::address_v4 addr1 = net1.address(); in test()
52 unsigned short prefix_len = net1.prefix_length(); in test()
55 ip::address_v4 addr2 = net1.netmask(); in test()
58 ip::address_v4 addr3 = net1.network(); in test()
61 ip::address_v4 addr4 = net1.broadcast(); in test()
64 ip::address_v4_range hosts = net1.hosts(); in test()
67 ip::network_v4 net3 = net1.canonical(); in test()
70 bool b1 = net1.is_host(); in test()
73 bool b2 = net1.is_subnet_of(net2); in test()
[all …]
Dnetwork_v6.cpp43 ip::network_v6 net1(ip::make_address_v6("2001:370::10:7344"), 64); in test() local
48 ip::address_v6 addr1 = net1.address(); in test()
51 unsigned short prefix_len = net1.prefix_length(); in test()
54 ip::address_v6 addr3 = net1.network(); in test()
57 ip::address_v6_range hosts = net1.hosts(); in test()
60 ip::network_v6 net3 = net1.canonical(); in test()
63 bool b1 = net1.is_host(); in test()
66 bool b2 = net1.is_subnet_of(net2); in test()
69 std::string s1 = net1.to_string(); in test()
72 std::string s2 = net1.to_string(ec); in test()
[all …]
/third_party/mindspore/tests/ut/python/parallel/
Dtest_using_seed_for_initializer.py43 net1 = ParameterNet()
44 net1.init_parameters_data()
48 for key in net1.parameters_dict():
52 …assert allclose(net1.parameters_dict()[key].data.asnumpy(), net2.parameters_dict()[key].data.asnum…
57 net1 = ParameterNet()
58 net1.init_parameters_data()
62 for key in net1.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
95 self.backbone1 = net1
/third_party/mindspore/tests/st/hook/
Dtest_hook_function.py68 net1 = MsFuncVarHook()
69 out1 = net1(input_x)
85 net1 = MsFuncVarHook()
86 grad_out1 = grad_all(net1)(input_x)
135 net1 = MsFuncCellHook()
136 out1 = net1(input_x)
152 net1 = MsFuncCellHook()
153 grad_out1 = grad_all(net1)(input_x)
/third_party/mindspore/tests/st/ops/gpu/
Dtest_momentum_fusion.py53 net1 = MomentumFusionNet(var, accum)
54 _ = net1(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.py42 net1 = Net(2, True, 20)
45 out1 = net1(x0)
Dtest_reduce_all_op.py121 net1 = ReduceAllDynamic(Tensor(x_1), axis_1)
127 output1 = net1()
Dtest_reduce_any_op.py121 net1 = ReduceAnyDynamic(Tensor(x_1), axis_1)
127 output1 = net1()
Dtest_reduce_min_op.py204 net1 = ReduceMinDynamic(Tensor(x_1), axis_1)
210 output1 = net1()
Dtest_reduce_max_op.py204 net1 = ReduceMaxDynamic(Tensor(x_1), axis_1)
210 output1 = net1()
Dtest_reduce_sum_op.py296 net1 = ReduceSumDynamic(Tensor(x_1), axis_1)
302 output1 = net1()
Dtest_reduce_mean_op.py287 net1 = ReduceMeanDynamic(Tensor(x14), axis14, keepdims=True)
289 output1 = net1()
/third_party/lwip/test/unit/core/
Dtest_netif.c246 struct netif net1; in START_TEST() local
255 fail_unless(netif_add_noaddr(&net1, NULL, testif_init, ethernet_input) == &net1); in START_TEST()
256 net1.num = 1; in START_TEST()
260 fail_unless(netif_find("ch1") == &net1); in START_TEST()
267 netif_remove(&net1); in START_TEST()
/third_party/mindspore/tests/ut/python/nn/probability/distribution/
Dtest_utils.py124 net1 = Net((1, 2, 3))
125 ans1 = net1()
163 net1 = Net1(value)
164 ans1 = net1()
166 ans1 = net1(value)
/third_party/mindspore/tests/st/dynamic_shape/
Dtest_dynamic_shape_embedding.py48 net1 = NetWithEmbeddingLookUp(vocab_size=8, embedding_size=8, target="CPU")
50 optimizer1 = nn.Adam(params=net1.trainable_params(), learning_rate=0.1)
52 train_network1 = TrainOneStepCell(WithLossCell(net1, loss), optimizer1)
/third_party/mindspore/tests/st/pynative/
Dtest_function_staging.py49 net1 = NetPynative()
50 out_me_pynative = net1(Tensor(input1)).asnumpy()
Dtest_tensor_getitem.py478 net1 = TensorGetItemByMixedTensorsIndexError()
480 net1(input_ms, index_0, index_1)
1115 net1 = TensorAssignWithBoolTensorIndex()
1116 out = net1(Ta, Tb, Tc, u_tensor)
1161 net1 = TensorAssignWithBoolTensorIndex()
1164 net1(Ta, Td, Tc, u_tensor)
1166 net1(Ta, u_tensor, Tc, u_tensor)
1168 net1(Ta, Tb, Td, u_tensor)
1170 net1(Ta, Tb, Ta, u_tensor)
1172 net1(Ta, Tb, Tc, u_tensor_error)
/third_party/mindspore/tests/st/ops/cpu/
Dtest_multinomial_op.py44 net1 = Net(2, True, 20)
47 out1 = net1(x0)
/third_party/mindspore/tests/st/heterogeneous_excutor/
Dtest_control.py60 net1 = Net1()
61 output1 = net1(Tensor(x), Tensor(y))
/third_party/mindspore/tests/st/pynative/parser/
Dtest_parser_construct.py65 net1 = Net()
67 grad_op = grad(net1)
/third_party/mindspore/tests/ut/python/pynative_mode/
Dtest_tuple_parameter.py65 net1 = Net1()
67 output = grad_op(net1)(x, y)
/third_party/mindspore/tests/ut/python/pipeline/infer/
Dtest_net_infer.py89 def net1(): function
99 return net1() + net2()
/third_party/mindspore/tests/st/compile_cache/
Dtest_ascend_lenet.py93 net1 = LeNet()
94 train(net1, data1, label1)
/third_party/mindspore/tests/ut/python/ops/
Dtest_tensor_slice.py685 net1 = TensorAssignWithBoolTensorIndex()
687 net1(Ta, Tb, Tc, u_tensor)
688 net1(Ta, Tb, Tc, u_tensor)
690 net1(Ta, Td, Tc, u_tensor)
692 net1(Ta, u_tensor, Tc, u_tensor)
694 net1(Ta, Tb, Td, u_tensor)
696 net1(Ta, Tb, Ta, u_tensor)
698 net1(Ta, Tb, Tc, u_tensor_error)

12