Home
last modified time | relevance | path

Searched refs:set_grad (Results 1 – 22 of 22) sorted by relevance

/third_party/mindspore/tests/ut/python/pynative_mode/
Dtest_multi_grad.py98 mulnet.set_grad()
99 addnet.set_grad()
131 mulnet.set_grad()
132 addnet.set_grad()
166 mulnet.set_grad()
167 addnet.set_grad()
204 mulnet.set_grad()
205 addnet.set_grad()
Dtest_kw_and_kwarg.py82 kw_net.set_grad(True)
127 net.set_grad(True)
/third_party/mindspore/tests/st/pynative/
Dtest_pynative_hook_grad.py231 ms_net.set_grad()
244 ms_net.set_grad()
265 ms_net.set_grad()
293 ms_net.set_grad()
310 ms_net.set_grad()
329 ms_net.set_grad()
347 ms_net.set_grad()
369 ms_net.set_grad()
396 ms_net.set_grad()
Dtest_pynative_resnet50_gpu.py394 net_with_criterion.set_grad()
/third_party/mindspore/mindspore/nn/layer/
Dcontainer.py215 def set_grad(self, flag=True): member in SequentialCell
218 cell.set_grad(flag)
389 def set_grad(self, flag=True): member in CellList
392 cell.set_grad(flag)
/third_party/mindspore/mindspore/explainer/explanation/_attribution/
Dattribution.py38 self._network.set_grad(False)
/third_party/mindspore/mindspore/explainer/explanation/_attribution/_backprop/
Dgradient.py82 self._backward_model.set_grad(False)
/third_party/mindspore/mindspore/ops/composite/
Dbase.py355 fn.set_grad()
357 fn.set_grad(False)
/third_party/mindspore/tests/st/fl/albert/src/
Dcell_wrapper.py196 self.network.set_grad()
277 self.network.set_grad()
/third_party/mindspore/tests/st/fl/cross_silo_faster_rcnn/src/
Dnetwork_define.py134 self.network.set_grad()
/third_party/mindspore/tests/st/fl/hybrid_lenet/src/
Dcell_wrapper.py81 self.network.set_grad()
/third_party/mindspore/mindspore/nn/wrap/
Dcell_wrapper.py264 self.network.set_grad()
338 self.network.set_grad()
/third_party/mindspore/tests/st/ops/ascend/test_aicpu_ops/
Dtest_tensor_copy_slices.py84 net.set_grad()
/third_party/mindspore/mindspore/lite/examples/export_models/models/
Dtinybert_train_export.py117 self.network.set_grad()
/third_party/mindspore/tests/st/networks/
Dtest_gradient_accumulation.py78 self.network.set_grad()
/third_party/mindspore/tests/st/pynative/loss_scale/
Dtest_loss_scale.py248 net_with_loss.set_grad()
/third_party/mindspore/tests/ut/python/pipeline/parse/
Dtest_parse.py259 net.set_grad()
/third_party/mindspore/tests/st/ops/gpu/
Dtest_dense_op.py314 net.set_grad()
/third_party/mindspore/tests/st/model_zoo_tests/yolov3_darknet53/src/
Dyolo.py414 self.network.set_grad()
/third_party/mindspore/mindspore/core/ir/
Danf.h207 void set_grad(const bool &need_grad) { need_grad_ = need_grad; } in set_grad() function
/third_party/mindspore/tests/st/auto_monad/
Dtest_auto_monad_mindtester.py222 self.f.set_grad()
/third_party/mindspore/mindspore/nn/
Dcell.py1215 def set_grad(self, requires_grad=True): member in Cell