Home
last modified time | relevance | path

Searched refs:stop_gradient (Results 1 – 16 of 16) sorted by relevance

/third_party/mindspore/tests/ut/python/pynative_mode/
Dtest_stop_gradient.py28 from mindspore.ops.functional import stop_gradient
53 c_s = stop_gradient(c)
60 c_s = stop_gradient(c)
77 c = stop_gradient(o1)
85 c_s = stop_gradient(c)
173 x = stop_gradient(x)
194 ret = stop_gradient(ret)
225 c = stop_gradient(c)
247 z2 = stop_gradient(z2)
262 return stop_gradient(x)
[all …]
Dtest_insert_grad_of.py37 def stop_gradient(dx): function
42 stop = P.InsertGradientOf(stop_gradient)
/third_party/mindspore/tests/st/fl/cross_silo_faster_rcnn/src/FasterRcnn/
Drpn.py289 bbox_target_ = F.stop_gradient(bbox_target_with_batchsize)
290 bbox_weight_ = F.stop_gradient(bbox_weight_with_batchsize)
291 label_ = F.stop_gradient(label_with_batchsize)
292 label_weight_ = F.stop_gradient(label_weight_with_batchsize)
Dfaster_rcnn_resnet.py291 bbox_targets = F.stop_gradient(bbox_targets)
292 rcnn_labels = F.stop_gradient(rcnn_labels)
317 rois = F.stop_gradient(rois)
334 rcnn_masks = F.stop_gradient(rcnn_masks)
Dfaster_rcnn_resnet50v1.py291 bbox_targets = F.stop_gradient(bbox_targets)
292 rcnn_labels = F.stop_gradient(rcnn_labels)
317 rois = F.stop_gradient(rois)
334 rcnn_masks = F.stop_gradient(rcnn_masks)
Dresnet.py159 identity = F.stop_gradient(c2)
Dresnet50v1.py159 identity = F.stop_gradient(c2)
/third_party/mindspore/mindspore/_extends/
Dbuiltin_operations.py168 def stop_gradient(x): function
/third_party/mindspore/mindspore/nn/probability/distribution/
Dcategorical.py19 from mindspore.ops.functional import stop_gradient
413 samples = stop_gradient(samples)
/third_party/mindspore/mindspore/core/ir/
Danf.h284 bool stop_gradient() const { return stop_gradient_; } in stop_gradient() function
285 void set_stop_gradient(bool stop_gradient) { stop_gradient_ = stop_gradient; } in set_stop_gradient() argument
/third_party/mindspore/mindspore/ccsrc/frontend/optimizer/ad/
Dkpynative.cc682 if (cnode_input != nullptr && cnode_input->stop_gradient()) { in BackPropagate()
841 if (cnode->stop_gradient()) { in BackPropagate()
868 if (!user->isa<CNode>() || !user->cast<CNodePtr>()->stop_gradient()) { in AllReferencesStopped()
883 if (!cnode->stop_gradient()) { in PropagateStopGradient()
Ddfunctor.cc312 if (cnode_morph->stop_gradient()) { in MapMorphism()
729 if (!cnode->stop_gradient()) { in BroadCastStopFlag()
752 if (!user->isa<CNode>() || !user->cast<CNodePtr>()->stop_gradient()) { in AllReferencesStopped()
/third_party/mindspore/mindspore/ops/
Dfunctional.py244 stop_gradient = Primitive("stop_gradient") variable
/third_party/mindspore/tests/st/model_zoo_tests/yolov3_darknet53/src/
Dyolo.py340 ignore_mask = F.stop_gradient(ignore_mask)
/third_party/mindspore/tests/st/model_zoo_tests/yolov3/src/
Dyolov3.py546 ignore_mask = F.stop_gradient(ignore_mask)
/third_party/mindspore/mindspore/nn/layer/
Dmath.py1006 variance = self.reduce_mean(self.square_diff(x, F.stop_gradient(mean)), self.axis)