forked from mindspore-Ecosystem/mindspore
!26983 fix FusedMulAddN code trace print
Merge pull request !26983 from yuchaojie/ir_fusion
This commit is contained in:
commit
e67f83fdf1
|
@ -22,8 +22,8 @@
|
|||
|
||||
namespace mindspore {
|
||||
namespace opt {
|
||||
CNodePtr CreateFusionNode(const FuncGraphPtr &graph, const CNodePtr &mul, const CNodePtr &addn,
|
||||
const size_t &lossscale_input_index) {
|
||||
CNodePtr MulAddNFusion::CreateFusionNode(const FuncGraphPtr &graph, const CNodePtr &mul, const CNodePtr &addn,
|
||||
const size_t &lossscale_input_index) const {
|
||||
MS_EXCEPTION_IF_NULL(graph);
|
||||
MS_EXCEPTION_IF_NULL(mul);
|
||||
MS_EXCEPTION_IF_NULL(addn);
|
||||
|
|
|
@ -28,6 +28,10 @@ class MulAddNFusion : public PatternProcessPassWithSwitch {
|
|||
~MulAddNFusion() override = default;
|
||||
const BaseRef DefinePattern() const override;
|
||||
const AnfNodePtr Process(const FuncGraphPtr &, const AnfNodePtr &, const EquivPtr &) const override;
|
||||
|
||||
private:
|
||||
CNodePtr CreateFusionNode(const FuncGraphPtr &graph, const CNodePtr &mul, const CNodePtr &addn,
|
||||
const size_t &lossscale_input_index) const;
|
||||
};
|
||||
} // namespace opt
|
||||
} // namespace mindspore
|
||||
|
|
Loading…
Reference in New Issue