Home
last modified time | relevance | path

Searched refs:net_with_criterion (Results 1 – 25 of 33) sorted by relevance

12

/third_party/mindspore/tests/st/pynative/
Dtest_pynative_lenet.py149 net_with_criterion = WithLossCell(net, criterion)
150 train_network = GradWrap(net_with_criterion)
185 net_with_criterion = WithLossCell(net, criterion)
186 net_with_criterion.set_train()
191 …forward_value_and_grad = nn.ForwardValueAndGrad(network=net_with_criterion, weights=weights, get_b…
/third_party/mindspore/tests/st/networks/
Dtest_gpu_lenet.py141 net_with_criterion = WithLossCell(net, criterion)
142 train_network = TrainOneStepCell(net_with_criterion, optimizer) # optimizer
217 net_with_criterion = WithLossCell(network, criterion)
218 net_with_criterion.set_train()
223 …train_network = ForwardValueAndGrad(network=net_with_criterion, weights=weights, get_by_list=True,…
Dtest_network_main.py43 net_with_criterion = WithLossCell(net, criterion)
44 train_network = TrainOneStepCell(net_with_criterion, optimizer) # optimizer
Dtest_cpu_lenet.py64 net_with_criterion = WithLossCell(net, criterion)
65 train_network = TrainOneStepCell(net_with_criterion, optimizer) # optimizer
Dtest_gpu_alexnet.py80 net_with_criterion = WithLossCell(net, criterion)
81 train_network = TrainOneStepCell(net_with_criterion, optimizer)
Dtest_gpu_lstm.py133 net_with_criterion = WithLossCell(net, criterion)
134 train_network = TrainOneStepCell(net_with_criterion, optimizer) # optimizer
/third_party/mindspore/tests/st/ops/cpu/
Dtest_momentum_op.py56 net_with_criterion = WithLossCell(net, criterion)
57 train_network = TrainOneStepCell(net_with_criterion, optimizer) # optimizer
Dtest_adam_op.py53 net_with_criterion = WithLossCell(net, criterion)
55 net_with_criterion, optimizer)
Dtest_sgd_op.py59 net_with_criterion = WithLossCell(net, criterion)
60 train_network = TrainOneStepCell(net_with_criterion, optimizer) # optimizer
Dtest_adam_weight_decay_op.py53 net_with_criterion = WithLossCell(net, criterion)
54 train_network = TrainOneStepCell(net_with_criterion, optimizer)
Dtest_cpu_type.py106 net_with_criterion = WithLossCell(net, criterion)
107 train_network = TrainOneStepCell(net_with_criterion, optimizer) # optimizer
/third_party/mindspore/tests/st/ops/gpu/
Dtest_sgd_op.py59 net_with_criterion = WithLossCell(net, criterion)
60 train_network = TrainOneStepCell(net_with_criterion, optimizer) # optimizer
Dtest_momentum_op.py56 net_with_criterion = WithLossCell(net, criterion)
57 train_network = TrainOneStepCell(net_with_criterion, optimizer) # optimizer
Dtest_ftrl_op.py53 net_with_criterion = WithLossCell(net, criterion)
55 net_with_criterion, optimizer)
Dtest_adam_op.py53 net_with_criterion = WithLossCell(net, criterion)
55 net_with_criterion, optimizer)
/third_party/mindspore/tests/st/ops/ascend/test_tbe_ops/
Dtest_apply_adam.py58 net_with_criterion = WithLossCell(ms_dense, criterion)
59 train_network = TrainOneStepCell(net_with_criterion, optimizer)
/third_party/mindspore/tests/st/ps/cmp_sparse_embedding/
Dtest_cmp_sparse_embedding.py67 net_with_criterion = WithLossCell(net, criterion)
68 train_network = TrainOneStepCell(net_with_criterion, optimizer)
/third_party/mindspore/tests/st/recompute/
Dtest_cpu_lenet_recompute.py65 net_with_criterion = WithLossCell(net, criterion)
66 train_network = TrainOneStepCell(net_with_criterion, optimizer) # optimizer
/third_party/mindspore/tests/st/host_device/
Dtest_host_device_lenet.py70 net_with_criterion = WithLossCell(net, criterion)
71 train_network = TrainOneStepCell(net_with_criterion, optimizer) # optimizer
/third_party/mindspore/tests/st/ps/multi_full_ps/
Dtest_multi_full_ps.py105 net_with_criterion = WithLossCell(network, criterion) variable
106 train_network = TrainOneStepCell(net_with_criterion, net_opt)
/third_party/mindspore/tests/st/compile_cache/
Dtest_ascend_lenet.py65 net_with_criterion = WithLossCell(net, criterion)
66 train_network = TrainOneStepCell(net_with_criterion, optimizer) # optimizer
/third_party/mindspore/tests/st/fl/cross_silo_lenet/
Dtest_cross_silo_lenet.py107 net_with_criterion = WithLossCell(network, criterion) variable
108 train_network = TrainOneStepCell(net_with_criterion, net_opt)
/third_party/mindspore/tests/st/high_grad/
Dtest_highgrad_train.py111 net_with_criterion = WithLossCellLocal(grad_net, criterion)
112 train_network = TrainOneStepCell(net_with_criterion, optimizer)
/third_party/mindspore/tests/st/nccl/
Dtest_nccl_lenet.py89 net_with_criterion = WithLossCell(net, criterion)
90 train_network = TrainOneStepCell(net_with_criterion, mom_optimizer)
/third_party/mindspore/tests/st/fl/mobile/
Dtest_mobile_lenet.py133 net_with_criterion = WithLossCell(network, criterion) variable
134 train_network = TrainOneStepCell(net_with_criterion, net_opt)

12