/third_party/boost/libs/asio/test/ip/ |
D | network_v4.cpp | 43 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 …]
|
D | network_v6.cpp | 43 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/ |
D | test_using_seed_for_initializer.py | 43 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…
|
D | test_allreduce_fusion.py | 93 def __init__(self, net1, net2): argument 95 self.backbone1 = net1
|
/third_party/mindspore/tests/st/hook/ |
D | test_hook_function.py | 68 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/ |
D | test_momentum_fusion.py | 53 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)
|
D | test_multinomial_op.py | 42 net1 = Net(2, True, 20) 45 out1 = net1(x0)
|
D | test_reduce_all_op.py | 121 net1 = ReduceAllDynamic(Tensor(x_1), axis_1) 127 output1 = net1()
|
D | test_reduce_any_op.py | 121 net1 = ReduceAnyDynamic(Tensor(x_1), axis_1) 127 output1 = net1()
|
D | test_reduce_min_op.py | 204 net1 = ReduceMinDynamic(Tensor(x_1), axis_1) 210 output1 = net1()
|
D | test_reduce_max_op.py | 204 net1 = ReduceMaxDynamic(Tensor(x_1), axis_1) 210 output1 = net1()
|
D | test_reduce_sum_op.py | 296 net1 = ReduceSumDynamic(Tensor(x_1), axis_1) 302 output1 = net1()
|
D | test_reduce_mean_op.py | 287 net1 = ReduceMeanDynamic(Tensor(x14), axis14, keepdims=True) 289 output1 = net1()
|
/third_party/lwip/test/unit/core/ |
D | test_netif.c | 246 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/ |
D | test_utils.py | 124 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/ |
D | test_dynamic_shape_embedding.py | 48 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/ |
D | test_function_staging.py | 49 net1 = NetPynative() 50 out_me_pynative = net1(Tensor(input1)).asnumpy()
|
D | test_tensor_getitem.py | 478 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/ |
D | test_multinomial_op.py | 44 net1 = Net(2, True, 20) 47 out1 = net1(x0)
|
/third_party/mindspore/tests/st/heterogeneous_excutor/ |
D | test_control.py | 60 net1 = Net1() 61 output1 = net1(Tensor(x), Tensor(y))
|
/third_party/mindspore/tests/st/pynative/parser/ |
D | test_parser_construct.py | 65 net1 = Net() 67 grad_op = grad(net1)
|
/third_party/mindspore/tests/ut/python/pynative_mode/ |
D | test_tuple_parameter.py | 65 net1 = Net1() 67 output = grad_op(net1)(x, y)
|
/third_party/mindspore/tests/ut/python/pipeline/infer/ |
D | test_net_infer.py | 89 def net1(): function 99 return net1() + net2()
|
/third_party/mindspore/tests/st/compile_cache/ |
D | test_ascend_lenet.py | 93 net1 = LeNet() 94 train(net1, data1, label1)
|
/third_party/mindspore/tests/ut/python/ops/ |
D | test_tensor_slice.py | 685 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)
|