Add bprop mindir for array ops

This commit is contained in:
yujianfeng 2022-11-03 15:28:00 +08:00
parent 47e0db0c53
commit e99a43d9d6
102 changed files with 2217 additions and 1033 deletions

View File

@ -91,6 +91,7 @@ std::pair<std::string, std::string> GetBpropHashAndFilePath(const py::function &
}
// Get the hash of the function.
auto bprop_str = GetBpropString(realpath.value(), prim_name);
MS_LOG(DEBUG) << "bprop string: " << bprop_str;
// Get the relative path of the function.
auto filepath = realpath.value();
static std::string bprop_dir = GetBpropDir();
@ -190,11 +191,8 @@ void OptimizeBpropFromMindIR(const FuncGraphPtr &fg, const pipeline::ResourceBas
EliminateParameterSelf(fg, res, prim);
opt::irpass::BpropMindIRPassLib irpass;
std::vector<opt::SubstitutionPtr> opt_list{irpass.get_multitype_ops_};
(void)opt_list.emplace_back(irpass.get_class_type_);
(void)opt_list.emplace_back(irpass.get_meta_fg_);
(void)opt_list.emplace_back(irpass.get_primal_attr_);
std::vector<opt::SubstitutionPtr> opt_list{irpass.get_constexpr_ops_, irpass.get_class_type_, irpass.get_meta_fg_,
irpass.get_primal_attr_, irpass.get_sub_func_graph_};
opt::OptPassGroupMap map({
{"bprop_mindir_opt", opt::OptPassConfig(opt_list)},
});
@ -211,6 +209,7 @@ FuncGraphPtr LiftParameter(const FuncGraphPtr &func_graph) {
auto bprop_fg = GetValueNode<FuncGraphPtr>(func_graph->output());
MS_EXCEPTION_IF_NULL(bprop_fg);
for (auto &p : bprop_fg->parameters()) {
TraceGuard trace_guard(std::make_shared<TraceCopy>(p->debug_info()));
auto new_p = func_graph->add_parameter();
mng->Replace(p, new_p);
}
@ -223,7 +222,9 @@ FuncGraphPtr LiftParameter(const FuncGraphPtr &func_graph) {
FuncGraphPtr RemovePyObj(const FuncGraphPtr &func_graph, const pipeline::ResourceBasePtr &res) {
opt::irpass::BpropMindIRPassLib irpass;
opt::OptPassGroupMap map({
{"remove_class_type", opt::OptPassConfig({irpass.remote_class_type_})},
{"remove_class_type", opt::OptPassConfig({irpass.class_type_resolve_})},
{"resolve_do_signature_prim", opt::OptPassConfig({irpass.do_signature_resolve_})},
{"remove_resolve", opt::OptPassConfig({irpass.resolve_node_resolve_})},
});
opt::OptimizerPtr export_mindir_opt =
opt::Optimizer::MakeOptimizer("export_mindir_opt", res, map, false, false, false);
@ -234,7 +235,7 @@ FuncGraphPtr RemovePyObj(const FuncGraphPtr &func_graph, const pipeline::Resourc
} // namespace
#ifndef _WIN32
void ExportBpropToMindir(const py::object &obj) {
void ExportBpropToMindir(const py::object &obj, bool force_update = false) {
if (!py::isinstance<py::str>(obj)) {
MS_LOG(EXCEPTION) << "The python obj " << py::str(obj) << " to be exported to mindir should be a string";
}
@ -252,7 +253,7 @@ void ExportBpropToMindir(const py::object &obj) {
MS_LOG(EXCEPTION) << "Fail to get the file path of bprop for " << prim_name;
}
// If the bprop file hash has not changed, we don't need to export a new mindir.
if (CheckBpropUpToDate(prim_name, bprop_hash_and_filepath.first)) {
if (!force_update && CheckBpropUpToDate(prim_name, bprop_hash_and_filepath.first)) {
MS_LOG(WARNING) << "The hash of bprop function of primitive " << prim_name
<< " is not changed, we will not export a new mindir.";
return;

View File

@ -25,7 +25,7 @@ namespace ad {
#ifndef _WIN32
// For the bprop mindir generator.
// Given an operator name, export a mindir file from its bprop defined in python.
void ExportBpropToMindir(const py::object &obj);
void ExportBpropToMindir(const py::object &obj, bool force_update);
// For the bprop mindir check.
// Given an operator name, check whether its mindir file can be loaded and up to date.
bool CheckMindir(const py::object &obj);

View File

@ -50,11 +50,14 @@
#include "frontend/optimizer/irpass/call_graph_tuple_transform.h"
#include "frontend/optimizer/irpass/recompute_prepare.h"
#include "frontend/optimizer/irpass/real_op_eliminate.h"
#include "frontend/optimizer/irpass/bprop_get_multitype_ops.h"
#include "frontend/optimizer/irpass/bprop_get_class_type.h"
#include "frontend/optimizer/irpass/bprop_get_meta_fg.h"
#include "frontend/optimizer/irpass/bprop_get_primal_attr.h"
#include "frontend/optimizer/irpass/bprop_remove_class_type.h"
#include "mindspore/ccsrc/frontend/optimizer/irpass/bprop_mindir/get_constexpr_ops.h"
#include "mindspore/ccsrc/frontend/optimizer/irpass/bprop_mindir/get_class_type.h"
#include "mindspore/ccsrc/frontend/optimizer/irpass/bprop_mindir/get_meta_fg.h"
#include "mindspore/ccsrc/frontend/optimizer/irpass/bprop_mindir/get_primal_attr.h"
#include "mindspore/ccsrc/frontend/optimizer/irpass/bprop_mindir/get_sub_func_graph.h"
#include "mindspore/ccsrc/frontend/optimizer/irpass/bprop_mindir/class_type_resolve.h"
#include "mindspore/ccsrc/frontend/optimizer/irpass/bprop_mindir/do_signature_resolve.h"
#include "mindspore/ccsrc/frontend/optimizer/irpass/bprop_mindir/resolve_node_resolve.h"
namespace mindspore {
namespace opt {
@ -273,24 +276,26 @@ MetaUnpackPrepareLib::MetaUnpackPrepareLib() {
}
BpropMindIRPassLib::BpropMindIRPassLib() {
get_multitype_ops_ = MakeSubstitution(
std::make_shared<BpropGetMultitypeOps>(), "bprop_get_multitype_ops",
{std::make_shared<Primitive>("S-Prim-negative"), std::make_shared<Primitive>("S-Prim-zeros_like_leaf"),
std::make_shared<Primitive>("S-Prim-getitem"), std::make_shared<Primitive>("S-Prim-mul"),
std::make_shared<Primitive>("S-Prim-logical_not"), std::make_shared<Primitive>("S-Prim-in"),
std::make_shared<Primitive>("S-Prim-less"), std::make_shared<Primitive>("S-Prim-add")});
get_constexpr_ops_ =
MakeSubstitution(std::make_shared<GetConstexprOps>(), "get_constexpr_ops", IsValueNode<prim::DoSignaturePrimitive>);
get_class_type_ =
MakeSubstitution(std::make_shared<BpropGetClassType>(), "bprop_get_class_type", IsValueNode<MindIRClassType>);
get_class_type_ = MakeSubstitution(std::make_shared<GetClassType>(), "get_class_type", IsValueNode<MindIRClassType>);
get_meta_fg_ =
MakeSubstitution(std::make_shared<BpropGetMetaFg>(), "bprop_get_class_type", IsValueNode<MindIRMetaFuncGraph>);
get_meta_fg_ = MakeSubstitution(std::make_shared<GetMetaFg>(), "get_meta_fg", IsValueNode<MindIRMetaFuncGraph>);
get_primal_attr_ =
MakeSubstitution(std::make_shared<BpropGetPrimalAttr>(), "bprop_get_primal_attr", {prim::kPrimGetAttr});
get_primal_attr_ = MakeSubstitution(std::make_shared<GetPrimalAttr>(), "get_primal_attr", {prim::kPrimGetAttr});
remote_class_type_ = MakeSubstitution(std::make_shared<BpropRemoveClassType>(), "bprop_remove_primal_attr",
IsValueNode<parse::ClassType>);
get_sub_func_graph_ =
MakeSubstitution(std::make_shared<GetSubFuncGraph>(), "get_sub_func_graph", {prim::kPrimResolve});
class_type_resolve_ =
MakeSubstitution(std::make_shared<ClassTypeResolve>(), "class_type_resolve", IsValueNode<parse::ClassType>);
do_signature_resolve_ =
MakeSubstitution(std::make_shared<DoSignatureResolve>(), "do_signature_resolve", IsCNodeDoSignature);
resolve_node_resolve_ =
MakeSubstitution(std::make_shared<ResolveNodeResolve>(), "resolve_node_resolve", {prim::kPrimResolve});
}
} // namespace irpass
} // namespace opt

View File

@ -181,11 +181,14 @@ class BpropMindIRPassLib {
public:
BpropMindIRPassLib();
~BpropMindIRPassLib() = default;
SubstitutionPtr get_multitype_ops_;
SubstitutionPtr get_constexpr_ops_;
SubstitutionPtr get_class_type_;
SubstitutionPtr get_meta_fg_;
SubstitutionPtr get_primal_attr_;
SubstitutionPtr remote_class_type_;
SubstitutionPtr get_sub_func_graph_;
SubstitutionPtr class_type_resolve_;
SubstitutionPtr do_signature_resolve_;
SubstitutionPtr resolve_node_resolve_;
};
// predicate functions
@ -248,6 +251,15 @@ inline bool IsCNodeSwitch(const AnfNodePtr &node) {
}
return false;
}
// check if the cnode is a do_signature cnode
inline bool IsCNodeDoSignature(const AnfNodePtr &node) {
auto cnode = dyn_cast_ptr<CNode>(node);
if (cnode == nullptr) {
return false;
}
return IsValueNode<prim::DoSignaturePrimitive>(cnode->input(0));
}
} // namespace irpass
} // namespace opt
} // namespace mindspore

View File

@ -1,48 +0,0 @@
/**
* Copyright 2022 Huawei Technologies Co., Ltd
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef MINDSPORE_CCSRC_FRONTEND_OPTIMIZER_IRPASS_BPROP_GET_META_FG_H
#define MINDSPORE_CCSRC_FRONTEND_OPTIMIZER_IRPASS_BPROP_GET_META_FG_H
#include <string>
#include <memory>
#include "frontend/optimizer/optimizer.h"
#include "frontend/optimizer/irpass.h"
#include "frontend/optimizer/anf_visitor.h"
namespace mindspore {
namespace opt {
namespace irpass {
class BpropGetMetaFg : public AnfVisitor {
AnfNodePtr operator()(const OptimizerPtr &, const AnfNodePtr &node) override {
if (!IsValueNode<MindIRMetaFuncGraph>(node)) {
return nullptr;
}
static mindspore::HashMap<std::string, MetaFuncGraphPtr> meta_fgs{
{"unpack_call", std::make_shared<prim::UnpackCall>("unpack_call")},
};
auto meta_fg_name = GetValueNode<MindIRMetaFuncGraphPtr>(node)->name();
auto iter = meta_fgs.find(meta_fg_name);
if (iter == meta_fgs.end()) {
return nullptr;
}
return NewValueNode(iter->second);
}
};
} // namespace irpass
} // namespace opt
} // namespace mindspore
#endif // MINDSPORE_CCSRC_FRONTEND_OPTIMIZER_IRPASS_BPROP_GET_META_FG_H

View File

@ -1,74 +0,0 @@
/**
* Copyright 2022 Huawei Technologies Co., Ltd
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef MINDSPORE_CCSRC_FRONTEND_OPTIMIZER_IRPASS_BPROP_GET_MULTITYPE_OPS_H
#define MINDSPORE_CCSRC_FRONTEND_OPTIMIZER_IRPASS_BPROP_GET_MULTITYPE_OPS_H
#include <utility>
#include <string>
#include <vector>
#include <algorithm>
#include "frontend/optimizer/optimizer.h"
#include "frontend/optimizer/irpass.h"
#include "frontend/optimizer/anf_visitor.h"
namespace mindspore {
namespace opt {
namespace irpass {
class BpropGetMultitypeOps : public AnfVisitor {
public:
AnfNodePtr operator()(const OptimizerPtr &, const AnfNodePtr &node) override {
static mindspore::HashMap<std::string, std::pair<std::string, std::string>> multitype_ops{
{"S-Prim-zeros_like_leaf", {"zeros_like", ""}},
{"S-Prim-getitem", {"getitem", "mindspore.ops.composite.multitype_ops.getitem_impl"}},
{"S-Prim-negative", {"negative", "mindspore.ops.composite.multitype_ops.negative_impl"}},
{"S-Prim-mul", {"mul", "mindspore.ops.composite.multitype_ops.mul_impl"}},
{"S-Prim-logical_not", {"logical_not", "mindspore.ops.composite.multitype_ops.logic_not_impl"}},
{"S-Prim-in", {"in_", "mindspore.ops.composite.multitype_ops.in_impl"}},
{"S-Prim-less", {"less", "mindspore.ops.composite.multitype_ops.less_impl"}},
{"S-Prim-add", {"add", "mindspore.ops.composite.multitype_ops.add_impl"}},
};
auto fg = node->func_graph();
if (fg == nullptr) {
return nullptr;
}
auto cnode = node->cast_ptr<CNode>();
MS_EXCEPTION_IF_NULL(cnode);
auto &inputs = cnode->inputs();
if (inputs.empty()) {
return nullptr;
}
auto prim = GetValueNode<PrimitivePtr>(inputs[0]);
MS_EXCEPTION_IF_NULL(prim);
auto iter = multitype_ops.find(prim->name());
if (iter == multitype_ops.end()) {
return nullptr;
}
ValuePtr python_ops;
if (!iter->second.second.empty()) {
python_ops = prim::GetPythonOps(iter->second.first, iter->second.second);
} else {
python_ops = prim::GetPythonOps(iter->second.first);
}
std::vector<AnfNodePtr> new_inputs{NewValueNode(python_ops)};
(void)std::copy(inputs.begin() + 1, inputs.end(), std::back_inserter(new_inputs));
return fg->NewCNode(new_inputs);
}
};
} // namespace irpass
} // namespace opt
} // namespace mindspore
#endif // MINDSPORE_CCSRC_FRONTEND_OPTIMIZER_IRPASS_BPROP_GET_MULTITYPE_OPS_H

View File

@ -14,8 +14,8 @@
* limitations under the License.
*/
#ifndef MINDSPORE_CCSRC_FRONTEND_OPTIMIZER_IRPASS_BPROP_REMOVE_CLASS_TYPE_H
#define MINDSPORE_CCSRC_FRONTEND_OPTIMIZER_IRPASS_BPROP_REMOVE_CLASS_TYPE_H
#ifndef MINDSPORE_CCSRC_FRONTEND_OPTIMIZER_IRPASS_BPROP_MINDIR_CLASS_TYPE_RESOLVE_H
#define MINDSPORE_CCSRC_FRONTEND_OPTIMIZER_IRPASS_BPROP_MINDIR_CLASS_TYPE_RESOLVE_H
#include <string>
#include <memory>
@ -26,7 +26,8 @@
namespace mindspore {
namespace opt {
namespace irpass {
class BpropRemoveClassType : public AnfVisitor {
class ClassTypeResolve : public AnfVisitor {
public:
AnfNodePtr operator()(const OptimizerPtr &, const AnfNodePtr &node) override {
if (!IsValueNode<parse::ClassType>(node)) {
return nullptr;
@ -38,4 +39,4 @@ class BpropRemoveClassType : public AnfVisitor {
} // namespace irpass
} // namespace opt
} // namespace mindspore
#endif // MINDSPORE_CCSRC_FRONTEND_OPTIMIZER_IRPASS_BPROP_REMOVE_CLASS_TYPE_H
#endif // MINDSPORE_CCSRC_FRONTEND_OPTIMIZER_IRPASS_BPROP_MINDIR_CLASS_TYPE_RESOLVE_H

View File

@ -0,0 +1,76 @@
/**
* Copyright 2022 Huawei Technologies Co., Ltd
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef MINDSPORE_CCSRC_FRONTEND_OPTIMIZER_IRPASS_BPROP_MINDIR_DO_SIGNATURE_RESOLVE_H
#define MINDSPORE_CCSRC_FRONTEND_OPTIMIZER_IRPASS_BPROP_MINDIR_DO_SIGNATURE_RESOLVE_H
#include <string>
#include <memory>
#include <vector>
#include <algorithm>
#include "frontend/optimizer/optimizer.h"
#include "frontend/optimizer/irpass.h"
#include "frontend/optimizer/anf_visitor.h"
namespace mindspore {
namespace opt {
namespace irpass {
class DoSignatureResolve : public AnfVisitor {
public:
AnfNodePtr operator()(const OptimizerPtr &optimizer, const AnfNodePtr &node) override {
auto cnode = dyn_cast_ptr<CNode>(node);
if (cnode == nullptr) {
return nullptr;
}
auto prim_py = dyn_cast_ptr<PrimitivePy>(GetValueWithoutDoSignature(cnode->input(0)));
if (prim_py == nullptr) {
return nullptr;
}
auto prim_py_obj = prim_py->GetPyObj();
// Resolve constexpr function
if (py::hasattr(prim_py_obj, "fn")) {
py::object fn = py::getattr(prim_py_obj, "fn");
if (!fn || py::isinstance<py::none>(fn)) {
return nullptr;
}
if (!py::hasattr(fn, "__module__") || !py::hasattr(fn, "__name__")) {
return nullptr;
}
auto module = py::getattr(fn, "__module__");
auto name = py::getattr(fn, "__name__");
prim_py->AddAttr("constexpr_module", MakeValue(py::cast<std::string>(module)));
prim_py->AddAttr("constexpr_name", MakeValue(py::cast<std::string>(name)));
return nullptr;
}
// Convert the primitive with python infer or check function to class type
if (py::hasattr(prim_py_obj, "__infer__") || py::hasattr(prim_py_obj, "__check__")) {
auto class_type = py::str(py::getattr(prim_py_obj, "__class__")).cast<std::string>();
auto mindir_class_type =
NewValueNode(std::make_shared<MindIRClassType>(std::string(class_type.begin() + 1, class_type.end() - 1)));
auto fg = node->func_graph();
MS_EXCEPTION_IF_NULL(fg);
const auto &inputs = cnode->inputs();
std::vector<AnfNodePtr> new_inputs{fg->NewCNode({mindir_class_type})};
(void)std::copy(inputs.begin() + 1, inputs.end(), std::back_inserter(new_inputs));
return fg->NewCNode(new_inputs);
}
return nullptr;
}
};
} // namespace irpass
} // namespace opt
} // namespace mindspore
#endif // MINDSPORE_CCSRC_FRONTEND_OPTIMIZER_IRPASS_BPROP_MINDIR_DO_SIGNATURE_RESOLVE_H

View File

@ -14,8 +14,8 @@
* limitations under the License.
*/
#ifndef MINDSPORE_CCSRC_FRONTEND_OPTIMIZER_IRPASS_BPROP_GET_CLASS_TYPE_H
#define MINDSPORE_CCSRC_FRONTEND_OPTIMIZER_IRPASS_BPROP_GET_CLASS_TYPE_H
#ifndef MINDSPORE_CCSRC_FRONTEND_OPTIMIZER_IRPASS_BPROP_MINDIR_GET_CLASS_TYPE_H
#define MINDSPORE_CCSRC_FRONTEND_OPTIMIZER_IRPASS_BPROP_MINDIR_GET_CLASS_TYPE_H
#include <string>
#include <memory>
@ -26,17 +26,24 @@
namespace mindspore {
namespace opt {
namespace irpass {
class BpropGetClassType : public AnfVisitor {
class GetClassType : public AnfVisitor {
public:
AnfNodePtr operator()(const OptimizerPtr &, const AnfNodePtr &node) override {
if (!IsValueNode<MindIRClassType>(node)) {
return nullptr;
}
auto class_path = GetValueNode<MindIRClassTypePtr>(node)->name();
std::string sub_str = ".";
auto class_name_pos =
std::find_end(class_path.begin(), class_path.end(), sub_str.begin(), sub_str.end()) - class_path.begin();
auto package = std::string(class_path.begin(), class_path.begin() + class_name_pos);
auto class_name = std::string(class_path.begin() + class_name_pos + 1, class_path.end());
std::string package;
std::string class_name;
auto class_name_pos = std::find_end(class_path.begin(), class_path.end(), sub_str.begin(), sub_str.end());
if (class_name_pos == class_path.end()) {
package = "builtins";
class_name = class_path;
} else {
package = std::string(class_path.begin(), class_name_pos);
class_name = std::string(class_name_pos + 1, class_path.end());
}
auto module = python_adapter::GetPyModule(package);
if (!module || py::isinstance<py::none>(module)) {
MS_LOG(EXCEPTION) << "Can not get python module: " << package;
@ -48,4 +55,4 @@ class BpropGetClassType : public AnfVisitor {
} // namespace irpass
} // namespace opt
} // namespace mindspore
#endif // MINDSPORE_CCSRC_FRONTEND_OPTIMIZER_IRPASS_BPROP_GET_CLASS_TYPE_H
#endif // MINDSPORE_CCSRC_FRONTEND_OPTIMIZER_IRPASS_BPROP_MINDIR_GET_CLASS_TYPE_H

View File

@ -0,0 +1,63 @@
/**
* Copyright 2022 Huawei Technologies Co., Ltd
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef MINDSPORE_CCSRC_FRONTEND_OPTIMIZER_IRPASS_BPROP_MINDIR_GET_CONSTEXPR_OPS_H
#define MINDSPORE_CCSRC_FRONTEND_OPTIMIZER_IRPASS_BPROP_MINDIR_GET_CONSTEXPR_OPS_H
#include <utility>
#include <string>
#include <vector>
#include <algorithm>
#include <memory>
#include "frontend/optimizer/optimizer.h"
#include "frontend/optimizer/irpass.h"
#include "frontend/optimizer/anf_visitor.h"
namespace mindspore {
namespace opt {
namespace irpass {
class GetConstexprOps : public AnfVisitor {
public:
AnfNodePtr operator()(const OptimizerPtr &, const AnfNodePtr &node) override {
auto prim = dyn_cast_ptr<Primitive>(GetValueWithoutDoSignature(node));
if (prim == nullptr) {
return nullptr;
}
auto module_value = prim->GetAttr("constexpr_module");
if (module_value == nullptr) {
return nullptr;
}
auto package = GetValue<std::string>(module_value);
auto class_name = GetValue<std::string>(prim->GetAttr("constexpr_name"));
auto module = python_adapter::GetPyModule(package);
if (!module || py::isinstance<py::none>(module)) {
MS_LOG(EXCEPTION) << "Can not get python module: " << package;
}
auto attr = module.attr(class_name.c_str());
auto prim_adapter = attr.cast<PrimitivePyAdapterPtr>();
MS_EXCEPTION_IF_NULL(prim_adapter);
auto new_prim = prim_adapter->attached_primitive();
if (new_prim == nullptr) {
new_prim = std::make_shared<PrimitivePy>(attr, prim_adapter);
prim_adapter->set_attached_primitive(new_prim);
}
return NewValueNode(std::make_shared<prim::DoSignaturePrimitive>(new_prim->name(), new_prim));
}
};
} // namespace irpass
} // namespace opt
} // namespace mindspore
#endif // MINDSPORE_CCSRC_FRONTEND_OPTIMIZER_IRPASS_BPROP_MINDIR_GET_CONSTEXPR_OPS_H

View File

@ -0,0 +1,90 @@
/**
* Copyright 2022 Huawei Technologies Co., Ltd
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef MINDSPORE_CCSRC_FRONTEND_OPTIMIZER_IRPASS_BPROP_MINDIR_GET_META_FG_H
#define MINDSPORE_CCSRC_FRONTEND_OPTIMIZER_IRPASS_BPROP_MINDIR_GET_META_FG_H
#include <string>
#include <memory>
#include <utility>
#include "frontend/optimizer/optimizer.h"
#include "frontend/optimizer/irpass.h"
#include "frontend/optimizer/anf_visitor.h"
namespace mindspore {
namespace opt {
namespace irpass {
class GetMetaFg : public AnfVisitor {
public:
AnfNodePtr operator()(const OptimizerPtr &, const AnfNodePtr &node) override {
static mindspore::HashMap<std::string, std::pair<std::string, std::string>> multitype_ops{
{"zeros_like_leaf", {"zeros_like", ""}},
{"getitem", {"getitem", "mindspore.ops.composite.multitype_ops.getitem_impl"}},
{"negative", {"negative", "mindspore.ops.composite.multitype_ops.negative_impl"}},
{"mul", {"mul", "mindspore.ops.composite.multitype_ops.mul_impl"}},
{"logical_not", {"logical_not", "mindspore.ops.composite.multitype_ops.logic_not_impl"}},
{"in", {"in_", "mindspore.ops.composite.multitype_ops.in_impl"}},
{"less", {"less", "mindspore.ops.composite.multitype_ops.less_impl"}},
{"greater", {"greater", "mindspore.ops.composite.multitype_ops.greater_impl"}},
{"add", {"add", "mindspore.ops.composite.multitype_ops.add_impl"}},
{"sub", {"sub", "mindspore.ops.composite.multitype_ops.sub_impl"}},
{"dout_cast", {"dout_cast", "mindspore.ops._grad.grad_array_ops"}},
{"equal", {"equal", "mindspore.ops.composite.multitype_ops.equal_impl"}},
{"floordiv", {"floordiv", "mindspore.ops.composite.multitype_ops.floordiv_impl"}},
};
static mindspore::HashMap<std::string, MetaFuncGraphPtr> meta_fgs{
{"unpack_call", std::make_shared<prim::UnpackCall>("unpack_call")},
};
if (!IsValueNode<MindIRMetaFuncGraph>(node)) {
return nullptr;
}
auto meta_fg_name = GetValueNode<MindIRMetaFuncGraphPtr>(node)->name();
meta_fg_name = GetHyperMapOpsName(meta_fg_name);
// meta func_graph
auto meta_fgs_iter = meta_fgs.find(meta_fg_name);
if (meta_fgs_iter != meta_fgs.end()) {
return NewValueNode(meta_fgs_iter->second);
}
// multitype func_graph
auto multitype_ops_iter = multitype_ops.find(meta_fg_name);
if (multitype_ops_iter == multitype_ops.end()) {
return nullptr;
}
ValuePtr python_ops;
if (!multitype_ops_iter->second.second.empty()) {
python_ops = prim::GetPythonOps(multitype_ops_iter->second.first, multitype_ops_iter->second.second);
} else {
python_ops = prim::GetPythonOps(multitype_ops_iter->second.first);
}
return NewValueNode(python_ops);
}
// hyper_map[xxx] -> xxx
static std::string GetHyperMapOpsName(const std::string &meta_fg_name) {
static constexpr char kHyperMapPrefix[] = "hyper_map";
static size_t prefix_len = strlen(kHyperMapPrefix);
if (meta_fg_name.compare(0, prefix_len, kHyperMapPrefix) != 0) {
return meta_fg_name;
}
constexpr auto offset = 2;
auto op_name = meta_fg_name.substr(prefix_len + 1, meta_fg_name.length() - prefix_len - offset);
return op_name;
}
};
} // namespace irpass
} // namespace opt
} // namespace mindspore
#endif // MINDSPORE_CCSRC_FRONTEND_OPTIMIZER_IRPASS_BPROP_MINDIR_GET_META_FG_H

View File

@ -14,8 +14,8 @@
* limitations under the License.
*/
#ifndef MINDSPORE_CCSRC_FRONTEND_OPTIMIZER_IRPASS_BPROP_GET_PRIMAL_ATTR_H
#define MINDSPORE_CCSRC_FRONTEND_OPTIMIZER_IRPASS_BPROP_GET_PRIMAL_ATTR_H
#ifndef MINDSPORE_CCSRC_FRONTEND_OPTIMIZER_IRPASS_BPROP_MINDIR_GET_PRIMAL_ATTR_H
#define MINDSPORE_CCSRC_FRONTEND_OPTIMIZER_IRPASS_BPROP_MINDIR_GET_PRIMAL_ATTR_H
#include <string>
#include "frontend/optimizer/optimizer.h"
@ -25,7 +25,7 @@
namespace mindspore {
namespace opt {
namespace irpass {
class BpropGetPrimalAttr : public AnfVisitor {
class GetPrimalAttr : public AnfVisitor {
public:
AnfNodePtr operator()(const OptimizerPtr &, const AnfNodePtr &node) override {
Reset();
@ -72,4 +72,4 @@ class BpropGetPrimalAttr : public AnfVisitor {
} // namespace irpass
} // namespace opt
} // namespace mindspore
#endif // MINDSPORE_CCSRC_FRONTEND_OPTIMIZER_IRPASS_BPROP_GET_PRIMAL_ATTR_H
#endif // MINDSPORE_CCSRC_FRONTEND_OPTIMIZER_IRPASS_BPROP_MINDIR_GET_PRIMAL_ATTR_H

View File

@ -0,0 +1,83 @@
/**
* Copyright 2022 Huawei Technologies Co., Ltd
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef MINDSPORE_CCSRC_FRONTEND_OPTIMIZER_IRPASS_BPROP_MINDIR_GET_SUB_FUNC_GRAPH_H
#define MINDSPORE_CCSRC_FRONTEND_OPTIMIZER_IRPASS_BPROP_MINDIR_GET_SUB_FUNC_GRAPH_H
#include <string>
#include <memory>
#include "frontend/optimizer/optimizer.h"
#include "frontend/optimizer/irpass.h"
#include "frontend/optimizer/anf_visitor.h"
namespace mindspore {
namespace opt {
namespace irpass {
class GetSubFuncGraph : public AnfVisitor {
public:
AnfNodePtr operator()(const OptimizerPtr &, const AnfNodePtr &node) override {
Reset();
AnfVisitor::Match(prim::kPrimResolve, {IsVNode, IsVNode})(node);
if (!is_match_) {
return nullptr;
}
auto module = python_adapter::GetPyModule(name_space_);
if (!module || py::isinstance<py::none>(module)) {
MS_LOG(EXCEPTION) << "Can not get python module: " << name_space_;
}
auto func_obj = module.attr(symbol_.c_str());
ValuePtr convert_result = nullptr;
bool converted = parse::ConvertData(func_obj, &convert_result);
if (!converted) {
MS_LOG(EXCEPTION) << "Failed to convert data for " << py::str(func_obj);
}
if (!convert_result->isa<FuncGraph>()) {
MS_LOG(EXCEPTION) << "The result of convert should be a func_graph, but got " << convert_result->ToString();
}
return NewValueNode(convert_result);
}
void Visit(const ValueNodePtr &vnode) override {
if (IsValueNode<MindIRNameSpace>(vnode)) {
auto mindir_name_space = GetValueNode<MindIRNameSpacePtr>(vnode);
MS_EXCEPTION_IF_NULL(mindir_name_space);
name_space_ = mindir_name_space->name_space();
} else if (IsValueNode<MindIRSymbol>(vnode)) {
auto mindir_symbol = GetValueNode<MindIRSymbolPtr>(vnode);
MS_EXCEPTION_IF_NULL(mindir_symbol);
symbol_ = mindir_symbol->symbol();
}
if (!name_space_.empty() && !symbol_.empty()) {
is_match_ = true;
}
}
void Reset() {
is_match_ = false;
name_space_.clear();
symbol_.clear();
}
private:
bool is_match_{false};
std::string name_space_;
std::string symbol_;
};
} // namespace irpass
} // namespace opt
} // namespace mindspore
#endif // MINDSPORE_CCSRC_FRONTEND_OPTIMIZER_IRPASS_BPROP_MINDIR_GET_CLASS_TYPE_H

View File

@ -0,0 +1,79 @@
/**
* Copyright 2022 Huawei Technologies Co., Ltd
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef MINDSPORE_CCSRC_FRONTEND_OPTIMIZER_IRPASS_BPROP_MINDIR_RESOLVE_NODE_RESOLVE_H
#define MINDSPORE_CCSRC_FRONTEND_OPTIMIZER_IRPASS_BPROP_MINDIR_RESOLVE_NODE_RESOLVE_H
#include <string>
#include <memory>
#include "frontend/optimizer/optimizer.h"
#include "frontend/optimizer/irpass.h"
#include "frontend/optimizer/anf_visitor.h"
namespace mindspore {
namespace opt {
namespace irpass {
class ResolveNodeResolve : public AnfVisitor {
public:
AnfNodePtr operator()(const OptimizerPtr &, const AnfNodePtr &node) override {
Reset();
AnfVisitor::Match(prim::kPrimResolve, {IsVNode, IsVNode})(node);
if (!is_match_) {
return nullptr;
}
py::module mod = python_adapter::GetPyModule(parse::PYTHON_MOD_PARSE_MODULE);
auto symbol_obj = python_adapter::CallPyModFn(mod, parse::PYTHON_MOD_RESOLVE_FUNCTION, obj_, symbol_);
auto module_str = py::str(getattr(symbol_obj, "__module__")).cast<std::string>();
auto name_str = py::str(getattr(symbol_obj, "__name__")).cast<std::string>();
auto mindir_name_space = std::make_shared<MindIRNameSpace>(module_str);
auto mindir_symbol = std::make_shared<MindIRSymbol>(name_str);
auto fg = node->func_graph();
MS_EXCEPTION_IF_NULL(fg);
return fg->NewCNode(
{node->cast_ptr<CNode>()->input(0), NewValueNode(mindir_name_space), NewValueNode(mindir_symbol)});
}
void Visit(const ValueNodePtr &vnode) override {
if (IsValueNode<parse::NameSpace>(vnode)) {
auto name_space = GetValueNode<parse::NameSpacePtr>(vnode);
MS_EXCEPTION_IF_NULL(name_space);
obj_ = name_space->obj();
} else if (IsValueNode<parse::Symbol>(vnode)) {
auto symbol_value = GetValueNode<parse::SymbolPtr>(vnode);
MS_EXCEPTION_IF_NULL(symbol_value);
symbol_ = symbol_value->symbol();
}
if (!py::isinstance<py::none>(obj_) && !symbol_.empty()) {
is_match_ = true;
}
}
void Reset() {
is_match_ = false;
symbol_.clear();
obj_ = py::none();
}
private:
bool is_match_{false};
py::object obj_{py::none()};
std::string symbol_;
};
} // namespace irpass
} // namespace opt
} // namespace mindspore
#endif // MINDSPORE_CCSRC_FRONTEND_OPTIMIZER_IRPASS_BPROP_MINDIR_RESOLVE_NODE_RESOLVE_H

View File

@ -95,7 +95,8 @@ static inline bool isTraversable(const AnfNodePtr &node) {
MS_EXCEPTION_IF_NULL(value_node);
const auto &value = value_node->value();
return (value != nullptr) && (value->isa<FuncGraph>() || value->isa<RefKey>() || value->isa<MindIRClassType>() ||
value->isa<MindIRMetaFuncGraph>() || value->isa<parse::ClassType>());
value->isa<MindIRMetaFuncGraph>() || value->isa<parse::ClassType>() ||
value->isa<prim::DoSignaturePrimitive>());
}
static AnfNodePtr DoTransform(const OptimizerPtr &optimizer, const AnfNodePtr &node,

View File

@ -278,6 +278,17 @@ AnfNodePtr ConvertObjectToNode(const AnfNodePtr &origin_node, const py::object &
MS_LOG(ERROR) << "Convert data failed";
return nullptr;
}
// For the bprop which is loaded from mindir file, the sub function should be resolved after loading.
if (common::GetEnv("MS_DEV_EXPORT_BPROP_MINDIR") == "1" && IsPrimitiveCNode(origin_node, prim::kPrimResolve)) {
auto name_space = GetValueNode<NameSpacePtr>(origin_node->cast<CNodePtr>()->input(1));
MS_EXCEPTION_IF_NULL(name_space);
auto obj_type = data_converter::GetObjType(obj);
if (obj_type == RESOLVE_TYPE_FUNCTION && convert_result->isa<FuncGraph>() &&
name_space->module() != RESOLVE_NAMESPACE_NAME_COMMON_OPS) {
return origin_node;
}
}
bool interpret_without_internal =
(IsPrimitiveCNode(origin_node, prim::kPrimPyInterpret) && !origin_node->interpret_internal_type()) ||
origin_node->interpret();

View File

@ -138,6 +138,7 @@ class IrExportBuilder {
bool SetAbstractToNodeProto(const CNodePtr &node, mind_ir::NodeProto *const node_proto);
bool SetAbstractToNodeProto(const abstract::AbstractBasePtr &abstract, mind_ir::AttributeProto *const attr_proto);
bool SetValueToAttributeProto(const ValuePtr &value, mind_ir::AttributeProto *const attr_proto);
bool SetNamedValueToAttributeProto(const ValuePtr &value, mind_ir::AttributeProto *const attr_proto);
bool SetTypeToAttributeProto(const ValuePtr &value, mind_ir::AttributeProto *const attr_proto);
bool SetScalarToAttributeProto_ir(const ValuePtr &value, mind_ir::AttributeProto *const attr_proto) const;
bool SetScalarToAttributeProtoForInt_ir(const ValuePtr &value, mind_ir::AttributeProto *const attr_proto) const;
@ -713,7 +714,13 @@ std::string IrExportBuilder::GetOpTypeName(const AnfNodePtr &node) {
if (IsValueNode<Primitive>(node)) {
PrimitivePtr prim = GetValueNode<PrimitivePtr>(node);
MS_EXCEPTION_IF_NULL(prim);
type_name = "REF::" + GetPrimitiveUniqueName(prim);
auto do_sign_prim = prim->cast_ptr<prim::DoSignaturePrimitive>();
if (do_sign_prim != nullptr && do_sign_prim->function() != nullptr &&
do_sign_prim->function()->isa<MetaFuncGraph>()) {
type_name = "REF::MetaFuncGraph::" + do_sign_prim->function()->cast_ptr<MetaFuncGraph>()->name();
} else {
type_name = "REF::" + GetPrimitiveUniqueName(prim);
}
} else if (IsValueNode<FuncGraph>(node)) {
FuncGraphPtr fg = GetValueNode<FuncGraphPtr>(node);
MS_EXCEPTION_IF_NULL(fg);
@ -1023,6 +1030,30 @@ bool IrExportBuilder::SetTypeToAttributeProto(const ValuePtr &value, mind_ir::At
return true;
}
bool IrExportBuilder::SetNamedValueToAttributeProto(const ValuePtr &value, mind_ir::AttributeProto *const attr_proto) {
if (value->isa<None>()) {
attr_proto->set_type(mind_ir::AttributeProto_AttributeType_NONE);
MS_LOG(DEBUG) << "Attr string: " << value->type_name();
} else if (value->isa<MindIRClassType>()) {
attr_proto->set_type(mind_ir::AttributeProto_AttributeType_CLASS_TYPE);
auto class_type = GetValue<MindIRClassTypePtr>(value)->name();
// class 'XXX' -> XXX
constexpr int64_t path_begin_index = 7;
auto str = std::string(class_type.begin() + path_begin_index, class_type.end() - 1);
attr_proto->set_s(str);
} else if (value->isa<MindIRNameSpace>()) {
attr_proto->set_type(mind_ir::AttributeProto_AttributeType_NAME_SPACE);
attr_proto->set_s(GetValue<MindIRNameSpacePtr>(value)->name_space());
} else if (value->isa<MindIRSymbol>()) {
attr_proto->set_type(mind_ir::AttributeProto_AttributeType_SYMBOL);
attr_proto->set_s(GetValue<MindIRSymbolPtr>(value)->symbol());
} else {
MS_LOG(ERROR) << "Unsupported named type: " << value->type_name();
return false;
}
return true;
}
bool IrExportBuilder::SetValueToAttributeProto(const ValuePtr &value, mind_ir::AttributeProto *const attr_proto) {
if (value == nullptr || attr_proto == nullptr) {
MS_LOG(EXCEPTION) << "ValuePtr or AttributeProto is null!";
@ -1045,8 +1076,10 @@ bool IrExportBuilder::SetValueToAttributeProto(const ValuePtr &value, mind_ir::A
MS_LOG(DEBUG) << "Attr string: " << value->type_name();
} else if (value->isa<tensor::Tensor>()) {
return SetTensorToAttributeProto(value, attr_proto);
} else if (value->isa<None>()) {
attr_proto->set_type(mind_ir::AttributeProto_AttributeType_NONE);
} else if (value->isa<Named>()) {
return SetNamedValueToAttributeProto(value, attr_proto);
} else if (value->isa<TypeNull>()) {
attr_proto->set_type(mind_ir::AttributeProto_AttributeType_TYPE_NULL);
MS_LOG(DEBUG) << "Attr string: " << value->type_name();
} else if (value->isa<Monad>()) {
if (value->isa<UMonad>()) {
@ -1057,13 +1090,6 @@ bool IrExportBuilder::SetValueToAttributeProto(const ValuePtr &value, mind_ir::A
MS_LOG(ERROR) << "Unsupported Monad type: " << value->type_name();
return false;
}
} else if (value->isa<MindIRClassType>()) {
attr_proto->set_type(mind_ir::AttributeProto_AttributeType_CLASS_TYPE);
auto class_type = GetValue<MindIRClassTypePtr>(value)->name();
// class 'XXX' -> XXX
constexpr int64_t path_begin_index = 7;
auto str = std::string(class_type.begin() + path_begin_index, class_type.end() - 1);
attr_proto->set_s(str);
} else {
MS_LOG(ERROR) << "Unsupported type: " << value->type_name();
return false;

View File

@ -152,26 +152,44 @@ class MS_CORE_API Ellipsis final : public Named {
};
GVAR_DEF(NamedPtr, kEllipsis, std::make_shared<Ellipsis>());
/// \brief MindIRClassType defines the class type loaded from MindIR.
class MS_CORE_API MindIRClassType final : public Named {
class MindIRClassType final : public Named {
public:
/// \brief The default constructor for MindIRClassType.
explicit MindIRClassType(const std::string &class_type) : Named(class_type) {}
/// \brief The destructor of MindIRClassType.
~MindIRClassType() override = default;
MS_DECLARE_PARENT(MindIRClassType, Named);
};
using MindIRClassTypePtr = std::shared_ptr<MindIRClassType>;
/// \brief MindIRMetaFuncGraph defines the meta func_graph loaded from MindIR.
class MS_CORE_API MindIRMetaFuncGraph final : public Named {
class MindIRMetaFuncGraph final : public Named {
public:
/// \brief The default constructor for MindIRMetaFuncGraph.
explicit MindIRMetaFuncGraph(const std::string &name) : Named(name) {}
/// \brief The destructor of MindIRMetaFuncGraph.
~MindIRMetaFuncGraph() override = default;
MS_DECLARE_PARENT(MindIRMetaFuncGraph, Named);
};
using MindIRMetaFuncGraphPtr = std::shared_ptr<MindIRMetaFuncGraph>;
class MindIRNameSpace final : public Named {
public:
explicit MindIRNameSpace(const std::string &name_space) : Named(name_space), name_space_(name_space) {}
~MindIRNameSpace() override = default;
MS_DECLARE_PARENT(MindIRNameSpace, Named);
const std::string &name_space() const { return name_space_; }
private:
std::string name_space_;
};
using MindIRNameSpacePtr = std::shared_ptr<MindIRNameSpace>;
class MindIRSymbol final : public Named {
public:
explicit MindIRSymbol(const std::string &symbol) : Named(symbol), symbol_(symbol) {}
~MindIRSymbol() override = default;
MS_DECLARE_PARENT(MindIRSymbol, Named);
const std::string &symbol() const { return symbol_; }
private:
std::string symbol_;
};
using MindIRSymbolPtr = std::shared_ptr<MindIRSymbol>;
} // namespace mindspore
#endif // MINDSPORE_CORE_IR_NAMED_H_

View File

@ -45,7 +45,6 @@ std::map<std::string, tensor::TensorPtr> MSANFModelParser::load_tensor_map_;
namespace {
static constexpr char kConstantValueNode[] = "Constant";
static constexpr char kDoSignaturePrimitivePrefix[] = "S-Prim-";
static constexpr char kHyperMapPrefix[] = "hyper_map";
enum ParseForm : int {
FORM_PARSE_TYPE = 0,
@ -1042,6 +1041,14 @@ bool MSANFModelParser::ObtainValueNodeInNoneForm(const std::string &value_node_n
return true;
}
bool MSANFModelParser::ObtainValueNodeInTypeNullForm(const std::string &value_node_name) {
auto new_value_node = NewValueNode(kTypeNull);
MS_EXCEPTION_IF_NULL(new_value_node);
new_value_node->set_abstract(kTypeNull->ToAbstract());
anfnode_build_map_[value_node_name] = new_value_node;
return true;
}
bool MSANFModelParser::ObtainValueNodeInMonadForm(const std::string &value_node_name,
const mind_ir::AttributeProto &attr_proto) {
const std::string &ref_attr_name = attr_proto.ref_attr_name();
@ -1244,6 +1251,24 @@ bool MSANFModelParser::GetAttrValueForValueNodeWithType(const std::string &value
anfnode_build_map_[value_node_name] = new_value_node;
break;
}
case mind_ir::AttributeProto_AttributeType_TYPE_NULL: {
(void)ObtainValueNodeInTypeNullForm(value_node_name);
break;
}
case mind_ir::AttributeProto_AttributeType_NAME_SPACE: {
auto name_space = static_cast<std::string>(attr_proto.s());
auto mindir_name_space = std::make_shared<MindIRNameSpace>(name_space);
new_value_node = NewValueNode(mindir_name_space);
anfnode_build_map_[value_node_name] = new_value_node;
break;
}
case mind_ir::AttributeProto_AttributeType_SYMBOL: {
auto symbol = static_cast<std::string>(attr_proto.s());
auto mindir_symbol = std::make_shared<MindIRSymbol>(symbol);
new_value_node = NewValueNode(mindir_symbol);
anfnode_build_map_[value_node_name] = new_value_node;
break;
}
default: {
ValuePtr value = ObtainCNodeAttrInSingleScalarForm(attr_proto);
if (value == nullptr) {
@ -1348,19 +1373,6 @@ mindspore::HashMap<std::string, abstract::AbstractBasePtr> MSANFModelParser::Get
return kv;
}
// S-Prim-xxx or S-Prim-hyper_map[xxx] -> xxx
static std::string GetDoSignaturePrimitiveName(const std::string &node_type) {
// Remove `S-Prim-` prefix.
auto prim_name = node_type.substr(strlen(kDoSignaturePrimitivePrefix));
if (prim_name.compare(0, strlen(kHyperMapPrefix), kHyperMapPrefix) != 0) {
return prim_name;
}
// hyper_map[xxx] -> xxx
constexpr auto offset = 2;
auto op_name = prim_name.substr(strlen(kHyperMapPrefix) + 1, (prim_name.length() - strlen(kHyperMapPrefix)) - offset);
return op_name;
}
AnfNodePtr MSANFModelParser::BuildOperatorNode(const mind_ir::NodeProto &node_proto) {
const std::string kOperatorTypeFlag = std::string("REF::");
const size_t kOpTypeFlagSize = kOperatorTypeFlag.length();
@ -1384,7 +1396,7 @@ AnfNodePtr MSANFModelParser::BuildOperatorNode(const mind_ir::NodeProto &node_pr
prim = op_primc_fns[node_type]();
} else {
if (node_type.compare(0, strlen(kDoSignaturePrimitivePrefix), kDoSignaturePrimitivePrefix) == 0) {
auto op_name = GetDoSignaturePrimitiveName(node_type);
auto op_name = node_type.substr(strlen(kDoSignaturePrimitivePrefix));
prim = std::make_shared<prim::DoSignaturePrimitive>(op_name, std::make_shared<Primitive>(op_name));
MS_EXCEPTION_IF_NULL(prim);
prim->set_instance_name(op_name);
@ -1851,7 +1863,7 @@ bool MSANFModelParser::BuildPrimitiveNode(const mind_ir::PrimitiveProto &primiti
prim = it->second();
} else {
if (prim_type.compare(0, strlen(kDoSignaturePrimitivePrefix), kDoSignaturePrimitivePrefix) == 0) {
auto op_name = GetDoSignaturePrimitiveName(prim_type);
auto op_name = prim_type.substr(strlen(kDoSignaturePrimitivePrefix));
prim = std::make_shared<prim::DoSignaturePrimitive>(op_name, std::make_shared<Primitive>(op_name));
MS_EXCEPTION_IF_NULL(prim);
prim->set_instance_name(op_name);

View File

@ -120,6 +120,7 @@ class MSANFModelParser {
bool GetAttrValueForValueNodeWithType(const std::string &value_node_name, const mind_ir::AttributeProto &attr_proto);
bool ObtainValueNodeInTypeForm(const string &value_node_name, const mind_ir::TensorProto &attr_tensor);
bool ObtainValueNodeInNoneForm(const std::string &value_node_name);
bool ObtainValueNodeInTypeNullForm(const std::string &value_node_name);
bool ObtainValueNodeInMonadForm(const std::string &value_node_name, const mind_ir::AttributeProto &attr_proto);
ValuePtr ObtainValueInSequenceForm(const mind_ir::AttributeProto &attr_proto);
ValuePtr ObtainValueInDictionaryForm(const mind_ir::AttributeProto &attr_proto);

View File

@ -42,6 +42,9 @@ message AttributeProto {
COO_TENSOR = 31;
ROW_TENSOR = 32;
CLASS_TYPE = 33;
NAME_SPACE = 34;
SYMBOL = 35;
TYPE_NULL = 36;
}
optional string name = 1;
optional float f = 2;

View File

@ -1,19 +1,19 @@
0.1.1 MindSpore*2.0.0:
+get_bprop_approximate_equal.94:[CNode]100:1+get_bprop_approximate_equal.94:[CNode]100:1"REF::bprop.101:Default/bprop.101-op36get_bprop_approximate_equal.94*%
#get_bprop_approximate_equal.94:self*.
,get_bprop_approximate_equal.94:[Parameter]96*.
,get_bprop_approximate_equal.94:[Parameter]98*/
-get_bprop_approximate_equal.94:[Parameter]102*/
-get_bprop_approximate_equal.94:[Parameter]1032-
+get_bprop_approximate_equal.94:[CNode]100:1:@7fb54a66e55c2c40cd92783044880b792666a0d7fc794bb717bee3544337d6a0J/grad_math_ops.pyB­

,get_bprop_approximate_equal.94:[Parameter]96bprop.101:[CNode]95:2bprop.101:[CNode]95:2"(REF::S-Prim-hyper_map[zeros_like_leaf]:3:.Default/S-Prim-hyper_map[zeros_like_leaf]-op37

,get_bprop_approximate_equal.94:[Parameter]98bprop.101:[CNode]97:4bprop.101:[CNode]97:4"(REF::S-Prim-hyper_map[zeros_like_leaf]:3:.Default/S-Prim-hyper_map[zeros_like_leaf]-op38

bprop.101:[CNode]95:2
bprop.101:[CNode]97:4bprop.101:[CNode]99:5bprop.101:[CNode]99:5"REF::S-Prim-MakeTuple:6:Default/S-Prim-MakeTuple-op39 bprop.1012
bprop.101:[CNode]99:5PbH
#S-Prim-hyper_map[zeros_like_leaf]:3!S-Prim-hyper_map[zeros_like_leaf]b&
S-Prim-MakeTuple:6S-Prim-MakeTupleh
0.1.1 MindSpore*2.0.0:ý
.get_bprop_approximate_equal.1184:[CNode]1185:1.get_bprop_approximate_equal.1184:[CNode]1185:1"REF::bprop.1186:Default/bprop.1186-op927 get_bprop_approximate_equal.1184*'
%get_bprop_approximate_equal.1184:self*$
"get_bprop_approximate_equal.1184:x*$
"get_bprop_approximate_equal.1184:y*&
$get_bprop_approximate_equal.1184:out*'
%get_bprop_approximate_equal.1184:dout20
.get_bprop_approximate_equal.1184:[CNode]1185:1:@7fb54a66e55c2c40cd92783044880b792666a0d7fc794bb717bee3544337d6a0J/grad_math_ops.pyBÄ
¹
"get_bprop_approximate_equal.1184:xbprop.1186:[CNode]1187:2bprop.1186:[CNode]1187:2".REF::MetaFuncGraph::hyper_map[zeros_like_leaf]:/Default/S-Prim-hyper_map[zeros_like_leaf]-op928
¹
"get_bprop_approximate_equal.1184:ybprop.1186:[CNode]1188:3bprop.1186:[CNode]1188:3".REF::MetaFuncGraph::hyper_map[zeros_like_leaf]:/Default/S-Prim-hyper_map[zeros_like_leaf]-op929
¡
bprop.1186:[CNode]1187:2
bprop.1186:[CNode]1188:3bprop.1186:[CNode]1189:4bprop.1186:[CNode]1189:4"REF::S-Prim-MakeTuple:5:Default/S-Prim-MakeTuple-op930
bprop.11862
bprop.1186:[CNode]1189:4Pb&
S-Prim-MakeTuple:5S-Prim-MakeTupleh

View File

@ -1,15 +1,15 @@
0.1.1 MindSpore*2.0.0:ƒ
hget_bprop_argmax.43:[CNode]47:1get_bprop_argmax.43:[CNode]47:1" REF::bprop.48:Default/bprop.48-op17get_bprop_argmax.43*
get_bprop_argmax.43:self*#
!get_bprop_argmax.43:[Parameter]45*#
!get_bprop_argmax.43:[Parameter]49*#
!get_bprop_argmax.43:[Parameter]502!
get_bprop_argmax.43:[CNode]47:1:@c1bdaf52c4157e91a81b3f089baa28644b7ead8d17fa1975f3935bbc42cce80dJ/grad_array_ops.pyBÊ
©
!get_bprop_argmax.43:[Parameter]45bprop.48:[CNode]44:2bprop.48:[CNode]44:2"(REF::S-Prim-hyper_map[zeros_like_leaf]:3:.Default/S-Prim-hyper_map[zeros_like_leaf]-op18
z
bprop.48:[CNode]44:2bprop.48:[CNode]46:4bprop.48:[CNode]46:4"REF::S-Prim-MakeTuple:5:Default/S-Prim-MakeTuple-op19bprop.482
bprop.48:[CNode]46:4Pb&
S-Prim-MakeTuple:5S-Prim-MakeTuplebH
#S-Prim-hyper_map[zeros_like_leaf]:3!S-Prim-hyper_map[zeros_like_leaf]h
0.1.1 MindSpore*2.0.0:ÿ
u#get_bprop_argmax.1027:[CNode]1028:1#get_bprop_argmax.1027:[CNode]1028:1"REF::bprop.1029:Default/bprop.1029-op820get_bprop_argmax.1027*
get_bprop_argmax.1027:self*
get_bprop_argmax.1027:x*
get_bprop_argmax.1027:out*
get_bprop_argmax.1027:dout2%
#get_bprop_argmax.1027:[CNode]1028:1:@c1bdaf52c4157e91a81b3f089baa28644b7ead8d17fa1975f3935bbc42cce80dJ/grad_array_ops.pyBã
®
get_bprop_argmax.1027:xbprop.1029:[CNode]1030:2bprop.1029:[CNode]1030:2".REF::MetaFuncGraph::hyper_map[zeros_like_leaf]:/Default/S-Prim-hyper_map[zeros_like_leaf]-op821

bprop.1029:[CNode]1030:2bprop.1029:[CNode]1031:3bprop.1029:[CNode]1031:3"REF::S-Prim-MakeTuple:4:Default/S-Prim-MakeTuple-op822
bprop.10292
bprop.1029:[CNode]1031:3Pb&
S-Prim-MakeTuple:4S-Prim-MakeTupleh

View File

@ -1,15 +1,15 @@
0.1.1 MindSpore*2.0.0:ƒ
hget_bprop_argmin.51:[CNode]55:1get_bprop_argmin.51:[CNode]55:1" REF::bprop.56:Default/bprop.56-op20get_bprop_argmin.51*
get_bprop_argmin.51:self*#
!get_bprop_argmin.51:[Parameter]53*#
!get_bprop_argmin.51:[Parameter]57*#
!get_bprop_argmin.51:[Parameter]582!
get_bprop_argmin.51:[CNode]55:1:@b37297e673329c499b5e17579a1d7071e4ddafbea9657a7714cda32d19c7e42dJ/grad_array_ops.pyBÊ
©
!get_bprop_argmin.51:[Parameter]53bprop.56:[CNode]52:2bprop.56:[CNode]52:2"(REF::S-Prim-hyper_map[zeros_like_leaf]:3:.Default/S-Prim-hyper_map[zeros_like_leaf]-op21
z
bprop.56:[CNode]52:2bprop.56:[CNode]54:4bprop.56:[CNode]54:4"REF::S-Prim-MakeTuple:5:Default/S-Prim-MakeTuple-op22bprop.562
bprop.56:[CNode]54:4PbH
#S-Prim-hyper_map[zeros_like_leaf]:3!S-Prim-hyper_map[zeros_like_leaf]b&
S-Prim-MakeTuple:5S-Prim-MakeTupleh
0.1.1 MindSpore*2.0.0:ÿ
u#get_bprop_argmin.1032:[CNode]1033:1#get_bprop_argmin.1032:[CNode]1033:1"REF::bprop.1034:Default/bprop.1034-op823get_bprop_argmin.1032*
get_bprop_argmin.1032:self*
get_bprop_argmin.1032:x*
get_bprop_argmin.1032:out*
get_bprop_argmin.1032:dout2%
#get_bprop_argmin.1032:[CNode]1033:1:@b37297e673329c499b5e17579a1d7071e4ddafbea9657a7714cda32d19c7e42dJ/grad_array_ops.pyBã
®
get_bprop_argmin.1032:xbprop.1034:[CNode]1035:2bprop.1034:[CNode]1035:2".REF::MetaFuncGraph::hyper_map[zeros_like_leaf]:/Default/S-Prim-hyper_map[zeros_like_leaf]-op824

bprop.1034:[CNode]1035:2bprop.1034:[CNode]1036:3bprop.1034:[CNode]1036:3"REF::S-Prim-MakeTuple:4:Default/S-Prim-MakeTuple-op825
bprop.10342
bprop.1034:[CNode]1036:3Pb&
S-Prim-MakeTuple:4S-Prim-MakeTupleh

View File

@ -1,19 +1,19 @@
0.1.1 MindSpore*2.0.0:Ë
p#get_bprop_assign_add.66:[CNode]72:1#get_bprop_assign_add.66:[CNode]72:1" REF::bprop.73:Default/bprop.73-op25get_bprop_assign_add.66*
get_bprop_assign_add.66:self*'
%get_bprop_assign_add.66:[Parameter]68*'
%get_bprop_assign_add.66:[Parameter]70*'
%get_bprop_assign_add.66:[Parameter]74*'
%get_bprop_assign_add.66:[Parameter]752%
#get_bprop_assign_add.66:[CNode]72:1:@864154f4834e62d84d34aab9399558528d5e734f6725d5daf7fbc1907cb32a1aJ/grad_math_ops.pyB•
­
%get_bprop_assign_add.66:[Parameter]68bprop.73:[CNode]67:2bprop.73:[CNode]67:2"(REF::S-Prim-hyper_map[zeros_like_leaf]:3:.Default/S-Prim-hyper_map[zeros_like_leaf]-op26
­
%get_bprop_assign_add.66:[Parameter]70bprop.73:[CNode]69:4bprop.73:[CNode]69:4"(REF::S-Prim-hyper_map[zeros_like_leaf]:3:.Default/S-Prim-hyper_map[zeros_like_leaf]-op27
<EFBFBD>
bprop.73:[CNode]67:2
bprop.73:[CNode]69:4bprop.73:[CNode]71:5bprop.73:[CNode]71:5"REF::S-Prim-MakeTuple:6:Default/S-Prim-MakeTuple-op28bprop.732
bprop.73:[CNode]71:5Pb&
S-Prim-MakeTuple:6S-Prim-MakeTuplebH
#S-Prim-hyper_map[zeros_like_leaf]:3!S-Prim-hyper_map[zeros_like_leaf]h
0.1.1 MindSpore*2.0.0:½
}'get_bprop_assign_add.1231:[CNode]1232:1'get_bprop_assign_add.1231:[CNode]1232:1"REF::bprop.1233:Default/bprop.1233-op958get_bprop_assign_add.1231*
get_bprop_assign_add.1231:self*
get_bprop_assign_add.1231:x*
get_bprop_assign_add.1231:y*
get_bprop_assign_add.1231:out*
get_bprop_assign_add.1231:dout2)
'get_bprop_assign_add.1231:[CNode]1232:1:@864154f4834e62d84d34aab9399558528d5e734f6725d5daf7fbc1907cb32a1aJ/grad_math_ops.pyB¶
²
get_bprop_assign_add.1231:xbprop.1233:[CNode]1234:2bprop.1233:[CNode]1234:2".REF::MetaFuncGraph::hyper_map[zeros_like_leaf]:/Default/S-Prim-hyper_map[zeros_like_leaf]-op959
²
get_bprop_assign_add.1231:ybprop.1233:[CNode]1235:3bprop.1233:[CNode]1235:3".REF::MetaFuncGraph::hyper_map[zeros_like_leaf]:/Default/S-Prim-hyper_map[zeros_like_leaf]-op960
¡
bprop.1233:[CNode]1234:2
bprop.1233:[CNode]1235:3bprop.1233:[CNode]1236:4bprop.1233:[CNode]1236:4"REF::S-Prim-MakeTuple:5:Default/S-Prim-MakeTuple-op961
bprop.12332
bprop.1233:[CNode]1236:4Pb&
S-Prim-MakeTuple:5S-Prim-MakeTupleh

View File

@ -1,19 +1,19 @@
0.1.1 MindSpore*2.0.0:Ë
p#get_bprop_assign_sub.76:[CNode]82:1#get_bprop_assign_sub.76:[CNode]82:1" REF::bprop.83:Default/bprop.83-op29get_bprop_assign_sub.76*
get_bprop_assign_sub.76:self*'
%get_bprop_assign_sub.76:[Parameter]78*'
%get_bprop_assign_sub.76:[Parameter]80*'
%get_bprop_assign_sub.76:[Parameter]84*'
%get_bprop_assign_sub.76:[Parameter]852%
#get_bprop_assign_sub.76:[CNode]82:1:@c11c34e0f67efb3b34ee8b93b6fa6cd59afe26e67d7088ae1e06522bc79b9687J/grad_math_ops.pyB•
­
%get_bprop_assign_sub.76:[Parameter]78bprop.83:[CNode]77:2bprop.83:[CNode]77:2"(REF::S-Prim-hyper_map[zeros_like_leaf]:3:.Default/S-Prim-hyper_map[zeros_like_leaf]-op30
­
%get_bprop_assign_sub.76:[Parameter]80bprop.83:[CNode]79:4bprop.83:[CNode]79:4"(REF::S-Prim-hyper_map[zeros_like_leaf]:3:.Default/S-Prim-hyper_map[zeros_like_leaf]-op31
<EFBFBD>
bprop.83:[CNode]77:2
bprop.83:[CNode]79:4bprop.83:[CNode]81:5bprop.83:[CNode]81:5"REF::S-Prim-MakeTuple:6:Default/S-Prim-MakeTuple-op32bprop.832
bprop.83:[CNode]81:5Pb&
S-Prim-MakeTuple:6S-Prim-MakeTuplebH
#S-Prim-hyper_map[zeros_like_leaf]:3!S-Prim-hyper_map[zeros_like_leaf]h
0.1.1 MindSpore*2.0.0:½
}'get_bprop_assign_sub.1237:[CNode]1238:1'get_bprop_assign_sub.1237:[CNode]1238:1"REF::bprop.1239:Default/bprop.1239-op962get_bprop_assign_sub.1237*
get_bprop_assign_sub.1237:self*
get_bprop_assign_sub.1237:x*
get_bprop_assign_sub.1237:y*
get_bprop_assign_sub.1237:out*
get_bprop_assign_sub.1237:dout2)
'get_bprop_assign_sub.1237:[CNode]1238:1:@c11c34e0f67efb3b34ee8b93b6fa6cd59afe26e67d7088ae1e06522bc79b9687J/grad_math_ops.pyB¶
²
get_bprop_assign_sub.1237:xbprop.1239:[CNode]1240:2bprop.1239:[CNode]1240:2".REF::MetaFuncGraph::hyper_map[zeros_like_leaf]:/Default/S-Prim-hyper_map[zeros_like_leaf]-op963
²
get_bprop_assign_sub.1237:ybprop.1239:[CNode]1241:3bprop.1239:[CNode]1241:3".REF::MetaFuncGraph::hyper_map[zeros_like_leaf]:/Default/S-Prim-hyper_map[zeros_like_leaf]-op964
¡
bprop.1239:[CNode]1240:2
bprop.1239:[CNode]1241:3bprop.1239:[CNode]1242:4bprop.1239:[CNode]1242:4"REF::S-Prim-MakeTuple:5:Default/S-Prim-MakeTuple-op965
bprop.12392
bprop.1239:[CNode]1242:4Pb&
S-Prim-MakeTuple:5S-Prim-MakeTupleh

View File

@ -1,17 +1,17 @@
0.1.1 MindSpore*2.0.0:º
n!get_bprop_assign.164:[CNode]169:1!get_bprop_assign.164:[CNode]169:1"REF::bprop.170:Default/bprop.170-op64get_bprop_assign.164*
get_bprop_assign.164:self*%
#get_bprop_assign.164:[Parameter]171*%
#get_bprop_assign.164:[Parameter]166*%
#get_bprop_assign.164:[Parameter]172*%
#get_bprop_assign.164:[Parameter]1682#
!get_bprop_assign.164:[CNode]169:1:@a71330e7616c3da1a8b708c7a0597e2e0b0da2efdbfef26d52786628c45139eeJ/grad_other_ops.pyBÿ
0.1.1 MindSpore*2.0.0:
v#get_bprop_assign.1297:[CNode]1298:1#get_bprop_assign.1297:[CNode]1298:1"REF::bprop.1299:Default/bprop.1299-op1008get_bprop_assign.1297*
get_bprop_assign.1297:self*
get_bprop_assign.1297:x*
get_bprop_assign.1297:y*
get_bprop_assign.1297:out*
get_bprop_assign.1297:dout2%
#get_bprop_assign.1297:[CNode]1298:1:@a71330e7616c3da1a8b708c7a0597e2e0b0da2efdbfef26d52786628c45139eeJ/grad_other_ops.pyB<79>
<EFBFBD>
#get_bprop_assign.164:[Parameter]166bprop.170:[CNode]165:2bprop.170:[CNode]165:2"(REF::S-Prim-hyper_map[zeros_like_leaf]:3:.Default/S-Prim-hyper_map[zeros_like_leaf]-op65
¥
#get_bprop_assign.164:[Parameter]168
bprop.170:[CNode]165:2bprop.170:[CNode]167:4bprop.170:[CNode]167:4"REF::S-Prim-MakeTuple:5:Default/S-Prim-MakeTuple-op66 bprop.1702
bprop.170:[CNode]167:4PbH
#S-Prim-hyper_map[zeros_like_leaf]:3!S-Prim-hyper_map[zeros_like_leaf]b&
S-Prim-MakeTuple:5S-Prim-MakeTupleh
get_bprop_assign.1297:ybprop.1299:[CNode]1300:2bprop.1299:[CNode]1300:2".REF::MetaFuncGraph::hyper_map[zeros_like_leaf]:0Default/S-Prim-hyper_map[zeros_like_leaf]-op1009
¤
get_bprop_assign.1297:dout
bprop.1299:[CNode]1300:2bprop.1299:[CNode]1301:3bprop.1299:[CNode]1301:3"REF::S-Prim-MakeTuple:4:Default/S-Prim-MakeTuple-op1010
bprop.12992
bprop.1299:[CNode]1301:3Pb&
S-Prim-MakeTuple:4S-Prim-MakeTupleh

View File

@ -1,15 +1,15 @@
0.1.1 MindSpore*2.0.0:ô
-get_bprop_bn_training_reduce.183:[CNode]187:1-get_bprop_bn_training_reduce.183:[CNode]187:1"REF::bprop.188:Default/bprop.188-op71 get_bprop_bn_training_reduce.183*'
%get_bprop_bn_training_reduce.183:self*1
/get_bprop_bn_training_reduce.183:[Parameter]185*1
/get_bprop_bn_training_reduce.183:[Parameter]189*1
/get_bprop_bn_training_reduce.183:[Parameter]1902/
-get_bprop_bn_training_reduce.183:[CNode]187:1:@398f9bcbcf29e1e9801c606ad54046cd56ad62bc367f76d4ecb6fc930583d567J/grad_quant_ops.pyBæ
0.1.1 MindSpore*2.0.0:á
Ž/get_bprop_bn_training_reduce.1308:[CNode]1309:1/get_bprop_bn_training_reduce.1308:[CNode]1309:1"REF::bprop.1310:Default/bprop.1310-op1015!get_bprop_bn_training_reduce.1308*(
&get_bprop_bn_training_reduce.1308:self*%
#get_bprop_bn_training_reduce.1308:x*'
%get_bprop_bn_training_reduce.1308:out*(
&get_bprop_bn_training_reduce.1308:dout21
/get_bprop_bn_training_reduce.1308:[CNode]1309:1:@398f9bcbcf29e1e9801c606ad54046cd56ad62bc367f76d4ecb6fc930583d567J/grad_quant_ops.pyBñ
<EFBFBD>
/get_bprop_bn_training_reduce.183:[Parameter]185bprop.188:[CNode]184:2bprop.188:[CNode]184:2"(REF::S-Prim-hyper_map[zeros_like_leaf]:3:.Default/S-Prim-hyper_map[zeros_like_leaf]-op72

bprop.188:[CNode]184:2bprop.188:[CNode]186:4bprop.188:[CNode]186:4"REF::S-Prim-MakeTuple:5:Default/S-Prim-MakeTuple-op73 bprop.1882
bprop.188:[CNode]186:4PbH
#S-Prim-hyper_map[zeros_like_leaf]:3!S-Prim-hyper_map[zeros_like_leaf]b&
S-Prim-MakeTuple:5S-Prim-MakeTupleh
#get_bprop_bn_training_reduce.1308:xbprop.1310:[CNode]1311:2bprop.1310:[CNode]1311:2".REF::MetaFuncGraph::hyper_map[zeros_like_leaf]:0Default/S-Prim-hyper_map[zeros_like_leaf]-op1016
ˆ
bprop.1310:[CNode]1311:2bprop.1310:[CNode]1312:3bprop.1310:[CNode]1312:3"REF::S-Prim-MakeTuple:4:Default/S-Prim-MakeTuple-op1017
bprop.13102
bprop.1310:[CNode]1312:3Pb&
S-Prim-MakeTuple:4S-Prim-MakeTupleh

View File

@ -1,12 +1,13 @@
0.1.1 MindSpore*2.0.0:¢
p#get_bprop_broad_cast.59:[CNode]62:1#get_bprop_broad_cast.59:[CNode]62:1" REF::bprop.63:Default/bprop.63-op23get_bprop_broad_cast.59*
get_bprop_broad_cast.59:self*'
%get_bprop_broad_cast.59:[Parameter]64*'
%get_bprop_broad_cast.59:[Parameter]65*'
%get_bprop_broad_cast.59:[Parameter]612%
#get_bprop_broad_cast.59:[CNode]62:1:@403d64b65284847b0b5f01f2121501208c9d8fb5c1da4b332a158de570991518J/grad_comm_ops.pyB°

%get_bprop_broad_cast.59:[Parameter]61bprop.63:[CNode]60:2bprop.63:[CNode]60:2"REF::S-Prim-MakeTuple:3:Default/S-Prim-MakeTuple-op24bprop.632
bprop.63:[CNode]60:2Pb&
0.1.1 MindSpore*2.0.0:ž
}'get_bprop_broad_cast.1037:[CNode]1038:1'get_bprop_broad_cast.1037:[CNode]1038:1"REF::bprop.1039:Default/bprop.1039-op826get_bprop_broad_cast.1037*
get_bprop_broad_cast.1037:self*
get_bprop_broad_cast.1037:x*
get_bprop_broad_cast.1037:out*
get_bprop_broad_cast.1037:dout2)
'get_bprop_broad_cast.1037:[CNode]1038:1:@403d64b65284847b0b5f01f2121501208c9d8fb5c1da4b332a158de570991518J/grad_comm_ops.pyB¸
<EFBFBD>
get_bprop_broad_cast.1037:doutbprop.1039:[CNode]1040:2bprop.1039:[CNode]1040:2"REF::S-Prim-MakeTuple:3:Default/S-Prim-MakeTuple-op827
bprop.10392
bprop.1039:[CNode]1040:2Pb&
S-Prim-MakeTuple:3S-Prim-MakeTupleh

View File

@ -0,0 +1,19 @@
0.1.1 MindSpore*2.0.0:Ü
]get_bprop_cast.6:[CNode]7:1get_bprop_cast.6:[CNode]7:1" REF::bprop.8:Default/bprop.8-op3get_bprop_cast.6*
get_bprop_cast.6:self*
get_bprop_cast.6:x*
get_bprop_cast.6:t*
get_bprop_cast.6:out*
get_bprop_cast.6:dout2
get_bprop_cast.6:[CNode]7:1:@2a049f3579950913c6ea42bb677f44470016652aa549a6dee2350ea48d50f039J/grad_array_ops.pyBË

get_bprop_cast.6:dout
get_bprop_cast.6:x bprop.8:dx:2 bprop.8:dx:2"REF::MetaFuncGraph::dout_cast:Default/S-Prim-dout_cast-op4

get_bprop_cast.6:tbprop.8:[CNode]9:3bprop.8:[CNode]9:3".REF::MetaFuncGraph::hyper_map[zeros_like_leaf]:-Default/S-Prim-hyper_map[zeros_like_leaf]-op5
ƒ
bprop.8:dx:2
bprop.8:[CNode]9:3bprop.8:[CNode]10:4bprop.8:[CNode]10:4"REF::S-Prim-MakeTuple:5:Default/S-Prim-MakeTuple-op6bprop.82
bprop.8:[CNode]10:4Pb&
S-Prim-MakeTuple:5S-Prim-MakeTupleh

View File

@ -1,15 +1,14 @@
0.1.1 MindSpore*2.0.0:Œ
m get_bprop_dtype.303:[CNode]307:1 get_bprop_dtype.303:[CNode]307:1"REF::bprop.308:Default/bprop.308-op120get_bprop_dtype.303*
get_bprop_dtype.303:self*$
"get_bprop_dtype.303:[Parameter]305*$
"get_bprop_dtype.303:[Parameter]309*$
"get_bprop_dtype.303:[Parameter]3102"
get_bprop_dtype.303:[CNode]307:1:@54a9dbba51e886fa876dd646b337aec70b1ecbfcf799d96be0dbb699f1deea5eJ/grad_array_ops.pyBÛ
¯
"get_bprop_dtype.303:[Parameter]305bprop.308:[CNode]304:2bprop.308:[CNode]304:2"(REF::S-Prim-hyper_map[zeros_like_leaf]:3:/Default/S-Prim-hyper_map[zeros_like_leaf]-op121
<EFBFBD>
bprop.308:[CNode]304:2bprop.308:[CNode]306:4bprop.308:[CNode]306:4"REF::S-Prim-MakeTuple:5:Default/S-Prim-MakeTuple-op122 bprop.3082
bprop.308:[CNode]306:4PbH
#S-Prim-hyper_map[zeros_like_leaf]:3!S-Prim-hyper_map[zeros_like_leaf]b&
S-Prim-MakeTuple:5S-Prim-MakeTupleh
0.1.1 MindSpore*2.0.0:Î
_get_bprop_dtype.1:[CNode]2:1get_bprop_dtype.1:[CNode]2:1" REF::bprop.3:Default/bprop.3-op0get_bprop_dtype.1*
get_bprop_dtype.1:self*
get_bprop_dtype.1:x*
get_bprop_dtype.1:out*
get_bprop_dtype.1:dout2
get_bprop_dtype.1:[CNode]2:1:@54a9dbba51e886fa876dd646b337aec70b1ecbfcf799d96be0dbb699f1deea5eJ/grad_array_ops.pyB³
œ
get_bprop_dtype.1:xbprop.3:[CNode]4:2bprop.3:[CNode]4:2".REF::MetaFuncGraph::hyper_map[zeros_like_leaf]:-Default/S-Prim-hyper_map[zeros_like_leaf]-op1
s
bprop.3:[CNode]4:2bprop.3:[CNode]5:3bprop.3:[CNode]5:3"REF::S-Prim-MakeTuple:4:Default/S-Prim-MakeTuple-op2bprop.32
bprop.3:[CNode]5:3Pb&
S-Prim-MakeTuple:4S-Prim-MakeTupleh

View File

@ -1,14 +1,13 @@
0.1.1 MindSpore*2.0.0:Ì
­
bprop_depend.467:ybprop_depend.467:[CNode]468:1bprop_depend.467:[CNode]468:1"(REF::S-Prim-hyper_map[zeros_like_leaf]:2:/Default/S-Prim-hyper_map[zeros_like_leaf]-op196
­
bprop_depend.467:dout
bprop_depend.467:[CNode]468:1bprop_depend.467:[CNode]469:3bprop_depend.467:[CNode]469:3"REF::S-Prim-MakeTuple:4:Default/S-Prim-MakeTuple-op197bprop_depend.467*
bprop_depend.467:x*
bprop_depend.467:y*
bprop_depend.467:out*
bprop_depend.467:dout2
bprop_depend.467:[CNode]469:3:@80cd61efd336d81a485064cb47c40e1d219cd123e48b601a25c1de1ee53d3952J/grad_implementations.pyPbH
#S-Prim-hyper_map[zeros_like_leaf]:2!S-Prim-hyper_map[zeros_like_leaf]b&
S-Prim-MakeTuple:4S-Prim-MakeTupleh
0.1.1 MindSpore*2.0.0:ç
š
bprop_depend.1318:ybprop_depend.1318:[CNode]1319:1bprop_depend.1318:[CNode]1319:1".REF::MetaFuncGraph::hyper_map[zeros_like_leaf]:0Default/S-Prim-hyper_map[zeros_like_leaf]-op1022
ľ
bprop_depend.1318:dout
bprop_depend.1318:[CNode]1319:1bprop_depend.1318:[CNode]1320:2bprop_depend.1318:[CNode]1320:2"REF::S-Prim-MakeTuple:3:Default/S-Prim-MakeTuple-op1023bprop_depend.1318*
bprop_depend.1318:x*
bprop_depend.1318:y*
bprop_depend.1318:out*
bprop_depend.1318:dout2!
bprop_depend.1318:[CNode]1320:2:@80cd61efd336d81a485064cb47c40e1d219cd123e48b601a25c1de1ee53d3952J/grad_implementations.pyPb&
S-Prim-MakeTuple:3S-Prim-MakeTupleh

View File

@ -1,26 +1,26 @@
0.1.1 MindSpore*2.0.0:
<EFBFBD>*get_bprop_dropout_do_mask.291:[CNode]299:1*get_bprop_dropout_do_mask.291:[CNode]299:1"REF::bprop.300:Default/bprop.300-op114
Ö'get_bprop_dropout_do_mask.291:do_mask:2'get_bprop_dropout_do_mask.291:do_mask:2"=REF::ClassType::mindspore.ops.operations.nn_ops.DropoutDoMask:CDefault/class 'mindspore.ops.operations.nn_ops.DropoutDoMask'-op115get_bprop_dropout_do_mask.291*$
"get_bprop_dropout_do_mask.291:self*.
,get_bprop_dropout_do_mask.291:[Parameter]301*.
,get_bprop_dropout_do_mask.291:[Parameter]294*.
,get_bprop_dropout_do_mask.291:[Parameter]295*.
,get_bprop_dropout_do_mask.291:[Parameter]302*.
,get_bprop_dropout_do_mask.291:[Parameter]2932,
*get_bprop_dropout_do_mask.291:[CNode]299:1:@d55bb58e60c7eaa972eb71d556b2cefe597bc7308e175c779582adc8a7ab8215J/grad_nn_ops.pyBÁ
í
,get_bprop_dropout_do_mask.291:[Parameter]293
,get_bprop_dropout_do_mask.291:[Parameter]294
,get_bprop_dropout_do_mask.291:[Parameter]295bprop.300:[CNode]292:3bprop.300:[CNode]292:3",REF::get_bprop_dropout_do_mask.291:do_mask:2:116
¹
,get_bprop_dropout_do_mask.291:[Parameter]294bprop.300:[CNode]296:4bprop.300:[CNode]296:4"(REF::S-Prim-hyper_map[zeros_like_leaf]:5:/Default/S-Prim-hyper_map[zeros_like_leaf]-op117
¹
,get_bprop_dropout_do_mask.291:[Parameter]295bprop.300:[CNode]297:6bprop.300:[CNode]297:6"(REF::S-Prim-hyper_map[zeros_like_leaf]:5:/Default/S-Prim-hyper_map[zeros_like_leaf]-op118
±
bprop.300:[CNode]292:3
bprop.300:[CNode]296:4
bprop.300:[CNode]297:6bprop.300:[CNode]298:7bprop.300:[CNode]298:7"REF::S-Prim-MakeTuple:8:Default/S-Prim-MakeTuple-op119 bprop.3002
bprop.300:[CNode]298:7Pb&
S-Prim-MakeTuple:8S-Prim-MakeTuplebH
#S-Prim-hyper_map[zeros_like_leaf]:5!S-Prim-hyper_map[zeros_like_leaf]h
0.1.1 MindSpore*2.0.0:ð
,get_bprop_dropout_do_mask.1266:[CNode]1267:1,get_bprop_dropout_do_mask.1266:[CNode]1267:1"REF::bprop.1268:Default/bprop.1268-op981
Ø(get_bprop_dropout_do_mask.1266:do_mask:2(get_bprop_dropout_do_mask.1266:do_mask:2"=REF::ClassType::mindspore.ops.operations.nn_ops.DropoutDoMask:CDefault/class 'mindspore.ops.operations.nn_ops.DropoutDoMask'-op982get_bprop_dropout_do_mask.1266*%
#get_bprop_dropout_do_mask.1266:self*"
get_bprop_dropout_do_mask.1266:x*"
get_bprop_dropout_do_mask.1266:y**
(get_bprop_dropout_do_mask.1266:keep_prob*$
"get_bprop_dropout_do_mask.1266:out*%
#get_bprop_dropout_do_mask.1266:dout2.
,get_bprop_dropout_do_mask.1266:[CNode]1267:1:@d55bb58e60c7eaa972eb71d556b2cefe597bc7308e175c779582adc8a7ab8215J/grad_nn_ops.pyB¾
Ù
#get_bprop_dropout_do_mask.1266:dout
get_bprop_dropout_do_mask.1266:y
(get_bprop_dropout_do_mask.1266:keep_probbprop.1268:[CNode]1269:3bprop.1268:[CNode]1269:3"-REF::get_bprop_dropout_do_mask.1266:do_mask:2:983
·
get_bprop_dropout_do_mask.1266:ybprop.1268:[CNode]1270:4bprop.1268:[CNode]1270:4".REF::MetaFuncGraph::hyper_map[zeros_like_leaf]:/Default/S-Prim-hyper_map[zeros_like_leaf]-op984
¿
(get_bprop_dropout_do_mask.1266:keep_probbprop.1268:[CNode]1271:5bprop.1268:[CNode]1271:5".REF::MetaFuncGraph::hyper_map[zeros_like_leaf]:/Default/S-Prim-hyper_map[zeros_like_leaf]-op985
»
bprop.1268:[CNode]1269:3
bprop.1268:[CNode]1270:4
bprop.1268:[CNode]1271:5bprop.1268:[CNode]1272:6bprop.1268:[CNode]1272:6"REF::S-Prim-MakeTuple:7:Default/S-Prim-MakeTuple-op986
bprop.12682
bprop.1268:[CNode]1272:6Pb&
S-Prim-MakeTuple:7S-Prim-MakeTupleh

View File

@ -1,19 +1,19 @@
0.1.1 MindSpore*2.0.0:
+get_bprop_dropout_gen_mask.140:[CNode]146:1+get_bprop_dropout_gen_mask.140:[CNode]146:1"REF::bprop.147:Default/bprop.147-op54get_bprop_dropout_gen_mask.140*%
#get_bprop_dropout_gen_mask.140:self*/
-get_bprop_dropout_gen_mask.140:[Parameter]142*/
-get_bprop_dropout_gen_mask.140:[Parameter]144*/
-get_bprop_dropout_gen_mask.140:[Parameter]148*/
-get_bprop_dropout_gen_mask.140:[Parameter]1492-
+get_bprop_dropout_gen_mask.140:[CNode]146:1:@33718d8b3c410d1dcbadfa6b75151a77958cc7faf49063290259e12bf3e47074J/grad_nn_ops.pyB¸
¹
-get_bprop_dropout_gen_mask.140:[Parameter]142bprop.147:[CNode]141:2bprop.147:[CNode]141:2"(REF::S-Prim-hyper_map[zeros_like_leaf]:3:.Default/S-Prim-hyper_map[zeros_like_leaf]-op55
¹
-get_bprop_dropout_gen_mask.140:[Parameter]144bprop.147:[CNode]143:4bprop.147:[CNode]143:4"(REF::S-Prim-hyper_map[zeros_like_leaf]:3:.Default/S-Prim-hyper_map[zeros_like_leaf]-op56
˜
bprop.147:[CNode]141:2
bprop.147:[CNode]143:4bprop.147:[CNode]145:5bprop.147:[CNode]145:5"REF::S-Prim-MakeTuple:6:Default/S-Prim-MakeTuple-op57 bprop.1472
bprop.147:[CNode]145:5PbH
#S-Prim-hyper_map[zeros_like_leaf]:3!S-Prim-hyper_map[zeros_like_leaf]b&
S-Prim-MakeTuple:6S-Prim-MakeTupleh
0.1.1 MindSpore*2.0.0:þ
-get_bprop_dropout_gen_mask.1260:[CNode]1261:1-get_bprop_dropout_gen_mask.1260:[CNode]1261:1"REF::bprop.1262:Default/bprop.1262-op977get_bprop_dropout_gen_mask.1260*&
$get_bprop_dropout_gen_mask.1260:self*'
%get_bprop_dropout_gen_mask.1260:shape*+
)get_bprop_dropout_gen_mask.1260:keep_prob*%
#get_bprop_dropout_gen_mask.1260:out*&
$get_bprop_dropout_gen_mask.1260:dout2/
-get_bprop_dropout_gen_mask.1260:[CNode]1261:1:@33718d8b3c410d1dcbadfa6b75151a77958cc7faf49063290259e12bf3e47074J/grad_nn_ops.pyBÎ
¼
%get_bprop_dropout_gen_mask.1260:shapebprop.1262:[CNode]1263:2bprop.1262:[CNode]1263:2".REF::MetaFuncGraph::hyper_map[zeros_like_leaf]:/Default/S-Prim-hyper_map[zeros_like_leaf]-op978
À
)get_bprop_dropout_gen_mask.1260:keep_probbprop.1262:[CNode]1264:3bprop.1262:[CNode]1264:3".REF::MetaFuncGraph::hyper_map[zeros_like_leaf]:/Default/S-Prim-hyper_map[zeros_like_leaf]-op979
¡
bprop.1262:[CNode]1263:2
bprop.1262:[CNode]1264:3bprop.1262:[CNode]1265:4bprop.1262:[CNode]1265:4"REF::S-Prim-MakeTuple:5:Default/S-Prim-MakeTuple-op980
bprop.12622
bprop.1262:[CNode]1265:4Pb&
S-Prim-MakeTuple:5S-Prim-MakeTupleh

View File

@ -1,15 +1,14 @@
0.1.1 MindSpore*2.0.0:Ä
{'get_bprop_dynamicshape.319:[CNode]323:1'get_bprop_dynamicshape.319:[CNode]323:1"REF::bprop.324:Default/bprop.324-op126get_bprop_dynamicshape.319*!
get_bprop_dynamicshape.319:self*+
)get_bprop_dynamicshape.319:[Parameter]321*+
)get_bprop_dynamicshape.319:[Parameter]325*+
)get_bprop_dynamicshape.319:[Parameter]3262)
'get_bprop_dynamicshape.319:[CNode]323:1:@0e2cd4880ac70d6ad49ac25a25c9c8d7be74d87a61cc3300392fc4ef41810d12J/grad_array_ops.pyBâ

)get_bprop_dynamicshape.319:[Parameter]321bprop.324:[CNode]320:2bprop.324:[CNode]320:2"(REF::S-Prim-hyper_map[zeros_like_leaf]:3:/Default/S-Prim-hyper_map[zeros_like_leaf]-op127
<EFBFBD>
bprop.324:[CNode]320:2bprop.324:[CNode]322:4bprop.324:[CNode]322:4"REF::S-Prim-MakeTuple:5:Default/S-Prim-MakeTuple-op128 bprop.3242
bprop.324:[CNode]322:4PbH
#S-Prim-hyper_map[zeros_like_leaf]:3!S-Prim-hyper_map[zeros_like_leaf]b&
S-Prim-MakeTuple:5S-Prim-MakeTupleh
0.1.1 MindSpore*2.0.0:”
t%get_bprop_dynamicshape.16:[CNode]17:1%get_bprop_dynamicshape.16:[CNode]17:1" REF::bprop.18:Default/bprop.18-op10get_bprop_dynamicshape.16*
get_bprop_dynamicshape.16:self*
get_bprop_dynamicshape.16:x*
get_bprop_dynamicshape.16:out*
get_bprop_dynamicshape.16:dout2'
%get_bprop_dynamicshape.16:[CNode]17:1:@0e2cd4880ac70d6ad49ac25a25c9c8d7be74d87a61cc3300392fc4ef41810d12J/grad_array_ops.pyBÊ
©
get_bprop_dynamicshape.16:xbprop.18:[CNode]19:2bprop.18:[CNode]19:2".REF::MetaFuncGraph::hyper_map[zeros_like_leaf]:.Default/S-Prim-hyper_map[zeros_like_leaf]-op11
z
bprop.18:[CNode]19:2bprop.18:[CNode]20:3bprop.18:[CNode]20:3"REF::S-Prim-MakeTuple:4:Default/S-Prim-MakeTuple-op12bprop.182
bprop.18:[CNode]20:3Pb&
S-Prim-MakeTuple:4S-Prim-MakeTupleh

View File

@ -1,19 +1,19 @@
0.1.1 MindSpore*2.0.0:°
l get_bprop_equal.191:[CNode]197:1 get_bprop_equal.191:[CNode]197:1"REF::bprop.198:Default/bprop.198-op74get_bprop_equal.191*
get_bprop_equal.191:self*$
"get_bprop_equal.191:[Parameter]193*$
"get_bprop_equal.191:[Parameter]195*$
"get_bprop_equal.191:[Parameter]199*$
"get_bprop_equal.191:[Parameter]2002"
get_bprop_equal.191:[CNode]197:1:@8f673e4c3df60cabc1221474197ae9c829977054ff02e085743c2ac4562e4c82J/grad_math_ops.pyB¢
®
"get_bprop_equal.191:[Parameter]193bprop.198:[CNode]192:2bprop.198:[CNode]192:2"(REF::S-Prim-hyper_map[zeros_like_leaf]:3:.Default/S-Prim-hyper_map[zeros_like_leaf]-op75
®
"get_bprop_equal.191:[Parameter]195bprop.198:[CNode]194:4bprop.198:[CNode]194:4"(REF::S-Prim-hyper_map[zeros_like_leaf]:3:.Default/S-Prim-hyper_map[zeros_like_leaf]-op76
˜
bprop.198:[CNode]192:2
bprop.198:[CNode]194:4bprop.198:[CNode]196:5bprop.198:[CNode]196:5"REF::S-Prim-MakeTuple:6:Default/S-Prim-MakeTuple-op77 bprop.1982
bprop.198:[CNode]196:5PbH
#S-Prim-hyper_map[zeros_like_leaf]:3!S-Prim-hyper_map[zeros_like_leaf]b&
S-Prim-MakeTuple:6S-Prim-MakeTupleh
0.1.1 MindSpore*2.0.0:<EFBFBD>
s"get_bprop_equal.1172:[CNode]1173:1"get_bprop_equal.1172:[CNode]1173:1"REF::bprop.1174:Default/bprop.1174-op919get_bprop_equal.1172*
get_bprop_equal.1172:self*
get_bprop_equal.1172:x*
get_bprop_equal.1172:y*
get_bprop_equal.1172:out*
get_bprop_equal.1172:dout2$
"get_bprop_equal.1172:[CNode]1173:1:@8f673e4c3df60cabc1221474197ae9c829977054ff02e085743c2ac4562e4c82J/grad_math_ops.pyB¬
­
get_bprop_equal.1172:xbprop.1174:[CNode]1175:2bprop.1174:[CNode]1175:2".REF::MetaFuncGraph::hyper_map[zeros_like_leaf]:/Default/S-Prim-hyper_map[zeros_like_leaf]-op920
­
get_bprop_equal.1172:ybprop.1174:[CNode]1176:3bprop.1174:[CNode]1176:3".REF::MetaFuncGraph::hyper_map[zeros_like_leaf]:/Default/S-Prim-hyper_map[zeros_like_leaf]-op921
¡
bprop.1174:[CNode]1175:2
bprop.1174:[CNode]1176:3bprop.1174:[CNode]1177:4bprop.1174:[CNode]1177:4"REF::S-Prim-MakeTuple:5:Default/S-Prim-MakeTuple-op922
bprop.11742
bprop.1174:[CNode]1177:4Pb&
S-Prim-MakeTuple:5S-Prim-MakeTupleh

View File

@ -0,0 +1,60 @@
0.1.1 MindSpore*2.0.0:±
r$get_bprop_expand_dims.54:[CNode]55:1$get_bprop_expand_dims.54:[CNode]55:1" REF::bprop.56:Default/bprop.56-op38get_bprop_expand_dims.54*
get_bprop_expand_dims.54:self*
get_bprop_expand_dims.54:x*!
get_bprop_expand_dims.54:Ñ„axis*
get_bprop_expand_dims.54:out*!
get_bprop_expand_dims.54:Ñ„dout2&
$get_bprop_expand_dims.54:[CNode]55:1:@00d0022c94fe11f40233eef241df1b2a18e6c066a343dc8b3b09893ac000b6f0J/grad_array_ops.pyBË
r
get_bprop_expand_dims.54:xbprop.56:shapex:2bprop.56:shapex:2"REF::S-Prim-Shape:3:Default/S-Prim-Shape-op39

bprop.56:shapex:2bprop.56:[CNode]57:4bprop.56:[CNode]57:4"REF::S-Prim-is_shape_unknown:5:$Default/S-Prim-is_shape_unknown-op40
h
bprop.56:[CNode]57:4bprop.56:[CNode]58:6bprop.56:[CNode]58:6" REF::bool_.59:Default/bool_.59-op41

bprop.56:[CNode]58:6
✓bprop.60
✗bprop.61bprop.56:[CNode]62:7bprop.56:[CNode]62:7" REF::Switch:8:Default/Switch-op42
Kbprop.56:[CNode]63:9bprop.56:[CNode]63:9"REF::bprop.56:[CNode]62:7:43
p
bprop.56:[CNode]63:9bprop.56:[CNode]64:10bprop.56:[CNode]64:10"REF::↓bprop.65:Default/↓bprop.65-op44bprop.562
bprop.56:[CNode]64:10BË
£↓bprop.65:66:11↓bprop.65:66:11":REF::ClassType::mindspore.ops.operations.array_ops.Reshape:?Default/class 'mindspore.ops.operations.array_ops.Reshape'-op45
y
get_bprop_expand_dims.54:Ñ„dout
↓bprop.65:Ñ„shapex↓bprop.65:66:12↓bprop.65:66:12"REF::↓bprop.65:66:11:46
µ
get_bprop_expand_dims.54:Ñ„axis↓bprop.65:[CNode]67:13↓bprop.65:[CNode]67:13".REF::MetaFuncGraph::hyper_map[zeros_like_leaf]:.Default/S-Prim-hyper_map[zeros_like_leaf]-op47
š
↓bprop.65:66:12
↓bprop.65:[CNode]67:13↓bprop.65:[CNode]68:14↓bprop.65:[CNode]68:14"REF::S-Prim-MakeTuple:15:Default/S-Prim-MakeTuple-op48 ↓bprop.65*
↓bprop.65:Ñ„shapex2
↓bprop.65:[CNode]68:14B
after_block B" ✗bprop.612
bprop.56:shapex:2B°

get_bprop_expand_dims.54:x✓bprop.60:shapex:16✓bprop.60:shapex:16"REF::S-Prim-TensorShape:17:Default/S-Prim-TensorShape-op49 ✓bprop.602
✓bprop.60:shapex:16B³
> [ValueNode]69 [ValueNode]69"Constant*
value*__bool__€
p
bool_.59:x
[ValueNode]69bool_.59:[CNode]70:18bool_.59:[CNode]70:18"REF::getattr:19:Default/getattr-op50
Nbool_.59:[CNode]71:20bool_.59:[CNode]71:20"REF::bool_.59:[CNode]70:18:51bool_.59*
bool_.59:x2
bool_.59:[CNode]71:20Pb
Switch:8Switchb
getattr:19getattrbŽ
S-Prim-is_shape_unknown:5S-Prim-is_shape_unknown1
constexpr_module*mindspore.ops._utils.utils€%
constexpr_name*is_shape_unknown€b'
S-Prim-MakeTuple:15S-Prim-MakeTupleb
S-Prim-Shape:3 S-Prim-Shapebm
S-Prim-TensorShape:17S-Prim-TensorShape
output_names€Š Zoutput€
input_names€Š Zinput_x€h

View File

@ -0,0 +1,56 @@
0.1.1 MindSpore*2.0.0:¾
j get_bprop_flatten.89:[CNode]90:1 get_bprop_flatten.89:[CNode]90:1" REF::bprop.91:Default/bprop.91-op65
Í&get_bprop_flatten.89:Ñ„flatten_grad:11&get_bprop_flatten.89:Ñ„flatten_grad:11":REF::ClassType::mindspore.ops.operations.array_ops.Reshape:?Default/class 'mindspore.ops.operations.array_ops.Reshape'-op72get_bprop_flatten.89*
get_bprop_flatten.89:self*
get_bprop_flatten.89:x*
get_bprop_flatten.89:out*
get_bprop_flatten.89:Ñ„dout2"
get_bprop_flatten.89:[CNode]90:1:@672c1b4b4251646f1a1d1d68f02253259f42283ef47e35ade5ee9713abe66c45J/grad_array_ops.pyBÌ
p
get_bprop_flatten.89:xbprop.91:shape_x:2bprop.91:shape_x:2"REF::S-Prim-Shape:3:Default/S-Prim-Shape-op66

bprop.91:shape_x:2bprop.91:[CNode]92:4bprop.91:[CNode]92:4"REF::S-Prim-is_shape_unknown:5:$Default/S-Prim-is_shape_unknown-op67
h
bprop.91:[CNode]92:4bprop.91:[CNode]93:6bprop.91:[CNode]93:6" REF::bool_.94:Default/bool_.94-op68

bprop.91:[CNode]93:6
✓bprop.95
✗bprop.96bprop.91:[CNode]97:7bprop.91:[CNode]97:7" REF::Switch:8:Default/Switch-op69
Kbprop.91:[CNode]98:9bprop.91:[CNode]98:9"REF::bprop.91:[CNode]97:7:70
r
bprop.91:[CNode]98:9bprop.91:[CNode]99:10bprop.91:[CNode]99:10"REF::↓bprop.100:Default/↓bprop.100-op71bprop.912
bprop.91:[CNode]99:10Bó
Ž
get_bprop_flatten.89:Ñ„dout
↓bprop.100:Ñ„shape_x↓bprop.100:dx:12↓bprop.100:dx:12"+REF::get_bprop_flatten.89:Ñ„flatten_grad:11:73

↓bprop.100:dx:12↓bprop.100:[CNode]101:13↓bprop.100:[CNode]101:13"REF::S-Prim-MakeTuple:14:Default/S-Prim-MakeTuple-op74 ↓bprop.100*
↓bprop.100:фshape_x2
↓bprop.100:[CNode]101:13B
after_block B# ✗bprop.962
bprop.91:shape_x:2B¯

get_bprop_flatten.89:x✓bprop.95:shape_x:15✓bprop.95:shape_x:15"REF::S-Prim-TensorShape:16:Default/S-Prim-TensorShape-op75 ✓bprop.952
✓bprop.95:shape_x:15B¼
@[ValueNode]102[ValueNode]102"Constant*
value*__bool__€
s
bool_.94:x
[ValueNode]102bool_.94:[CNode]103:17bool_.94:[CNode]103:17"REF::getattr:18:Default/getattr-op76
Qbool_.94:[CNode]104:19bool_.94:[CNode]104:19"REF::bool_.94:[CNode]103:17:77bool_.94*
bool_.94:x2
bool_.94:[CNode]104:19Pb
Switch:8Switchb
getattr:18getattrb'
S-Prim-MakeTuple:14S-Prim-MakeTupleb
S-Prim-Shape:3 S-Prim-ShapebŽ
S-Prim-is_shape_unknown:5S-Prim-is_shape_unknown1
constexpr_module*mindspore.ops._utils.utils€%
constexpr_name*is_shape_unknown€bm
S-Prim-TensorShape:16S-Prim-TensorShape
output_names€Š Zoutput€
input_names€Š Zinput_x€h

View File

@ -1,19 +1,19 @@
0.1.1 MindSpore*2.0.0:Ì
s#get_bprop_floordiv.399:[CNode]405:1#get_bprop_floordiv.399:[CNode]405:1"REF::bprop.406:Default/bprop.406-op164get_bprop_floordiv.399*
get_bprop_floordiv.399:self*'
%get_bprop_floordiv.399:[Parameter]401*'
%get_bprop_floordiv.399:[Parameter]403*'
%get_bprop_floordiv.399:[Parameter]407*'
%get_bprop_floordiv.399:[Parameter]4082%
#get_bprop_floordiv.399:[CNode]405:1:@05f22e208212dca4c89f2af21d0ad7b9701fcded9bd47e0b32d9012522fa109fJ/grad_math_ops.pyB«
²
%get_bprop_floordiv.399:[Parameter]401bprop.406:[CNode]400:2bprop.406:[CNode]400:2"(REF::S-Prim-hyper_map[zeros_like_leaf]:3:/Default/S-Prim-hyper_map[zeros_like_leaf]-op165
²
%get_bprop_floordiv.399:[Parameter]403bprop.406:[CNode]402:4bprop.406:[CNode]402:4"(REF::S-Prim-hyper_map[zeros_like_leaf]:3:/Default/S-Prim-hyper_map[zeros_like_leaf]-op166

bprop.406:[CNode]400:2
bprop.406:[CNode]402:4bprop.406:[CNode]404:5bprop.406:[CNode]404:5"REF::S-Prim-MakeTuple:6:Default/S-Prim-MakeTuple-op167 bprop.4062
bprop.406:[CNode]404:5Pb&
S-Prim-MakeTuple:6S-Prim-MakeTuplebH
#S-Prim-hyper_map[zeros_like_leaf]:3!S-Prim-hyper_map[zeros_like_leaf]h
0.1.1 MindSpore*2.0.0:«
y%get_bprop_floordiv.1119:[CNode]1120:1%get_bprop_floordiv.1119:[CNode]1120:1"REF::bprop.1121:Default/bprop.1121-op882get_bprop_floordiv.1119*
get_bprop_floordiv.1119:self*
get_bprop_floordiv.1119:x*
get_bprop_floordiv.1119:y*
get_bprop_floordiv.1119:out*
get_bprop_floordiv.1119:dout2'
%get_bprop_floordiv.1119:[CNode]1120:1:@05f22e208212dca4c89f2af21d0ad7b9701fcded9bd47e0b32d9012522fa109fJ/grad_math_ops.pyB²
°
get_bprop_floordiv.1119:xbprop.1121:[CNode]1122:2bprop.1121:[CNode]1122:2".REF::MetaFuncGraph::hyper_map[zeros_like_leaf]:/Default/S-Prim-hyper_map[zeros_like_leaf]-op883
°
get_bprop_floordiv.1119:ybprop.1121:[CNode]1123:3bprop.1121:[CNode]1123:3".REF::MetaFuncGraph::hyper_map[zeros_like_leaf]:/Default/S-Prim-hyper_map[zeros_like_leaf]-op884
¡
bprop.1121:[CNode]1122:2
bprop.1121:[CNode]1123:3bprop.1121:[CNode]1124:4bprop.1121:[CNode]1124:4"REF::S-Prim-MakeTuple:5:Default/S-Prim-MakeTuple-op885
bprop.11212
bprop.1121:[CNode]1124:4Pb&
S-Prim-MakeTuple:5S-Prim-MakeTupleh

View File

@ -0,0 +1,26 @@
0.1.1 MindSpore*2.0.0:À
s#get_bprop_gather_d.791:[CNode]792:1#get_bprop_gather_d.791:[CNode]792:1"REF::bprop.793:Default/bprop.793-op630get_bprop_gather_d.791*
get_bprop_gather_d.791:self*
get_bprop_gather_d.791:x*
get_bprop_gather_d.791:dim*
get_bprop_gather_d.791:index*
get_bprop_gather_d.791:out*
get_bprop_gather_d.791:dout2%
#get_bprop_gather_d.791:[CNode]792:1:@a90d4540e0d53c3f816940b7877c6c1747985297c8e516ad6d45a9e3164706a6J/grad_array_ops.pyB¦
ºbprop.793:[CNode]794:2bprop.793:[CNode]794:2"@REF::ClassType::mindspore.ops.operations._grad_ops.GatherDGradV2:FDefault/class 'mindspore.ops.operations._grad_ops.GatherDGradV2'-op631
³
get_bprop_gather_d.791:x
get_bprop_gather_d.791:dim
get_bprop_gather_d.791:index
get_bprop_gather_d.791:doutbprop.793:dx:3bprop.793:dx:3"REF::bprop.793:[CNode]794:2:632
­
get_bprop_gather_d.791:dimbprop.793:[CNode]795:4bprop.793:[CNode]795:4".REF::MetaFuncGraph::hyper_map[zeros_like_leaf]:/Default/S-Prim-hyper_map[zeros_like_leaf]-op633
¯
get_bprop_gather_d.791:indexbprop.793:[CNode]796:5bprop.793:[CNode]796:5".REF::MetaFuncGraph::hyper_map[zeros_like_leaf]:/Default/S-Prim-hyper_map[zeros_like_leaf]-op634
©
bprop.793:dx:3
bprop.793:[CNode]795:4
bprop.793:[CNode]796:5bprop.793:[CNode]797:6bprop.793:[CNode]797:6"REF::S-Prim-MakeTuple:7:Default/S-Prim-MakeTuple-op635 bprop.7932
bprop.793:[CNode]797:6Pb&
S-Prim-MakeTuple:7S-Prim-MakeTupleh

View File

@ -1,19 +1,19 @@
0.1.1 MindSpore*2.0.0:ø
|(get_bprop_greater_equal.221:[CNode]227:1(get_bprop_greater_equal.221:[CNode]227:1"REF::bprop.228:Default/bprop.228-op86get_bprop_greater_equal.221*"
get_bprop_greater_equal.221:self*,
*get_bprop_greater_equal.221:[Parameter]223*,
*get_bprop_greater_equal.221:[Parameter]225*,
*get_bprop_greater_equal.221:[Parameter]229*,
*get_bprop_greater_equal.221:[Parameter]2302*
(get_bprop_greater_equal.221:[CNode]227:1:@a77b6da365a4c263130e206e03e482c37a49718be3714fd1efc22e3d2805da4aJ/grad_math_ops.pyB²

*get_bprop_greater_equal.221:[Parameter]223bprop.228:[CNode]222:2bprop.228:[CNode]222:2"(REF::S-Prim-hyper_map[zeros_like_leaf]:3:.Default/S-Prim-hyper_map[zeros_like_leaf]-op87

*get_bprop_greater_equal.221:[Parameter]225bprop.228:[CNode]224:4bprop.228:[CNode]224:4"(REF::S-Prim-hyper_map[zeros_like_leaf]:3:.Default/S-Prim-hyper_map[zeros_like_leaf]-op88
˜
bprop.228:[CNode]222:2
bprop.228:[CNode]224:4bprop.228:[CNode]226:5bprop.228:[CNode]226:5"REF::S-Prim-MakeTuple:6:Default/S-Prim-MakeTuple-op89 bprop.2282
bprop.228:[CNode]226:5Pb&
S-Prim-MakeTuple:6S-Prim-MakeTuplebH
#S-Prim-hyper_map[zeros_like_leaf]:3!S-Prim-hyper_map[zeros_like_leaf]h
0.1.1 MindSpore*2.0.0:Ù
ƒ*get_bprop_greater_equal.1196:[CNode]1197:1*get_bprop_greater_equal.1196:[CNode]1197:1"REF::bprop.1198:Default/bprop.1198-op935get_bprop_greater_equal.1196*#
!get_bprop_greater_equal.1196:self*
get_bprop_greater_equal.1196:x*
get_bprop_greater_equal.1196:y*"
get_bprop_greater_equal.1196:out*#
!get_bprop_greater_equal.1196:dout2,
*get_bprop_greater_equal.1196:[CNode]1197:1:@a77b6da365a4c263130e206e03e482c37a49718be3714fd1efc22e3d2805da4aJ/grad_math_ops.pyB¼
µ
get_bprop_greater_equal.1196:xbprop.1198:[CNode]1199:2bprop.1198:[CNode]1199:2".REF::MetaFuncGraph::hyper_map[zeros_like_leaf]:/Default/S-Prim-hyper_map[zeros_like_leaf]-op936
µ
get_bprop_greater_equal.1196:ybprop.1198:[CNode]1200:3bprop.1198:[CNode]1200:3".REF::MetaFuncGraph::hyper_map[zeros_like_leaf]:/Default/S-Prim-hyper_map[zeros_like_leaf]-op937
¡
bprop.1198:[CNode]1199:2
bprop.1198:[CNode]1200:3bprop.1198:[CNode]1201:4bprop.1198:[CNode]1201:4"REF::S-Prim-MakeTuple:5:Default/S-Prim-MakeTuple-op938
bprop.11982
bprop.1198:[CNode]1201:4Pb&
S-Prim-MakeTuple:5S-Prim-MakeTupleh

View File

@ -1,19 +1,19 @@
0.1.1 MindSpore*2.0.0:Â
p"get_bprop_greater.211:[CNode]217:1"get_bprop_greater.211:[CNode]217:1"REF::bprop.218:Default/bprop.218-op82get_bprop_greater.211*
get_bprop_greater.211:self*&
$get_bprop_greater.211:[Parameter]213*&
$get_bprop_greater.211:[Parameter]215*&
$get_bprop_greater.211:[Parameter]219*&
$get_bprop_greater.211:[Parameter]2202$
"get_bprop_greater.211:[CNode]217:1:@d8665c241ca26956099ba8748f00469b2065deaeeb4ac973afd8cdef41c3000dJ/grad_math_ops.pyB¦
°
$get_bprop_greater.211:[Parameter]213bprop.218:[CNode]212:2bprop.218:[CNode]212:2"(REF::S-Prim-hyper_map[zeros_like_leaf]:3:.Default/S-Prim-hyper_map[zeros_like_leaf]-op83
°
$get_bprop_greater.211:[Parameter]215bprop.218:[CNode]214:4bprop.218:[CNode]214:4"(REF::S-Prim-hyper_map[zeros_like_leaf]:3:.Default/S-Prim-hyper_map[zeros_like_leaf]-op84
˜
bprop.218:[CNode]212:2
bprop.218:[CNode]214:4bprop.218:[CNode]216:5bprop.218:[CNode]216:5"REF::S-Prim-MakeTuple:6:Default/S-Prim-MakeTuple-op85 bprop.2182
bprop.218:[CNode]216:5Pb&
S-Prim-MakeTuple:6S-Prim-MakeTuplebH
#S-Prim-hyper_map[zeros_like_leaf]:3!S-Prim-hyper_map[zeros_like_leaf]h
0.1.1 MindSpore*2.0.0:¢
w$get_bprop_greater.1190:[CNode]1191:1$get_bprop_greater.1190:[CNode]1191:1"REF::bprop.1192:Default/bprop.1192-op931get_bprop_greater.1190*
get_bprop_greater.1190:self*
get_bprop_greater.1190:x*
get_bprop_greater.1190:y*
get_bprop_greater.1190:out*
get_bprop_greater.1190:dout2&
$get_bprop_greater.1190:[CNode]1191:1:@d8665c241ca26956099ba8748f00469b2065deaeeb4ac973afd8cdef41c3000dJ/grad_math_ops.pyB°
¯
get_bprop_greater.1190:xbprop.1192:[CNode]1193:2bprop.1192:[CNode]1193:2".REF::MetaFuncGraph::hyper_map[zeros_like_leaf]:/Default/S-Prim-hyper_map[zeros_like_leaf]-op932
¯
get_bprop_greater.1190:ybprop.1192:[CNode]1194:3bprop.1192:[CNode]1194:3".REF::MetaFuncGraph::hyper_map[zeros_like_leaf]:/Default/S-Prim-hyper_map[zeros_like_leaf]-op933
¡
bprop.1192:[CNode]1193:2
bprop.1192:[CNode]1194:3bprop.1192:[CNode]1195:4bprop.1192:[CNode]1195:4"REF::S-Prim-MakeTuple:5:Default/S-Prim-MakeTuple-op934
bprop.11922
bprop.1192:[CNode]1195:4Pb&
S-Prim-MakeTuple:5S-Prim-MakeTupleh

View File

@ -1,19 +1,19 @@
0.1.1 MindSpore*2.0.0:Ÿ
hget_bprop_iou.173:[CNode]179:1get_bprop_iou.173:[CNode]179:1"REF::bprop.180:Default/bprop.180-op67get_bprop_iou.173*
get_bprop_iou.173:self*"
get_bprop_iou.173:[Parameter]175*"
get_bprop_iou.173:[Parameter]177*"
get_bprop_iou.173:[Parameter]181*"
get_bprop_iou.173:[Parameter]1822
get_bprop_iou.173:[CNode]179:1:@66aeebd53ad28e6fe7ecc7f2f8be1ca52bc61fa0a9fc3072c9d610790c867086J/grad_other_ops.pyBž
0.1.1 MindSpore*2.0.0:
p get_bprop_iou.1302:[CNode]1303:1 get_bprop_iou.1302:[CNode]1303:1"REF::bprop.1304:Default/bprop.1304-op1011get_bprop_iou.1302*
get_bprop_iou.1302:self*
get_bprop_iou.1302:x*
get_bprop_iou.1302:y*
get_bprop_iou.1302:out*
get_bprop_iou.1302:dout2"
get_bprop_iou.1302:[CNode]1303:1:@66aeebd53ad28e6fe7ecc7f2f8be1ca52bc61fa0a9fc3072c9d610790c867086J/grad_other_ops.pyB«
<EFBFBD>
get_bprop_iou.173:[Parameter]175bprop.180:[CNode]174:2bprop.180:[CNode]174:2"(REF::S-Prim-hyper_map[zeros_like_leaf]:3:.Default/S-Prim-hyper_map[zeros_like_leaf]-op68
get_bprop_iou.1302:xbprop.1304:[CNode]1305:2bprop.1304:[CNode]1305:2".REF::MetaFuncGraph::hyper_map[zeros_like_leaf]:0Default/S-Prim-hyper_map[zeros_like_leaf]-op1012
<EFBFBD>
get_bprop_iou.173:[Parameter]177bprop.180:[CNode]176:4bprop.180:[CNode]176:4"(REF::S-Prim-hyper_map[zeros_like_leaf]:3:.Default/S-Prim-hyper_map[zeros_like_leaf]-op69
˜
bprop.180:[CNode]174:2
bprop.180:[CNode]176:4bprop.180:[CNode]178:5bprop.180:[CNode]178:5"REF::S-Prim-MakeTuple:6:Default/S-Prim-MakeTuple-op70 bprop.1802
bprop.180:[CNode]178:5Pb&
S-Prim-MakeTuple:6S-Prim-MakeTuplebH
#S-Prim-hyper_map[zeros_like_leaf]:3!S-Prim-hyper_map[zeros_like_leaf]h
get_bprop_iou.1302:ybprop.1304:[CNode]1306:3bprop.1304:[CNode]1306:3".REF::MetaFuncGraph::hyper_map[zeros_like_leaf]:0Default/S-Prim-hyper_map[zeros_like_leaf]-op1013
¢
bprop.1304:[CNode]1305:2
bprop.1304:[CNode]1306:3bprop.1304:[CNode]1307:4bprop.1304:[CNode]1307:4"REF::S-Prim-MakeTuple:5:Default/S-Prim-MakeTuple-op1014
bprop.13042
bprop.1304:[CNode]1307:4Pb&
S-Prim-MakeTuple:5S-Prim-MakeTupleh

View File

@ -1,12 +1,12 @@
0.1.1 MindSpore*2.0.0:Š
i get_bprop_identity.8:[CNode]11:1 get_bprop_identity.8:[CNode]11:1" REF::bprop.12:Default/bprop.12-op4get_bprop_identity.8*
get_bprop_identity.8:self*$
"get_bprop_identity.8:[Parameter]13*$
"get_bprop_identity.8:[Parameter]14*$
"get_bprop_identity.8:[Parameter]102"
get_bprop_identity.8:[CNode]11:1:@bfa213dd499679a0e46921588aa86c02bba3ef29e44d1fd1a5e0627ad9ef8027J/grad_array_ops.pyB©

"get_bprop_identity.8:[Parameter]10bprop.12:[CNode]9:2bprop.12:[CNode]9:2"REF::S-Prim-MakeTuple:3:Default/S-Prim-MakeTuple-op5bprop.122
bprop.12:[CNode]9:2Pb&
0.1.1 MindSpore*2.0.0:
s#get_bprop_identity.908:[CNode]909:1#get_bprop_identity.908:[CNode]909:1"REF::bprop.910:Default/bprop.910-op737get_bprop_identity.908*
get_bprop_identity.908:self*
get_bprop_identity.908:x*
get_bprop_identity.908:out*
get_bprop_identity.908:dout2%
#get_bprop_identity.908:[CNode]909:1:@bfa213dd499679a0e46921588aa86c02bba3ef29e44d1fd1a5e0627ad9ef8027J/grad_array_ops.pyB®

get_bprop_identity.908:doutbprop.910:[CNode]911:2bprop.910:[CNode]911:2"REF::S-Prim-MakeTuple:3:Default/S-Prim-MakeTuple-op738 bprop.9102
bprop.910:[CNode]911:2Pb&
S-Prim-MakeTuple:3S-Prim-MakeTupleh

View File

@ -1,15 +1,15 @@
0.1.1 MindSpore*2.0.0:
l!get_bprop_isfinite.86:[CNode]90:1!get_bprop_isfinite.86:[CNode]90:1" REF::bprop.91:Default/bprop.91-op33get_bprop_isfinite.86*
get_bprop_isfinite.86:self*%
#get_bprop_isfinite.86:[Parameter]88*%
#get_bprop_isfinite.86:[Parameter]92*%
#get_bprop_isfinite.86:[Parameter]932#
!get_bprop_isfinite.86:[CNode]90:1:@ec94d7a5f48d29f160c176a6fad32658e4aeb3d15446812e70c46ffd52ac443cJ/grad_math_ops.pyBÌ
«
#get_bprop_isfinite.86:[Parameter]88bprop.91:[CNode]87:2bprop.91:[CNode]87:2"(REF::S-Prim-hyper_map[zeros_like_leaf]:3:.Default/S-Prim-hyper_map[zeros_like_leaf]-op34
z
bprop.91:[CNode]87:2bprop.91:[CNode]89:4bprop.91:[CNode]89:4"REF::S-Prim-MakeTuple:5:Default/S-Prim-MakeTuple-op35bprop.912
bprop.91:[CNode]89:4PbH
#S-Prim-hyper_map[zeros_like_leaf]:3!S-Prim-hyper_map[zeros_like_leaf]b&
S-Prim-MakeTuple:5S-Prim-MakeTupleh
0.1.1 MindSpore*2.0.0:Ž
y%get_bprop_isfinite.1157:[CNode]1158:1%get_bprop_isfinite.1157:[CNode]1158:1"REF::bprop.1159:Default/bprop.1159-op910get_bprop_isfinite.1157*
get_bprop_isfinite.1157:self*
get_bprop_isfinite.1157:x*
get_bprop_isfinite.1157:out*
get_bprop_isfinite.1157:dout2'
%get_bprop_isfinite.1157:[CNode]1158:1:@ec94d7a5f48d29f160c176a6fad32658e4aeb3d15446812e70c46ffd52ac443cJ/grad_math_ops.pyBå
°
get_bprop_isfinite.1157:xbprop.1159:[CNode]1160:2bprop.1159:[CNode]1160:2".REF::MetaFuncGraph::hyper_map[zeros_like_leaf]:/Default/S-Prim-hyper_map[zeros_like_leaf]-op911

bprop.1159:[CNode]1160:2bprop.1159:[CNode]1161:3bprop.1159:[CNode]1161:3"REF::S-Prim-MakeTuple:4:Default/S-Prim-MakeTuple-op912
bprop.11592
bprop.1159:[CNode]1161:3Pb&
S-Prim-MakeTuple:4S-Prim-MakeTupleh

View File

@ -1,15 +1,15 @@
0.1.1 MindSpore*2.0.0:
m get_bprop_isinf.449:[CNode]453:1 get_bprop_isinf.449:[CNode]453:1"REF::bprop.454:Default/bprop.454-op187get_bprop_isinf.449*
get_bprop_isinf.449:self*$
"get_bprop_isinf.449:[Parameter]451*$
"get_bprop_isinf.449:[Parameter]455*$
"get_bprop_isinf.449:[Parameter]4562"
get_bprop_isinf.449:[CNode]453:1:@ee31353471964c38b99d8a195330e2dcc4bf277f7bd299dded25d40da57fe609J/grad_math_ops.pyBÛ
¯
"get_bprop_isinf.449:[Parameter]451bprop.454:[CNode]450:2bprop.454:[CNode]450:2"(REF::S-Prim-hyper_map[zeros_like_leaf]:3:/Default/S-Prim-hyper_map[zeros_like_leaf]-op188
<EFBFBD>
bprop.454:[CNode]450:2bprop.454:[CNode]452:4bprop.454:[CNode]452:4"REF::S-Prim-MakeTuple:5:Default/S-Prim-MakeTuple-op189 bprop.4542
bprop.454:[CNode]452:4PbH
#S-Prim-hyper_map[zeros_like_leaf]:3!S-Prim-hyper_map[zeros_like_leaf]b&
S-Prim-MakeTuple:5S-Prim-MakeTupleh
0.1.1 MindSpore*2.0.0:ö
s"get_bprop_isinf.1167:[CNode]1168:1"get_bprop_isinf.1167:[CNode]1168:1"REF::bprop.1169:Default/bprop.1169-op916get_bprop_isinf.1167*
get_bprop_isinf.1167:self*
get_bprop_isinf.1167:x*
get_bprop_isinf.1167:out*
get_bprop_isinf.1167:dout2$
"get_bprop_isinf.1167:[CNode]1168:1:@ee31353471964c38b99d8a195330e2dcc4bf277f7bd299dded25d40da57fe609J/grad_math_ops.pyBâ
­
get_bprop_isinf.1167:xbprop.1169:[CNode]1170:2bprop.1169:[CNode]1170:2".REF::MetaFuncGraph::hyper_map[zeros_like_leaf]:/Default/S-Prim-hyper_map[zeros_like_leaf]-op917

bprop.1169:[CNode]1170:2bprop.1169:[CNode]1171:3bprop.1169:[CNode]1171:3"REF::S-Prim-MakeTuple:4:Default/S-Prim-MakeTuple-op918
bprop.11692
bprop.1169:[CNode]1171:3Pb&
S-Prim-MakeTuple:4S-Prim-MakeTupleh

View File

@ -1,15 +1,15 @@
0.1.1 MindSpore*2.0.0:
m get_bprop_isnan.441:[CNode]445:1 get_bprop_isnan.441:[CNode]445:1"REF::bprop.446:Default/bprop.446-op184get_bprop_isnan.441*
get_bprop_isnan.441:self*$
"get_bprop_isnan.441:[Parameter]443*$
"get_bprop_isnan.441:[Parameter]447*$
"get_bprop_isnan.441:[Parameter]4482"
get_bprop_isnan.441:[CNode]445:1:@bf404b81b39dbb2ffaab00ed56689f33374d98f8575a959d1d405916eb9b0658J/grad_math_ops.pyBÛ
¯
"get_bprop_isnan.441:[Parameter]443bprop.446:[CNode]442:2bprop.446:[CNode]442:2"(REF::S-Prim-hyper_map[zeros_like_leaf]:3:/Default/S-Prim-hyper_map[zeros_like_leaf]-op185
<EFBFBD>
bprop.446:[CNode]442:2bprop.446:[CNode]444:4bprop.446:[CNode]444:4"REF::S-Prim-MakeTuple:5:Default/S-Prim-MakeTuple-op186 bprop.4462
bprop.446:[CNode]444:4Pb&
S-Prim-MakeTuple:5S-Prim-MakeTuplebH
#S-Prim-hyper_map[zeros_like_leaf]:3!S-Prim-hyper_map[zeros_like_leaf]h
0.1.1 MindSpore*2.0.0:ö
s"get_bprop_isnan.1162:[CNode]1163:1"get_bprop_isnan.1162:[CNode]1163:1"REF::bprop.1164:Default/bprop.1164-op913get_bprop_isnan.1162*
get_bprop_isnan.1162:self*
get_bprop_isnan.1162:x*
get_bprop_isnan.1162:out*
get_bprop_isnan.1162:dout2$
"get_bprop_isnan.1162:[CNode]1163:1:@bf404b81b39dbb2ffaab00ed56689f33374d98f8575a959d1d405916eb9b0658J/grad_math_ops.pyBâ
­
get_bprop_isnan.1162:xbprop.1164:[CNode]1165:2bprop.1164:[CNode]1165:2".REF::MetaFuncGraph::hyper_map[zeros_like_leaf]:/Default/S-Prim-hyper_map[zeros_like_leaf]-op914

bprop.1164:[CNode]1165:2bprop.1164:[CNode]1166:3bprop.1164:[CNode]1166:3"REF::S-Prim-MakeTuple:4:Default/S-Prim-MakeTuple-op915
bprop.11642
bprop.1164:[CNode]1166:3Pb&
S-Prim-MakeTuple:4S-Prim-MakeTupleh

View File

@ -1,19 +1,19 @@
0.1.1 MindSpore*2.0.0:Ý
v%get_bprop_less_equal.241:[CNode]247:1%get_bprop_less_equal.241:[CNode]247:1"REF::bprop.248:Default/bprop.248-op94get_bprop_less_equal.241*
get_bprop_less_equal.241:self*)
'get_bprop_less_equal.241:[Parameter]243*)
'get_bprop_less_equal.241:[Parameter]245*)
'get_bprop_less_equal.241:[Parameter]249*)
'get_bprop_less_equal.241:[Parameter]2502'
%get_bprop_less_equal.241:[CNode]247:1:@195a9bb3ae5c84fa15acaaecee42165ec0291a252277aa042e8d58559497b7c4J/grad_math_ops.pyB¬
³
'get_bprop_less_equal.241:[Parameter]243bprop.248:[CNode]242:2bprop.248:[CNode]242:2"(REF::S-Prim-hyper_map[zeros_like_leaf]:3:.Default/S-Prim-hyper_map[zeros_like_leaf]-op95
³
'get_bprop_less_equal.241:[Parameter]245bprop.248:[CNode]244:4bprop.248:[CNode]244:4"(REF::S-Prim-hyper_map[zeros_like_leaf]:3:.Default/S-Prim-hyper_map[zeros_like_leaf]-op96
˜
bprop.248:[CNode]242:2
bprop.248:[CNode]244:4bprop.248:[CNode]246:5bprop.248:[CNode]246:5"REF::S-Prim-MakeTuple:6:Default/S-Prim-MakeTuple-op97 bprop.2482
bprop.248:[CNode]246:5Pb&
S-Prim-MakeTuple:6S-Prim-MakeTuplebH
#S-Prim-hyper_map[zeros_like_leaf]:3!S-Prim-hyper_map[zeros_like_leaf]h
0.1.1 MindSpore*2.0.0:½
}'get_bprop_less_equal.1208:[CNode]1209:1'get_bprop_less_equal.1208:[CNode]1209:1"REF::bprop.1210:Default/bprop.1210-op943get_bprop_less_equal.1208*
get_bprop_less_equal.1208:self*
get_bprop_less_equal.1208:x*
get_bprop_less_equal.1208:y*
get_bprop_less_equal.1208:out*
get_bprop_less_equal.1208:dout2)
'get_bprop_less_equal.1208:[CNode]1209:1:@195a9bb3ae5c84fa15acaaecee42165ec0291a252277aa042e8d58559497b7c4J/grad_math_ops.pyB¶
²
get_bprop_less_equal.1208:xbprop.1210:[CNode]1211:2bprop.1210:[CNode]1211:2".REF::MetaFuncGraph::hyper_map[zeros_like_leaf]:/Default/S-Prim-hyper_map[zeros_like_leaf]-op944
²
get_bprop_less_equal.1208:ybprop.1210:[CNode]1212:3bprop.1210:[CNode]1212:3".REF::MetaFuncGraph::hyper_map[zeros_like_leaf]:/Default/S-Prim-hyper_map[zeros_like_leaf]-op945
¡
bprop.1210:[CNode]1211:2
bprop.1210:[CNode]1212:3bprop.1210:[CNode]1213:4bprop.1210:[CNode]1213:4"REF::S-Prim-MakeTuple:5:Default/S-Prim-MakeTuple-op946
bprop.12102
bprop.1210:[CNode]1213:4Pb&
S-Prim-MakeTuple:5S-Prim-MakeTupleh

View File

@ -1,19 +1,19 @@
0.1.1 MindSpore*2.0.0:§
jget_bprop_less.231:[CNode]237:1get_bprop_less.231:[CNode]237:1"REF::bprop.238:Default/bprop.238-op90get_bprop_less.231*
get_bprop_less.231:self*#
!get_bprop_less.231:[Parameter]233*#
!get_bprop_less.231:[Parameter]235*#
!get_bprop_less.231:[Parameter]239*#
!get_bprop_less.231:[Parameter]2402!
get_bprop_less.231:[CNode]237:1:@855051f3a6b3bfed341dd91b378a5e949a6e6fd6ab8d84d27e8a6f2d667dcc64J/grad_math_ops.pyB 
­
!get_bprop_less.231:[Parameter]233bprop.238:[CNode]232:2bprop.238:[CNode]232:2"(REF::S-Prim-hyper_map[zeros_like_leaf]:3:.Default/S-Prim-hyper_map[zeros_like_leaf]-op91
­
!get_bprop_less.231:[Parameter]235bprop.238:[CNode]234:4bprop.238:[CNode]234:4"(REF::S-Prim-hyper_map[zeros_like_leaf]:3:.Default/S-Prim-hyper_map[zeros_like_leaf]-op92
˜
bprop.238:[CNode]232:2
bprop.238:[CNode]234:4bprop.238:[CNode]236:5bprop.238:[CNode]236:5"REF::S-Prim-MakeTuple:6:Default/S-Prim-MakeTuple-op93 bprop.2382
bprop.238:[CNode]236:5PbH
#S-Prim-hyper_map[zeros_like_leaf]:3!S-Prim-hyper_map[zeros_like_leaf]b&
S-Prim-MakeTuple:6S-Prim-MakeTupleh
0.1.1 MindSpore*2.0.0:
q!get_bprop_less.1202:[CNode]1203:1!get_bprop_less.1202:[CNode]1203:1"REF::bprop.1204:Default/bprop.1204-op939get_bprop_less.1202*
get_bprop_less.1202:self*
get_bprop_less.1202:x*
get_bprop_less.1202:y*
get_bprop_less.1202:out*
get_bprop_less.1202:dout2#
!get_bprop_less.1202:[CNode]1203:1:@855051f3a6b3bfed341dd91b378a5e949a6e6fd6ab8d84d27e8a6f2d667dcc64J/grad_math_ops.pyBª
¬
get_bprop_less.1202:xbprop.1204:[CNode]1205:2bprop.1204:[CNode]1205:2".REF::MetaFuncGraph::hyper_map[zeros_like_leaf]:/Default/S-Prim-hyper_map[zeros_like_leaf]-op940
¬
get_bprop_less.1202:ybprop.1204:[CNode]1206:3bprop.1204:[CNode]1206:3".REF::MetaFuncGraph::hyper_map[zeros_like_leaf]:/Default/S-Prim-hyper_map[zeros_like_leaf]-op941
¡
bprop.1204:[CNode]1205:2
bprop.1204:[CNode]1206:3bprop.1204:[CNode]1207:4bprop.1204:[CNode]1207:4"REF::S-Prim-MakeTuple:5:Default/S-Prim-MakeTuple-op942
bprop.12042
bprop.1204:[CNode]1207:4Pb&
S-Prim-MakeTuple:5S-Prim-MakeTupleh

View File

@ -1,23 +1,23 @@
0.1.1 MindSpore*2.0.0:þ
t$get_bprop_lin_space.128:[CNode]136:1$get_bprop_lin_space.128:[CNode]136:1"REF::bprop.137:Default/bprop.137-op49get_bprop_lin_space.128*
get_bprop_lin_space.128:self*(
&get_bprop_lin_space.128:[Parameter]130*(
&get_bprop_lin_space.128:[Parameter]132*(
&get_bprop_lin_space.128:[Parameter]134*(
&get_bprop_lin_space.128:[Parameter]138*(
&get_bprop_lin_space.128:[Parameter]1392&
$get_bprop_lin_space.128:[CNode]136:1:@bc0807c9b06900b399e10848a19e11801e4b960c19aee89d55a886d90302c7e2J/grad_math_ops.pyB÷
²
&get_bprop_lin_space.128:[Parameter]130bprop.137:[CNode]129:2bprop.137:[CNode]129:2"(REF::S-Prim-hyper_map[zeros_like_leaf]:3:.Default/S-Prim-hyper_map[zeros_like_leaf]-op50
²
&get_bprop_lin_space.128:[Parameter]132bprop.137:[CNode]131:4bprop.137:[CNode]131:4"(REF::S-Prim-hyper_map[zeros_like_leaf]:3:.Default/S-Prim-hyper_map[zeros_like_leaf]-op51
²
&get_bprop_lin_space.128:[Parameter]134bprop.137:[CNode]133:5bprop.137:[CNode]133:5"(REF::S-Prim-hyper_map[zeros_like_leaf]:3:.Default/S-Prim-hyper_map[zeros_like_leaf]-op52
°
bprop.137:[CNode]129:2
bprop.137:[CNode]131:4
bprop.137:[CNode]133:5bprop.137:[CNode]135:6bprop.137:[CNode]135:6"REF::S-Prim-MakeTuple:7:Default/S-Prim-MakeTuple-op53 bprop.1372
bprop.137:[CNode]135:6Pb&
S-Prim-MakeTuple:7S-Prim-MakeTuplebH
#S-Prim-hyper_map[zeros_like_leaf]:3!S-Prim-hyper_map[zeros_like_leaf]h
0.1.1 MindSpore*2.0.0:Û
{&get_bprop_lin_space.1253:[CNode]1254:1&get_bprop_lin_space.1253:[CNode]1254:1"REF::bprop.1255:Default/bprop.1255-op972get_bprop_lin_space.1253*
get_bprop_lin_space.1253:self*
get_bprop_lin_space.1253:start*
get_bprop_lin_space.1253:stop*
get_bprop_lin_space.1253:num*
get_bprop_lin_space.1253:out*
get_bprop_lin_space.1253:dout2(
&get_bprop_lin_space.1253:[CNode]1254:1:@bc0807c9b06900b399e10848a19e11801e4b960c19aee89d55a886d90302c7e2J/grad_math_ops.pyB
µ
get_bprop_lin_space.1253:startbprop.1255:[CNode]1256:2bprop.1255:[CNode]1256:2".REF::MetaFuncGraph::hyper_map[zeros_like_leaf]:/Default/S-Prim-hyper_map[zeros_like_leaf]-op973
´
get_bprop_lin_space.1253:stopbprop.1255:[CNode]1257:3bprop.1255:[CNode]1257:3".REF::MetaFuncGraph::hyper_map[zeros_like_leaf]:/Default/S-Prim-hyper_map[zeros_like_leaf]-op974
³
get_bprop_lin_space.1253:numbprop.1255:[CNode]1258:4bprop.1255:[CNode]1258:4".REF::MetaFuncGraph::hyper_map[zeros_like_leaf]:/Default/S-Prim-hyper_map[zeros_like_leaf]-op975
»
bprop.1255:[CNode]1256:2
bprop.1255:[CNode]1257:3
bprop.1255:[CNode]1258:4bprop.1255:[CNode]1259:5bprop.1255:[CNode]1259:5"REF::S-Prim-MakeTuple:6:Default/S-Prim-MakeTuple-op976
bprop.12552
bprop.1255:[CNode]1259:5Pb&
S-Prim-MakeTuple:6S-Prim-MakeTupleh

View File

@ -1,14 +1,13 @@
0.1.1 MindSpore*2.0.0:Â
0.1.1 MindSpore*2.0.0:Ý
¹
bprop_load.1335:u_monadbprop_load.1335:[CNode]1336:1bprop_load.1335:[CNode]1336:1".REF::MetaFuncGraph::hyper_map[zeros_like_leaf]:0Default/S-Prim-hyper_map[zeros_like_leaf]-op1035
<EFBFBD>
bprop_load.484:u_monadbprop_load.484:[CNode]485:1bprop_load.484:[CNode]485:1"(REF::S-Prim-hyper_map[zeros_like_leaf]:2:/Default/S-Prim-hyper_map[zeros_like_leaf]-op209
¥
bprop_load.484:dout
bprop_load.484:[CNode]485:1bprop_load.484:[CNode]486:3bprop_load.484:[CNode]486:3"REF::S-Prim-MakeTuple:4:Default/S-Prim-MakeTuple-op210bprop_load.484*
bprop_load.484:param*
bprop_load.484:u_monad*
bprop_load.484:out*
bprop_load.484:dout2
bprop_load.484:[CNode]486:3:@47597c55706a1997a052c2a43529f81b59c35e1457ccaf4604392be911ca2023J/grad_implementations.pyPbH
#S-Prim-hyper_map[zeros_like_leaf]:2!S-Prim-hyper_map[zeros_like_leaf]b&
S-Prim-MakeTuple:4S-Prim-MakeTupleh
bprop_load.1335:dout
bprop_load.1335:[CNode]1336:1bprop_load.1335:[CNode]1337:2bprop_load.1335:[CNode]1337:2"REF::S-Prim-MakeTuple:3:Default/S-Prim-MakeTuple-op1036bprop_load.1335*
bprop_load.1335:param*
bprop_load.1335:u_monad*
bprop_load.1335:out*
bprop_load.1335:dout2
bprop_load.1335:[CNode]1337:2:@47597c55706a1997a052c2a43529f81b59c35e1457ccaf4604392be911ca2023J/grad_implementations.pyPb&
S-Prim-MakeTuple:3S-Prim-MakeTupleh

View File

@ -1,19 +1,19 @@
0.1.1 MindSpore*2.0.0:æ
x&get_bprop_logical_and.251:[CNode]257:1&get_bprop_logical_and.251:[CNode]257:1"REF::bprop.258:Default/bprop.258-op98get_bprop_logical_and.251*
get_bprop_logical_and.251:self**
(get_bprop_logical_and.251:[Parameter]253**
(get_bprop_logical_and.251:[Parameter]255**
(get_bprop_logical_and.251:[Parameter]259**
(get_bprop_logical_and.251:[Parameter]2602(
&get_bprop_logical_and.251:[CNode]257:1:@86e947b0c2da557264e4e501d89a6f9eb26634a7501951d7979b45184307e497J/grad_math_ops.pyB°
´
(get_bprop_logical_and.251:[Parameter]253bprop.258:[CNode]252:2bprop.258:[CNode]252:2"(REF::S-Prim-hyper_map[zeros_like_leaf]:3:.Default/S-Prim-hyper_map[zeros_like_leaf]-op99
µ
(get_bprop_logical_and.251:[Parameter]255bprop.258:[CNode]254:4bprop.258:[CNode]254:4"(REF::S-Prim-hyper_map[zeros_like_leaf]:3:/Default/S-Prim-hyper_map[zeros_like_leaf]-op100

bprop.258:[CNode]252:2
bprop.258:[CNode]254:4bprop.258:[CNode]256:5bprop.258:[CNode]256:5"REF::S-Prim-MakeTuple:6:Default/S-Prim-MakeTuple-op101 bprop.2582
bprop.258:[CNode]256:5PbH
#S-Prim-hyper_map[zeros_like_leaf]:3!S-Prim-hyper_map[zeros_like_leaf]b&
S-Prim-MakeTuple:6S-Prim-MakeTupleh
0.1.1 MindSpore*2.0.0:Æ
(get_bprop_logical_and.1219:[CNode]1220:1(get_bprop_logical_and.1219:[CNode]1220:1"REF::bprop.1221:Default/bprop.1221-op950get_bprop_logical_and.1219*!
get_bprop_logical_and.1219:self*
get_bprop_logical_and.1219:x*
get_bprop_logical_and.1219:y*
get_bprop_logical_and.1219:out*!
get_bprop_logical_and.1219:dout2*
(get_bprop_logical_and.1219:[CNode]1220:1:@86e947b0c2da557264e4e501d89a6f9eb26634a7501951d7979b45184307e497J/grad_math_ops.pyB¸
³
get_bprop_logical_and.1219:xbprop.1221:[CNode]1222:2bprop.1221:[CNode]1222:2".REF::MetaFuncGraph::hyper_map[zeros_like_leaf]:/Default/S-Prim-hyper_map[zeros_like_leaf]-op951
³
get_bprop_logical_and.1219:ybprop.1221:[CNode]1223:3bprop.1221:[CNode]1223:3".REF::MetaFuncGraph::hyper_map[zeros_like_leaf]:/Default/S-Prim-hyper_map[zeros_like_leaf]-op952
¡
bprop.1221:[CNode]1222:2
bprop.1221:[CNode]1223:3bprop.1221:[CNode]1224:4bprop.1221:[CNode]1224:4"REF::S-Prim-MakeTuple:5:Default/S-Prim-MakeTuple-op953
bprop.12212
bprop.1221:[CNode]1224:4Pb&
S-Prim-MakeTuple:5S-Prim-MakeTupleh

View File

@ -1,15 +1,15 @@
0.1.1 MindSpore*2.0.0:º
x&get_bprop_logical_not.112:[CNode]116:1&get_bprop_logical_not.112:[CNode]116:1"REF::bprop.117:Default/bprop.117-op43get_bprop_logical_not.112*
get_bprop_logical_not.112:self**
(get_bprop_logical_not.112:[Parameter]114**
(get_bprop_logical_not.112:[Parameter]118**
(get_bprop_logical_not.112:[Parameter]1192(
&get_bprop_logical_not.112:[CNode]116:1:@f86b4e83282b7bf8e94fe14c32a5ae06e0c6dcef09201ccc5cd2c2807fb1f01eJ/grad_math_ops.pyBß
´
(get_bprop_logical_not.112:[Parameter]114bprop.117:[CNode]113:2bprop.117:[CNode]113:2"(REF::S-Prim-hyper_map[zeros_like_leaf]:3:.Default/S-Prim-hyper_map[zeros_like_leaf]-op44

bprop.117:[CNode]113:2bprop.117:[CNode]115:4bprop.117:[CNode]115:4"REF::S-Prim-MakeTuple:5:Default/S-Prim-MakeTuple-op45 bprop.1172
bprop.117:[CNode]115:4PbH
#S-Prim-hyper_map[zeros_like_leaf]:3!S-Prim-hyper_map[zeros_like_leaf]b&
S-Prim-MakeTuple:5S-Prim-MakeTupleh
0.1.1 MindSpore*2.0.0:¦
(get_bprop_logical_not.1214:[CNode]1215:1(get_bprop_logical_not.1214:[CNode]1215:1"REF::bprop.1216:Default/bprop.1216-op947get_bprop_logical_not.1214*!
get_bprop_logical_not.1214:self*
get_bprop_logical_not.1214:x*
get_bprop_logical_not.1214:out*!
get_bprop_logical_not.1214:dout2*
(get_bprop_logical_not.1214:[CNode]1215:1:@f86b4e83282b7bf8e94fe14c32a5ae06e0c6dcef09201ccc5cd2c2807fb1f01eJ/grad_math_ops.pyBè
³
get_bprop_logical_not.1214:xbprop.1216:[CNode]1217:2bprop.1216:[CNode]1217:2".REF::MetaFuncGraph::hyper_map[zeros_like_leaf]:/Default/S-Prim-hyper_map[zeros_like_leaf]-op948

bprop.1216:[CNode]1217:2bprop.1216:[CNode]1218:3bprop.1216:[CNode]1218:3"REF::S-Prim-MakeTuple:4:Default/S-Prim-MakeTuple-op949
bprop.12162
bprop.1216:[CNode]1218:3Pb&
S-Prim-MakeTuple:4S-Prim-MakeTupleh

View File

@ -1,19 +1,19 @@
0.1.1 MindSpore*2.0.0:Þ
w%get_bprop_logical_or.261:[CNode]267:1%get_bprop_logical_or.261:[CNode]267:1"REF::bprop.268:Default/bprop.268-op102get_bprop_logical_or.261*
get_bprop_logical_or.261:self*)
'get_bprop_logical_or.261:[Parameter]263*)
'get_bprop_logical_or.261:[Parameter]265*)
'get_bprop_logical_or.261:[Parameter]269*)
'get_bprop_logical_or.261:[Parameter]2702'
%get_bprop_logical_or.261:[CNode]267:1:@906051cca7d6d4b88a09a10b80bb5f0541066115667786dd7364cba0508be483J/grad_math_ops.pyB¯
´
'get_bprop_logical_or.261:[Parameter]263bprop.268:[CNode]262:2bprop.268:[CNode]262:2"(REF::S-Prim-hyper_map[zeros_like_leaf]:3:/Default/S-Prim-hyper_map[zeros_like_leaf]-op103
´
'get_bprop_logical_or.261:[Parameter]265bprop.268:[CNode]264:4bprop.268:[CNode]264:4"(REF::S-Prim-hyper_map[zeros_like_leaf]:3:/Default/S-Prim-hyper_map[zeros_like_leaf]-op104

bprop.268:[CNode]262:2
bprop.268:[CNode]264:4bprop.268:[CNode]266:5bprop.268:[CNode]266:5"REF::S-Prim-MakeTuple:6:Default/S-Prim-MakeTuple-op105 bprop.2682
bprop.268:[CNode]266:5Pb&
S-Prim-MakeTuple:6S-Prim-MakeTuplebH
#S-Prim-hyper_map[zeros_like_leaf]:3!S-Prim-hyper_map[zeros_like_leaf]h
0.1.1 MindSpore*2.0.0:½
}'get_bprop_logical_or.1225:[CNode]1226:1'get_bprop_logical_or.1225:[CNode]1226:1"REF::bprop.1227:Default/bprop.1227-op954get_bprop_logical_or.1225*
get_bprop_logical_or.1225:self*
get_bprop_logical_or.1225:x*
get_bprop_logical_or.1225:y*
get_bprop_logical_or.1225:out*
get_bprop_logical_or.1225:dout2)
'get_bprop_logical_or.1225:[CNode]1226:1:@906051cca7d6d4b88a09a10b80bb5f0541066115667786dd7364cba0508be483J/grad_math_ops.pyB¶
²
get_bprop_logical_or.1225:xbprop.1227:[CNode]1228:2bprop.1227:[CNode]1228:2".REF::MetaFuncGraph::hyper_map[zeros_like_leaf]:/Default/S-Prim-hyper_map[zeros_like_leaf]-op955
²
get_bprop_logical_or.1225:ybprop.1227:[CNode]1229:3bprop.1227:[CNode]1229:3".REF::MetaFuncGraph::hyper_map[zeros_like_leaf]:/Default/S-Prim-hyper_map[zeros_like_leaf]-op956
¡
bprop.1227:[CNode]1228:2
bprop.1227:[CNode]1229:3bprop.1227:[CNode]1230:4bprop.1227:[CNode]1230:4"REF::S-Prim-MakeTuple:5:Default/S-Prim-MakeTuple-op957
bprop.12272
bprop.1227:[CNode]1230:4Pb&
S-Prim-MakeTuple:5S-Prim-MakeTupleh

View File

@ -1,19 +1,19 @@
0.1.1 MindSpore*2.0.0:Ô
t$get_bprop_not_equal.201:[CNode]207:1$get_bprop_not_equal.201:[CNode]207:1"REF::bprop.208:Default/bprop.208-op78get_bprop_not_equal.201*
get_bprop_not_equal.201:self*(
&get_bprop_not_equal.201:[Parameter]203*(
&get_bprop_not_equal.201:[Parameter]205*(
&get_bprop_not_equal.201:[Parameter]209*(
&get_bprop_not_equal.201:[Parameter]2102&
$get_bprop_not_equal.201:[CNode]207:1:@99a6856f5e741d2df2044670d2cbbc794f2e64280d424649582ba5552f690f20J/grad_math_ops.pyBª
²
&get_bprop_not_equal.201:[Parameter]203bprop.208:[CNode]202:2bprop.208:[CNode]202:2"(REF::S-Prim-hyper_map[zeros_like_leaf]:3:.Default/S-Prim-hyper_map[zeros_like_leaf]-op79
²
&get_bprop_not_equal.201:[Parameter]205bprop.208:[CNode]204:4bprop.208:[CNode]204:4"(REF::S-Prim-hyper_map[zeros_like_leaf]:3:.Default/S-Prim-hyper_map[zeros_like_leaf]-op80
˜
bprop.208:[CNode]202:2
bprop.208:[CNode]204:4bprop.208:[CNode]206:5bprop.208:[CNode]206:5"REF::S-Prim-MakeTuple:6:Default/S-Prim-MakeTuple-op81 bprop.2082
bprop.208:[CNode]206:5Pb&
S-Prim-MakeTuple:6S-Prim-MakeTuplebH
#S-Prim-hyper_map[zeros_like_leaf]:3!S-Prim-hyper_map[zeros_like_leaf]h
0.1.1 MindSpore*2.0.0:´
{&get_bprop_not_equal.1178:[CNode]1179:1&get_bprop_not_equal.1178:[CNode]1179:1"REF::bprop.1180:Default/bprop.1180-op923get_bprop_not_equal.1178*
get_bprop_not_equal.1178:self*
get_bprop_not_equal.1178:x*
get_bprop_not_equal.1178:y*
get_bprop_not_equal.1178:out*
get_bprop_not_equal.1178:dout2(
&get_bprop_not_equal.1178:[CNode]1179:1:@99a6856f5e741d2df2044670d2cbbc794f2e64280d424649582ba5552f690f20J/grad_math_ops.pyB´
±
get_bprop_not_equal.1178:xbprop.1180:[CNode]1181:2bprop.1180:[CNode]1181:2".REF::MetaFuncGraph::hyper_map[zeros_like_leaf]:/Default/S-Prim-hyper_map[zeros_like_leaf]-op924
±
get_bprop_not_equal.1178:ybprop.1180:[CNode]1182:3bprop.1180:[CNode]1182:3".REF::MetaFuncGraph::hyper_map[zeros_like_leaf]:/Default/S-Prim-hyper_map[zeros_like_leaf]-op925
¡
bprop.1180:[CNode]1181:2
bprop.1180:[CNode]1182:3bprop.1180:[CNode]1183:4bprop.1180:[CNode]1183:4"REF::S-Prim-MakeTuple:5:Default/S-Prim-MakeTuple-op926
bprop.11802
bprop.1180:[CNode]1183:4Pb&
S-Prim-MakeTuple:5S-Prim-MakeTupleh

View File

@ -1,27 +1,27 @@
0.1.1 MindSpore*2.0.0:
n!get_bprop_onehot.150:[CNode]160:1!get_bprop_onehot.150:[CNode]160:1"REF::bprop.161:Default/bprop.161-op58get_bprop_onehot.150*
get_bprop_onehot.150:self*%
#get_bprop_onehot.150:[Parameter]152*%
#get_bprop_onehot.150:[Parameter]154*%
#get_bprop_onehot.150:[Parameter]156*%
#get_bprop_onehot.150:[Parameter]158*%
#get_bprop_onehot.150:[Parameter]162*%
#get_bprop_onehot.150:[Parameter]1632#
!get_bprop_onehot.150:[CNode]160:1:@d8b45eb97dcd48783ecf23d84db5a6499101689241dbcd1bf7247b5911b86072J/grad_nn_ops.pyB¸
¯
#get_bprop_onehot.150:[Parameter]152bprop.161:[CNode]151:2bprop.161:[CNode]151:2"(REF::S-Prim-hyper_map[zeros_like_leaf]:3:.Default/S-Prim-hyper_map[zeros_like_leaf]-op59
¯
#get_bprop_onehot.150:[Parameter]154bprop.161:[CNode]153:4bprop.161:[CNode]153:4"(REF::S-Prim-hyper_map[zeros_like_leaf]:3:.Default/S-Prim-hyper_map[zeros_like_leaf]-op60
¯
#get_bprop_onehot.150:[Parameter]156bprop.161:[CNode]155:5bprop.161:[CNode]155:5"(REF::S-Prim-hyper_map[zeros_like_leaf]:3:.Default/S-Prim-hyper_map[zeros_like_leaf]-op61
¯
#get_bprop_onehot.150:[Parameter]158bprop.161:[CNode]157:6bprop.161:[CNode]157:6"(REF::S-Prim-hyper_map[zeros_like_leaf]:3:.Default/S-Prim-hyper_map[zeros_like_leaf]-op62
È
bprop.161:[CNode]151:2
bprop.161:[CNode]153:4
bprop.161:[CNode]155:5
bprop.161:[CNode]157:6bprop.161:[CNode]159:7bprop.161:[CNode]159:7"REF::S-Prim-MakeTuple:8:Default/S-Prim-MakeTuple-op63 bprop.1612
bprop.161:[CNode]159:7Pb&
S-Prim-MakeTuple:8S-Prim-MakeTuplebH
#S-Prim-hyper_map[zeros_like_leaf]:3!S-Prim-hyper_map[zeros_like_leaf]h
0.1.1 MindSpore*2.0.0:ç
v#get_bprop_onehot.1289:[CNode]1290:1#get_bprop_onehot.1289:[CNode]1290:1"REF::bprop.1291:Default/bprop.1291-op1002get_bprop_onehot.1289*
get_bprop_onehot.1289:self*
get_bprop_onehot.1289:indices*
get_bprop_onehot.1289:depth*
get_bprop_onehot.1289:on_value*!
get_bprop_onehot.1289:off_value*
get_bprop_onehot.1289:out*
get_bprop_onehot.1289:dout2%
#get_bprop_onehot.1289:[CNode]1290:1:@d8b45eb97dcd48783ecf23d84db5a6499101689241dbcd1bf7247b5911b86072J/grad_nn_ops.pyBâ
µ
get_bprop_onehot.1289:indicesbprop.1291:[CNode]1292:2bprop.1291:[CNode]1292:2".REF::MetaFuncGraph::hyper_map[zeros_like_leaf]:0Default/S-Prim-hyper_map[zeros_like_leaf]-op1003
³
get_bprop_onehot.1289:depthbprop.1291:[CNode]1293:3bprop.1291:[CNode]1293:3".REF::MetaFuncGraph::hyper_map[zeros_like_leaf]:0Default/S-Prim-hyper_map[zeros_like_leaf]-op1004

get_bprop_onehot.1289:on_valuebprop.1291:[CNode]1294:4bprop.1291:[CNode]1294:4".REF::MetaFuncGraph::hyper_map[zeros_like_leaf]:0Default/S-Prim-hyper_map[zeros_like_leaf]-op1005
·
get_bprop_onehot.1289:off_valuebprop.1291:[CNode]1295:5bprop.1291:[CNode]1295:5".REF::MetaFuncGraph::hyper_map[zeros_like_leaf]:0Default/S-Prim-hyper_map[zeros_like_leaf]-op1006
Ö
bprop.1291:[CNode]1292:2
bprop.1291:[CNode]1293:3
bprop.1291:[CNode]1294:4
bprop.1291:[CNode]1295:5bprop.1291:[CNode]1296:6bprop.1291:[CNode]1296:6"REF::S-Prim-MakeTuple:7:Default/S-Prim-MakeTuple-op1007
bprop.12912
bprop.1291:[CNode]1296:6Pb&
S-Prim-MakeTuple:7S-Prim-MakeTupleh

View File

@ -1,15 +1,14 @@
0.1.1 MindSpore*2.0.0:
l!get_bprop_oneslike.27:[CNode]31:1!get_bprop_oneslike.27:[CNode]31:1" REF::bprop.32:Default/bprop.32-op11get_bprop_oneslike.27*
get_bprop_oneslike.27:self*%
#get_bprop_oneslike.27:[Parameter]29*%
#get_bprop_oneslike.27:[Parameter]33*%
#get_bprop_oneslike.27:[Parameter]342#
!get_bprop_oneslike.27:[CNode]31:1:@5264fe3eca85a33103c184a7ac8e24f9c4c076145c9fae90aaade34268e36302J/grad_array_ops.pyBÌ
0.1.1 MindSpore*2.0.0:
s#get_bprop_oneslike.996:[CNode]997:1#get_bprop_oneslike.996:[CNode]997:1"REF::bprop.998:Default/bprop.998-op799get_bprop_oneslike.996*
get_bprop_oneslike.996:self*
get_bprop_oneslike.996:x*
get_bprop_oneslike.996:out*
get_bprop_oneslike.996:dout2%
#get_bprop_oneslike.996:[CNode]997:1:@5264fe3eca85a33103c184a7ac8e24f9c4c076145c9fae90aaade34268e36302J/grad_array_ops.pyBÚ
<EFBFBD>
#get_bprop_oneslike.27:[Parameter]29bprop.32:[CNode]28:2bprop.32:[CNode]28:2"(REF::S-Prim-hyper_map[zeros_like_leaf]:3:.Default/S-Prim-hyper_map[zeros_like_leaf]-op12
z
bprop.32:[CNode]28:2bprop.32:[CNode]30:4bprop.32:[CNode]30:4"REF::S-Prim-MakeTuple:5:Default/S-Prim-MakeTuple-op13bprop.322
bprop.32:[CNode]30:4Pb&
S-Prim-MakeTuple:5S-Prim-MakeTuplebH
#S-Prim-hyper_map[zeros_like_leaf]:3!S-Prim-hyper_map[zeros_like_leaf]h
get_bprop_oneslike.996:xbprop.998:[CNode]999:2bprop.998:[CNode]999:2".REF::MetaFuncGraph::hyper_map[zeros_like_leaf]:/Default/S-Prim-hyper_map[zeros_like_leaf]-op800
ƒ
bprop.998:[CNode]999:2bprop.998:[CNode]1000:3bprop.998:[CNode]1000:3"REF::S-Prim-MakeTuple:4:Default/S-Prim-MakeTuple-op801 bprop.9982
bprop.998:[CNode]1000:3Pb&
S-Prim-MakeTuple:4S-Prim-MakeTupleh

View File

@ -1,23 +1,22 @@
0.1.1 MindSpore*2.0.0:Â
eget_bprop_range.15:[CNode]23:1get_bprop_range.15:[CNode]23:1" REF::bprop.24:Default/bprop.24-op6get_bprop_range.15*
get_bprop_range.15:self*"
get_bprop_range.15:[Parameter]17*"
get_bprop_range.15:[Parameter]19*"
get_bprop_range.15:[Parameter]21*"
get_bprop_range.15:[Parameter]25*"
get_bprop_range.15:[Parameter]262
get_bprop_range.15:[CNode]23:1:@a3322e1dd3c5140fb4463ac7a72104474caa3c302ff4f432e5536154634caf73J/grad_array_ops.pyBÉ
§
get_bprop_range.15:[Parameter]17bprop.24:[CNode]16:2bprop.24:[CNode]16:2"(REF::S-Prim-hyper_map[zeros_like_leaf]:3:-Default/S-Prim-hyper_map[zeros_like_leaf]-op7
§
get_bprop_range.15:[Parameter]19bprop.24:[CNode]18:4bprop.24:[CNode]18:4"(REF::S-Prim-hyper_map[zeros_like_leaf]:3:-Default/S-Prim-hyper_map[zeros_like_leaf]-op8
§
get_bprop_range.15:[Parameter]21bprop.24:[CNode]20:5bprop.24:[CNode]20:5"(REF::S-Prim-hyper_map[zeros_like_leaf]:3:-Default/S-Prim-hyper_map[zeros_like_leaf]-op9
¦
bprop.24:[CNode]16:2
bprop.24:[CNode]18:4
bprop.24:[CNode]20:5bprop.24:[CNode]22:6bprop.24:[CNode]22:6"REF::S-Prim-MakeTuple:7:Default/S-Prim-MakeTuple-op10bprop.242
bprop.24:[CNode]22:6PbH
#S-Prim-hyper_map[zeros_like_leaf]:3!S-Prim-hyper_map[zeros_like_leaf]b&
S-Prim-MakeTuple:7S-Prim-MakeTupleh
0.1.1 MindSpore*2.0.0:¨
m get_bprop_range.912:[CNode]913:1 get_bprop_range.912:[CNode]913:1"REF::bprop.914:Default/bprop.914-op739get_bprop_range.912*
get_bprop_range.912:self*
get_bprop_range.912:start*
get_bprop_range.912:limit*
get_bprop_range.912:delta*
get_bprop_range.912:out*
get_bprop_range.912:dout2"
get_bprop_range.912:[CNode]913:1:@a3322e1dd3c5140fb4463ac7a72104474caa3c302ff4f432e5536154634caf73J/grad_array_ops.pyBæ
¬
get_bprop_range.912:startbprop.914:[CNode]915:2bprop.914:[CNode]915:2".REF::MetaFuncGraph::hyper_map[zeros_like_leaf]:/Default/S-Prim-hyper_map[zeros_like_leaf]-op740
¬
get_bprop_range.912:limitbprop.914:[CNode]916:3bprop.914:[CNode]916:3".REF::MetaFuncGraph::hyper_map[zeros_like_leaf]:/Default/S-Prim-hyper_map[zeros_like_leaf]-op741
¬
get_bprop_range.912:deltabprop.914:[CNode]917:4bprop.914:[CNode]917:4".REF::MetaFuncGraph::hyper_map[zeros_like_leaf]:/Default/S-Prim-hyper_map[zeros_like_leaf]-op742
±
bprop.914:[CNode]915:2
bprop.914:[CNode]916:3
bprop.914:[CNode]917:4bprop.914:[CNode]918:5bprop.914:[CNode]918:5"REF::S-Prim-MakeTuple:6:Default/S-Prim-MakeTuple-op743 bprop.9142
bprop.914:[CNode]918:5Pb&
S-Prim-MakeTuple:6S-Prim-MakeTupleh

View File

@ -1,15 +1,14 @@
0.1.1 MindSpore*2.0.0:„
kget_bprop_rank.327:[CNode]331:1get_bprop_rank.327:[CNode]331:1"REF::bprop.332:Default/bprop.332-op129get_bprop_rank.327*
get_bprop_rank.327:self*#
!get_bprop_rank.327:[Parameter]329*#
!get_bprop_rank.327:[Parameter]333*#
!get_bprop_rank.327:[Parameter]3342!
get_bprop_rank.327:[CNode]331:1:@6fb4de0c98be9a80f4385cee53e6ee2974f10e31256cebf1176c8e664220a5fcJ/grad_array_ops.pyBÚ
®
!get_bprop_rank.327:[Parameter]329bprop.332:[CNode]328:2bprop.332:[CNode]328:2"(REF::S-Prim-hyper_map[zeros_like_leaf]:3:/Default/S-Prim-hyper_map[zeros_like_leaf]-op130
<EFBFBD>
bprop.332:[CNode]328:2bprop.332:[CNode]330:4bprop.332:[CNode]330:4"REF::S-Prim-MakeTuple:5:Default/S-Prim-MakeTuple-op131 bprop.3322
bprop.332:[CNode]330:4PbH
#S-Prim-hyper_map[zeros_like_leaf]:3!S-Prim-hyper_map[zeros_like_leaf]b&
S-Prim-MakeTuple:5S-Prim-MakeTupleh
0.1.1 MindSpore*2.0.0:Ô
dget_bprop_rank.31:[CNode]32:1get_bprop_rank.31:[CNode]32:1" REF::bprop.33:Default/bprop.33-op21get_bprop_rank.31*
get_bprop_rank.31:self*
get_bprop_rank.31:x*
get_bprop_rank.31:out*
get_bprop_rank.31:dout2
get_bprop_rank.31:[CNode]32:1:@6fb4de0c98be9a80f4385cee53e6ee2974f10e31256cebf1176c8e664220a5fcJ/grad_array_ops.pyBÂ
¡
get_bprop_rank.31:xbprop.33:[CNode]34:2bprop.33:[CNode]34:2".REF::MetaFuncGraph::hyper_map[zeros_like_leaf]:.Default/S-Prim-hyper_map[zeros_like_leaf]-op22
z
bprop.33:[CNode]34:2bprop.33:[CNode]35:3bprop.33:[CNode]35:3"REF::S-Prim-MakeTuple:4:Default/S-Prim-MakeTuple-op23bprop.332
bprop.33:[CNode]35:3Pb&
S-Prim-MakeTuple:4S-Prim-MakeTupleh

View File

@ -1,16 +1,17 @@
0.1.1 MindSpore*2.0.0:ž
]get_bprop_relu.1:[CNode]5:1get_bprop_relu.1:[CNode]5:1" REF::bprop.6:Default/bprop.6-op0
¼get_bprop_relu.1:input_grad:2get_bprop_relu.1:input_grad:2";REF::ClassType::mindspore.ops.operations._grad_ops.ReluGrad:?Default/class 'mindspore.ops.operations._grad_ops.ReluGrad'-op1get_bprop_relu.1*
get_bprop_relu.1:self*
get_bprop_relu.1:[Parameter]7*
get_bprop_relu.1:[Parameter]3*
get_bprop_relu.1:[Parameter]22
get_bprop_relu.1:[CNode]5:1:@92fe953ca276bba8b43b979895a017d6283e879df08b1a28bbae49b041d910b5J/grad_nn_ops.pyB
0.1.1 MindSpore*2.0.0:³
q!get_bprop_relu.1273:[CNode]1274:1!get_bprop_relu.1273:[CNode]1274:1"REF::bprop.1275:Default/bprop.1275-op987
Ä get_bprop_relu.1273:input_grad:2 get_bprop_relu.1273:input_grad:2";REF::ClassType::mindspore.ops.operations._grad_ops.ReluGrad:ADefault/class 'mindspore.ops.operations._grad_ops.ReluGrad'-op988get_bprop_relu.1273*
get_bprop_relu.1273:self*
get_bprop_relu.1273:x*
get_bprop_relu.1273:out*
get_bprop_relu.1273:dout2#
!get_bprop_relu.1273:[CNode]1274:1:@92fe953ca276bba8b43b979895a017d6283e879df08b1a28bbae49b041d910b5J/grad_nn_ops.pyB¬
<EFBFBD>
get_bprop_relu.1:[Parameter]2
get_bprop_relu.1:[Parameter]3 bprop.6:dx:3 bprop.6:dx:3""REF::get_bprop_relu.1:input_grad:2:2
m
bprop.6:dx:3bprop.6:[CNode]4:4bprop.6:[CNode]4:4"REF::S-Prim-MakeTuple:5:Default/S-Prim-MakeTuple-op3bprop.62
bprop.6:[CNode]4:4Pb&
get_bprop_relu.1273:dout
get_bprop_relu.1273:outbprop.1275:dx:3bprop.1275:dx:3"%REF::get_bprop_relu.1273:input_grad:2:989
~
bprop.1275:dx:3bprop.1275:[CNode]1276:4bprop.1275:[CNode]1276:4"REF::S-Prim-MakeTuple:5:Default/S-Prim-MakeTuple-op990
bprop.12752
bprop.1275:[CNode]1276:4Pb&
S-Prim-MakeTuple:5S-Prim-MakeTupleh

View File

@ -1,19 +1,19 @@
0.1.1 MindSpore*2.0.0:Õ
u$get_bprop_reduceall.271:[CNode]277:1$get_bprop_reduceall.271:[CNode]277:1"REF::bprop.278:Default/bprop.278-op106get_bprop_reduceall.271*
get_bprop_reduceall.271:self*(
&get_bprop_reduceall.271:[Parameter]273*(
&get_bprop_reduceall.271:[Parameter]275*(
&get_bprop_reduceall.271:[Parameter]279*(
&get_bprop_reduceall.271:[Parameter]2802&
$get_bprop_reduceall.271:[CNode]277:1:@8d1702a4756ecdcb4f6f8c220a40bff1c659645338a88a9c7d7026460b983d6aJ/grad_math_ops.pyB­
³
&get_bprop_reduceall.271:[Parameter]273bprop.278:[CNode]272:2bprop.278:[CNode]272:2"(REF::S-Prim-hyper_map[zeros_like_leaf]:3:/Default/S-Prim-hyper_map[zeros_like_leaf]-op107
³
&get_bprop_reduceall.271:[Parameter]275bprop.278:[CNode]274:4bprop.278:[CNode]274:4"(REF::S-Prim-hyper_map[zeros_like_leaf]:3:/Default/S-Prim-hyper_map[zeros_like_leaf]-op108

bprop.278:[CNode]272:2
bprop.278:[CNode]274:4bprop.278:[CNode]276:5bprop.278:[CNode]276:5"REF::S-Prim-MakeTuple:6:Default/S-Prim-MakeTuple-op109 bprop.2782
bprop.278:[CNode]276:5PbH
#S-Prim-hyper_map[zeros_like_leaf]:3!S-Prim-hyper_map[zeros_like_leaf]b&
S-Prim-MakeTuple:6S-Prim-MakeTupleh
0.1.1 MindSpore*2.0.0:·
{&get_bprop_reduceall.1145:[CNode]1146:1&get_bprop_reduceall.1145:[CNode]1146:1"REF::bprop.1147:Default/bprop.1147-op902get_bprop_reduceall.1145*
get_bprop_reduceall.1145:self*
get_bprop_reduceall.1145:x*
get_bprop_reduceall.1145:axis*
get_bprop_reduceall.1145:out*
get_bprop_reduceall.1145:dout2(
&get_bprop_reduceall.1145:[CNode]1146:1:@8d1702a4756ecdcb4f6f8c220a40bff1c659645338a88a9c7d7026460b983d6aJ/grad_math_ops.pyB·
±
get_bprop_reduceall.1145:xbprop.1147:[CNode]1148:2bprop.1147:[CNode]1148:2".REF::MetaFuncGraph::hyper_map[zeros_like_leaf]:/Default/S-Prim-hyper_map[zeros_like_leaf]-op903
´
get_bprop_reduceall.1145:axisbprop.1147:[CNode]1149:3bprop.1147:[CNode]1149:3".REF::MetaFuncGraph::hyper_map[zeros_like_leaf]:/Default/S-Prim-hyper_map[zeros_like_leaf]-op904
¡
bprop.1147:[CNode]1148:2
bprop.1147:[CNode]1149:3bprop.1147:[CNode]1150:4bprop.1147:[CNode]1150:4"REF::S-Prim-MakeTuple:5:Default/S-Prim-MakeTuple-op905
bprop.11472
bprop.1147:[CNode]1150:4Pb&
S-Prim-MakeTuple:5S-Prim-MakeTupleh

View File

@ -1,19 +1,19 @@
0.1.1 MindSpore*2.0.0:Õ
u$get_bprop_reduceany.281:[CNode]287:1$get_bprop_reduceany.281:[CNode]287:1"REF::bprop.288:Default/bprop.288-op110get_bprop_reduceany.281*
get_bprop_reduceany.281:self*(
&get_bprop_reduceany.281:[Parameter]283*(
&get_bprop_reduceany.281:[Parameter]285*(
&get_bprop_reduceany.281:[Parameter]289*(
&get_bprop_reduceany.281:[Parameter]2902&
$get_bprop_reduceany.281:[CNode]287:1:@e794cce26a10b7db92fd0a79d14a8f5643fb292e5ff54128c8b27b58a1dfa169J/grad_math_ops.pyB­
³
&get_bprop_reduceany.281:[Parameter]283bprop.288:[CNode]282:2bprop.288:[CNode]282:2"(REF::S-Prim-hyper_map[zeros_like_leaf]:3:/Default/S-Prim-hyper_map[zeros_like_leaf]-op111
³
&get_bprop_reduceany.281:[Parameter]285bprop.288:[CNode]284:4bprop.288:[CNode]284:4"(REF::S-Prim-hyper_map[zeros_like_leaf]:3:/Default/S-Prim-hyper_map[zeros_like_leaf]-op112

bprop.288:[CNode]282:2
bprop.288:[CNode]284:4bprop.288:[CNode]286:5bprop.288:[CNode]286:5"REF::S-Prim-MakeTuple:6:Default/S-Prim-MakeTuple-op113 bprop.2882
bprop.288:[CNode]286:5PbH
#S-Prim-hyper_map[zeros_like_leaf]:3!S-Prim-hyper_map[zeros_like_leaf]b&
S-Prim-MakeTuple:6S-Prim-MakeTupleh
0.1.1 MindSpore*2.0.0:·
{&get_bprop_reduceany.1151:[CNode]1152:1&get_bprop_reduceany.1151:[CNode]1152:1"REF::bprop.1153:Default/bprop.1153-op906get_bprop_reduceany.1151*
get_bprop_reduceany.1151:self*
get_bprop_reduceany.1151:x*
get_bprop_reduceany.1151:axis*
get_bprop_reduceany.1151:out*
get_bprop_reduceany.1151:dout2(
&get_bprop_reduceany.1151:[CNode]1152:1:@e794cce26a10b7db92fd0a79d14a8f5643fb292e5ff54128c8b27b58a1dfa169J/grad_math_ops.pyB·
±
get_bprop_reduceany.1151:xbprop.1153:[CNode]1154:2bprop.1153:[CNode]1154:2".REF::MetaFuncGraph::hyper_map[zeros_like_leaf]:/Default/S-Prim-hyper_map[zeros_like_leaf]-op907
´
get_bprop_reduceany.1151:axisbprop.1153:[CNode]1155:3bprop.1153:[CNode]1155:3".REF::MetaFuncGraph::hyper_map[zeros_like_leaf]:/Default/S-Prim-hyper_map[zeros_like_leaf]-op908
¡
bprop.1153:[CNode]1154:2
bprop.1153:[CNode]1155:3bprop.1153:[CNode]1156:4bprop.1153:[CNode]1156:4"REF::S-Prim-MakeTuple:5:Default/S-Prim-MakeTuple-op909
bprop.11532
bprop.1153:[CNode]1156:4Pb&
S-Prim-MakeTuple:5S-Prim-MakeTupleh

View File

@ -1,21 +1,21 @@
0.1.1 MindSpore*2.0.0:¢
u$get_bprop_relu_grad.385:[CNode]390:1$get_bprop_relu_grad.385:[CNode]390:1"REF::bprop.391:Default/bprop.391-op155
Ì$get_bprop_relu_grad.385:input_grad:2$get_bprop_relu_grad.385:input_grad:2";REF::ClassType::mindspore.ops.operations._grad_ops.ReluGrad:ADefault/class 'mindspore.ops.operations._grad_ops.ReluGrad'-op156get_bprop_relu_grad.385*
get_bprop_relu_grad.385:self*(
&get_bprop_relu_grad.385:[Parameter]392*(
&get_bprop_relu_grad.385:[Parameter]387*(
&get_bprop_relu_grad.385:[Parameter]393*(
&get_bprop_relu_grad.385:[Parameter]3862&
$get_bprop_relu_grad.385:[CNode]390:1:@97c0a65823c3717058b9f6e0f337321f6fdd60644daf1a035a0bc43c0717319cJ/grad_nn_ops.pyB
¦
&get_bprop_relu_grad.385:[Parameter]386
&get_bprop_relu_grad.385:[Parameter]387bprop.391:dgrad:3bprop.391:dgrad:3")REF::get_bprop_relu_grad.385:input_grad:2:157
³
&get_bprop_relu_grad.385:[Parameter]387bprop.391:[CNode]388:4bprop.391:[CNode]388:4"(REF::S-Prim-hyper_map[zeros_like_leaf]:5:/Default/S-Prim-hyper_map[zeros_like_leaf]-op158
0.1.1 MindSpore*2.0.0:†
{&get_bprop_relu_grad.1277:[CNode]1278:1&get_bprop_relu_grad.1277:[CNode]1278:1"REF::bprop.1279:Default/bprop.1279-op991
Î%get_bprop_relu_grad.1277:input_grad:2%get_bprop_relu_grad.1277:input_grad:2";REF::ClassType::mindspore.ops.operations._grad_ops.ReluGrad:ADefault/class 'mindspore.ops.operations._grad_ops.ReluGrad'-op992get_bprop_relu_grad.1277*
get_bprop_relu_grad.1277:self*
get_bprop_relu_grad.1277:grad*
get_bprop_relu_grad.1277:y*
get_bprop_relu_grad.1277:out*
get_bprop_relu_grad.1277:dout2(
&get_bprop_relu_grad.1277:[CNode]1278:1:@97c0a65823c3717058b9f6e0f337321f6fdd60644daf1a035a0bc43c0717319cJ/grad_nn_ops.pyB
<EFBFBD>
bprop.391:dgrad:3
bprop.391:[CNode]388:4bprop.391:[CNode]389:6bprop.391:[CNode]389:6"REF::S-Prim-MakeTuple:7:Default/S-Prim-MakeTuple-op159 bprop.3912
bprop.391:[CNode]389:6Pb&
S-Prim-MakeTuple:7S-Prim-MakeTuplebH
#S-Prim-hyper_map[zeros_like_leaf]:5!S-Prim-hyper_map[zeros_like_leaf]h
get_bprop_relu_grad.1277:dout
get_bprop_relu_grad.1277:ybprop.1279:dgrad:3bprop.1279:dgrad:3"*REF::get_bprop_relu_grad.1277:input_grad:2:993
±
get_bprop_relu_grad.1277:ybprop.1279:[CNode]1280:4bprop.1279:[CNode]1280:4".REF::MetaFuncGraph::hyper_map[zeros_like_leaf]:/Default/S-Prim-hyper_map[zeros_like_leaf]-op994

bprop.1279:dgrad:3
bprop.1279:[CNode]1280:4bprop.1279:[CNode]1281:5bprop.1279:[CNode]1281:5"REF::S-Prim-MakeTuple:6:Default/S-Prim-MakeTuple-op995
bprop.12792
bprop.1279:[CNode]1281:5Pb&
S-Prim-MakeTuple:6S-Prim-MakeTupleh

View File

@ -0,0 +1,60 @@
0.1.1 MindSpore*2.0.0:Œ
j get_bprop_reshape.36:[CNode]37:1 get_bprop_reshape.36:[CNode]37:1" REF::bprop.38:Default/bprop.38-op24get_bprop_reshape.36*
get_bprop_reshape.36:self*
get_bprop_reshape.36:x*
get_bprop_reshape.36:Ñ„shp*
get_bprop_reshape.36:out*
get_bprop_reshape.36:Ñ„dout2"
get_bprop_reshape.36:[CNode]37:1:@5b9d6f44f1957006db698bb115f6bf0d8c30f8e0535879c474b7722b550d4b99J/grad_array_ops.pyBÇ
n
get_bprop_reshape.36:xbprop.38:shapex:2bprop.38:shapex:2"REF::S-Prim-Shape:3:Default/S-Prim-Shape-op25

bprop.38:shapex:2bprop.38:[CNode]39:4bprop.38:[CNode]39:4"REF::S-Prim-is_shape_unknown:5:$Default/S-Prim-is_shape_unknown-op26
h
bprop.38:[CNode]39:4bprop.38:[CNode]40:6bprop.38:[CNode]40:6" REF::bool_.41:Default/bool_.41-op27

bprop.38:[CNode]40:6
✓bprop.42
✗bprop.43bprop.38:[CNode]44:7bprop.38:[CNode]44:7" REF::Switch:8:Default/Switch-op28
Kbprop.38:[CNode]45:9bprop.38:[CNode]45:9"REF::bprop.38:[CNode]44:7:29
p
bprop.38:[CNode]45:9bprop.38:[CNode]46:10bprop.38:[CNode]46:10"REF::↓bprop.47:Default/↓bprop.47-op30bprop.382
bprop.38:[CNode]46:10BÂ
£↓bprop.47:48:11↓bprop.47:48:11":REF::ClassType::mindspore.ops.operations.array_ops.Reshape:?Default/class 'mindspore.ops.operations.array_ops.Reshape'-op31
u
get_bprop_reshape.36:Ñ„dout
↓bprop.47:Ñ„shapex↓bprop.47:48:12↓bprop.47:48:12"REF::↓bprop.47:48:11:32
°
get_bprop_reshape.36:Ñ„shp↓bprop.47:[CNode]49:13↓bprop.47:[CNode]49:13".REF::MetaFuncGraph::hyper_map[zeros_like_leaf]:.Default/S-Prim-hyper_map[zeros_like_leaf]-op33
š
↓bprop.47:48:12
↓bprop.47:[CNode]49:13↓bprop.47:[CNode]50:14↓bprop.47:[CNode]50:14"REF::S-Prim-MakeTuple:15:Default/S-Prim-MakeTuple-op34 ↓bprop.47*
↓bprop.47:Ñ„shapex2
↓bprop.47:[CNode]50:14B
after_block B" ✗bprop.432
bprop.38:shapex:2B¬
ƒ
get_bprop_reshape.36:x✓bprop.42:shapex:16✓bprop.42:shapex:16"REF::S-Prim-TensorShape:17:Default/S-Prim-TensorShape-op35 ✓bprop.422
✓bprop.42:shapex:16B³
> [ValueNode]51 [ValueNode]51"Constant*
value*__bool__€
p
bool_.41:x
[ValueNode]51bool_.41:[CNode]52:18bool_.41:[CNode]52:18"REF::getattr:19:Default/getattr-op36
Nbool_.41:[CNode]53:20bool_.41:[CNode]53:20"REF::bool_.41:[CNode]52:18:37bool_.41*
bool_.41:x2
bool_.41:[CNode]53:20Pb
Switch:8Switchb
getattr:19getattrbm
S-Prim-TensorShape:17S-Prim-TensorShape
output_names€Š Zoutput€
input_names€Š Zinput_x€b'
S-Prim-MakeTuple:15S-Prim-MakeTupleb
S-Prim-Shape:3 S-Prim-ShapebŽ
S-Prim-is_shape_unknown:5S-Prim-is_shape_unknown1
constexpr_module*mindspore.ops._utils.utils€%
constexpr_name*is_shape_unknown€h

View File

@ -0,0 +1,22 @@
0.1.1 MindSpore*2.0.0:ë
w%get_bprop_reverse_v2.919:[CNode]920:1%get_bprop_reverse_v2.919:[CNode]920:1"REF::bprop.921:Default/bprop.921-op744
<[ValueNode]922[ValueNode]922"Constant*
value*axis€
˜
get_bprop_reverse_v2.919:self
[ValueNode]922get_bprop_reverse_v2.919:axis:2get_bprop_reverse_v2.919:axis:2"REF::getattr:3:Default/getattr-op745get_bprop_reverse_v2.919*
get_bprop_reverse_v2.919:self*
get_bprop_reverse_v2.919:x*
get_bprop_reverse_v2.919:out*
get_bprop_reverse_v2.919:dout2'
%get_bprop_reverse_v2.919:[CNode]920:1:@1a7295ef5c4b93409239e999a8f42dd3caf742f13baa02f8a092ed1bc5e857c7J/grad_array_ops.pyBß
×
get_bprop_reverse_v2.919:axis:2bprop.921:reverse_grad:4bprop.921:reverse_grad:4"<REF::ClassType::mindspore.ops.operations.array_ops.ReverseV2:BDefault/class 'mindspore.ops.operations.array_ops.ReverseV2'-op746
c
get_bprop_reverse_v2.919:doutbprop.921:dx:5bprop.921:dx:5"REF::bprop.921:reverse_grad:4:747
y
bprop.921:dx:5bprop.921:[CNode]923:6bprop.921:[CNode]923:6"REF::S-Prim-MakeTuple:7:Default/S-Prim-MakeTuple-op748 bprop.9212
bprop.921:[CNode]923:6Pb
getattr:3getattrb&
S-Prim-MakeTuple:7S-Prim-MakeTupleh

View File

@ -1,15 +1,15 @@
0.1.1 MindSpore*2.0.0:Š
l get_bprop_round.120:[CNode]124:1 get_bprop_round.120:[CNode]124:1"REF::bprop.125:Default/bprop.125-op46get_bprop_round.120*
get_bprop_round.120:self*$
"get_bprop_round.120:[Parameter]122*$
"get_bprop_round.120:[Parameter]126*$
"get_bprop_round.120:[Parameter]1272"
get_bprop_round.120:[CNode]124:1:@f4d86e41a2412306726cdcefe145ca5ab80501dfde76cc0157e09bc80b157926J/grad_math_ops.pyBÙ
®
"get_bprop_round.120:[Parameter]122bprop.125:[CNode]121:2bprop.125:[CNode]121:2"(REF::S-Prim-hyper_map[zeros_like_leaf]:3:.Default/S-Prim-hyper_map[zeros_like_leaf]-op47

bprop.125:[CNode]121:2bprop.125:[CNode]123:4bprop.125:[CNode]123:4"REF::S-Prim-MakeTuple:5:Default/S-Prim-MakeTuple-op48 bprop.1252
bprop.125:[CNode]123:4PbH
#S-Prim-hyper_map[zeros_like_leaf]:3!S-Prim-hyper_map[zeros_like_leaf]b&
S-Prim-MakeTuple:5S-Prim-MakeTupleh
0.1.1 MindSpore*2.0.0:ö
s"get_bprop_round.1248:[CNode]1249:1"get_bprop_round.1248:[CNode]1249:1"REF::bprop.1250:Default/bprop.1250-op969get_bprop_round.1248*
get_bprop_round.1248:self*
get_bprop_round.1248:x*
get_bprop_round.1248:out*
get_bprop_round.1248:dout2$
"get_bprop_round.1248:[CNode]1249:1:@f4d86e41a2412306726cdcefe145ca5ab80501dfde76cc0157e09bc80b157926J/grad_math_ops.pyBâ
­
get_bprop_round.1248:xbprop.1250:[CNode]1251:2bprop.1250:[CNode]1251:2".REF::MetaFuncGraph::hyper_map[zeros_like_leaf]:/Default/S-Prim-hyper_map[zeros_like_leaf]-op970

bprop.1250:[CNode]1251:2bprop.1250:[CNode]1252:3bprop.1250:[CNode]1252:3"REF::S-Prim-MakeTuple:4:Default/S-Prim-MakeTuple-op971
bprop.12502
bprop.1250:[CNode]1252:3Pb&
S-Prim-MakeTuple:4S-Prim-MakeTupleh

View File

@ -1,32 +1,31 @@
0.1.1 MindSpore*2.0.0:Ÿ
o!get_bprop_select.335:[CNode]346:1!get_bprop_select.335:[CNode]346:1"REF::bprop.347:Default/bprop.347-op132
ºget_bprop_select.335:select:4get_bprop_select.335:select:4"9REF::ClassType::mindspore.ops.operations.array_ops.Select:?Default/class 'mindspore.ops.operations.array_ops.Select'-op134get_bprop_select.335*
get_bprop_select.335:self*%
#get_bprop_select.335:[Parameter]337*%
#get_bprop_select.335:[Parameter]339*%
#get_bprop_select.335:[Parameter]343*%
#get_bprop_select.335:[Parameter]348*%
#get_bprop_select.335:[Parameter]3412#
!get_bprop_select.335:[CNode]346:1:@1131f548644251e0757579514cc95fc63ce7b6647694c3c6bd937ae4e4cc8db0J/grad_array_ops.pyBï
°
#get_bprop_select.335:[Parameter]337bprop.347:[CNode]336:2bprop.347:[CNode]336:2"(REF::S-Prim-hyper_map[zeros_like_leaf]:3:/Default/S-Prim-hyper_map[zeros_like_leaf]-op133
°
#get_bprop_select.335:[Parameter]339bprop.347:[CNode]338:5bprop.347:[CNode]338:5"(REF::S-Prim-hyper_map[zeros_like_leaf]:3:/Default/S-Prim-hyper_map[zeros_like_leaf]-op135
»
#get_bprop_select.335:[Parameter]337
#get_bprop_select.335:[Parameter]341
bprop.347:[CNode]338:5bprop.347:[CNode]340:6bprop.347:[CNode]340:6""REF::get_bprop_select.335:select:4:136
°
#get_bprop_select.335:[Parameter]343bprop.347:[CNode]342:7bprop.347:[CNode]342:7"(REF::S-Prim-hyper_map[zeros_like_leaf]:3:/Default/S-Prim-hyper_map[zeros_like_leaf]-op137
»
#get_bprop_select.335:[Parameter]337
bprop.347:[CNode]342:7
#get_bprop_select.335:[Parameter]341bprop.347:[CNode]344:8bprop.347:[CNode]344:8""REF::get_bprop_select.335:select:4:138
²
bprop.347:[CNode]336:2
bprop.347:[CNode]340:6
bprop.347:[CNode]344:8bprop.347:[CNode]345:9bprop.347:[CNode]345:9"REF::S-Prim-MakeTuple:10:Default/S-Prim-MakeTuple-op139 bprop.3472
bprop.347:[CNode]345:9Pb'
S-Prim-MakeTuple:10S-Prim-MakeTuplebH
#S-Prim-hyper_map[zeros_like_leaf]:3!S-Prim-hyper_map[zeros_like_leaf]h
0.1.1 MindSpore*2.0.0:æ
o!get_bprop_select.987:[CNode]988:1!get_bprop_select.987:[CNode]988:1"REF::bprop.989:Default/bprop.989-op791
ºget_bprop_select.987:select:3get_bprop_select.987:select:3"9REF::ClassType::mindspore.ops.operations.array_ops.Select:?Default/class 'mindspore.ops.operations.array_ops.Select'-op793get_bprop_select.987*
get_bprop_select.987:self*
get_bprop_select.987:cond*
get_bprop_select.987:x*
get_bprop_select.987:y*
get_bprop_select.987:out*
get_bprop_select.987:dout2#
!get_bprop_select.987:[CNode]988:1:@1131f548644251e0757579514cc95fc63ce7b6647694c3c6bd937ae4e4cc8db0J/grad_array_ops.pyB´
¬
get_bprop_select.987:condbprop.989:[CNode]990:2bprop.989:[CNode]990:2".REF::MetaFuncGraph::hyper_map[zeros_like_leaf]:/Default/S-Prim-hyper_map[zeros_like_leaf]-op792
©
get_bprop_select.987:xbprop.989:[CNode]991:4bprop.989:[CNode]991:4".REF::MetaFuncGraph::hyper_map[zeros_like_leaf]:/Default/S-Prim-hyper_map[zeros_like_leaf]-op794
§
get_bprop_select.987:cond
get_bprop_select.987:dout
bprop.989:[CNode]991:4bprop.989:[CNode]992:5bprop.989:[CNode]992:5""REF::get_bprop_select.987:select:3:795
©
get_bprop_select.987:ybprop.989:[CNode]993:6bprop.989:[CNode]993:6".REF::MetaFuncGraph::hyper_map[zeros_like_leaf]:/Default/S-Prim-hyper_map[zeros_like_leaf]-op796
§
get_bprop_select.987:cond
bprop.989:[CNode]993:6
get_bprop_select.987:doutbprop.989:[CNode]994:7bprop.989:[CNode]994:7""REF::get_bprop_select.987:select:3:797
±
bprop.989:[CNode]990:2
bprop.989:[CNode]992:5
bprop.989:[CNode]994:7bprop.989:[CNode]995:8bprop.989:[CNode]995:8"REF::S-Prim-MakeTuple:9:Default/S-Prim-MakeTuple-op798 bprop.9892
bprop.989:[CNode]995:8Pb&
S-Prim-MakeTuple:9S-Prim-MakeTupleh

View File

@ -1,15 +1,14 @@
0.1.1 MindSpore*2.0.0:Œ
m get_bprop_shape.311:[CNode]315:1 get_bprop_shape.311:[CNode]315:1"REF::bprop.316:Default/bprop.316-op123get_bprop_shape.311*
get_bprop_shape.311:self*$
"get_bprop_shape.311:[Parameter]313*$
"get_bprop_shape.311:[Parameter]317*$
"get_bprop_shape.311:[Parameter]3182"
get_bprop_shape.311:[CNode]315:1:@571f1dc03973d4ee3cb754323763f553a6f65c2d8bbee44c0ab43d5c90c0595cJ/grad_array_ops.pyBÛ
¯
"get_bprop_shape.311:[Parameter]313bprop.316:[CNode]312:2bprop.316:[CNode]312:2"(REF::S-Prim-hyper_map[zeros_like_leaf]:3:/Default/S-Prim-hyper_map[zeros_like_leaf]-op124
<EFBFBD>
bprop.316:[CNode]312:2bprop.316:[CNode]314:4bprop.316:[CNode]314:4"REF::S-Prim-MakeTuple:5:Default/S-Prim-MakeTuple-op125 bprop.3162
bprop.316:[CNode]314:4PbH
#S-Prim-hyper_map[zeros_like_leaf]:3!S-Prim-hyper_map[zeros_like_leaf]b&
S-Prim-MakeTuple:5S-Prim-MakeTupleh
0.1.1 MindSpore*2.0.0:Û
eget_bprop_shape.11:[CNode]12:1get_bprop_shape.11:[CNode]12:1" REF::bprop.13:Default/bprop.13-op7get_bprop_shape.11*
get_bprop_shape.11:self*
get_bprop_shape.11:x*
get_bprop_shape.11:out*
get_bprop_shape.11:dout2
get_bprop_shape.11:[CNode]12:1:@571f1dc03973d4ee3cb754323763f553a6f65c2d8bbee44c0ab43d5c90c0595cJ/grad_array_ops.pyBÁ
¡
get_bprop_shape.11:xbprop.13:[CNode]14:2bprop.13:[CNode]14:2".REF::MetaFuncGraph::hyper_map[zeros_like_leaf]:-Default/S-Prim-hyper_map[zeros_like_leaf]-op8
y
bprop.13:[CNode]14:2bprop.13:[CNode]15:3bprop.13:[CNode]15:3"REF::S-Prim-MakeTuple:4:Default/S-Prim-MakeTuple-op9bprop.132
bprop.13:[CNode]15:3Pb&
S-Prim-MakeTuple:4S-Prim-MakeTupleh

View File

@ -1,15 +1,15 @@
0.1.1 MindSpore*2.0.0:
jget_bprop_sign.104:[CNode]108:1get_bprop_sign.104:[CNode]108:1"REF::bprop.109:Default/bprop.109-op40get_bprop_sign.104*
get_bprop_sign.104:self*#
!get_bprop_sign.104:[Parameter]106*#
!get_bprop_sign.104:[Parameter]110*#
!get_bprop_sign.104:[Parameter]1112!
get_bprop_sign.104:[CNode]108:1:@62ee2d77cbb1a55c0dfb402cb7183a22efa521f50339776f46c42f381b0cda61J/grad_math_ops.pyBØ
­
!get_bprop_sign.104:[Parameter]106bprop.109:[CNode]105:2bprop.109:[CNode]105:2"(REF::S-Prim-hyper_map[zeros_like_leaf]:3:.Default/S-Prim-hyper_map[zeros_like_leaf]-op41

bprop.109:[CNode]105:2bprop.109:[CNode]107:4bprop.109:[CNode]107:4"REF::S-Prim-MakeTuple:5:Default/S-Prim-MakeTuple-op42 bprop.1092
bprop.109:[CNode]107:4Pb&
S-Prim-MakeTuple:5S-Prim-MakeTuplebH
#S-Prim-hyper_map[zeros_like_leaf]:3!S-Prim-hyper_map[zeros_like_leaf]h
0.1.1 MindSpore*2.0.0:î
q!get_bprop_sign.1243:[CNode]1244:1!get_bprop_sign.1243:[CNode]1244:1"REF::bprop.1245:Default/bprop.1245-op966get_bprop_sign.1243*
get_bprop_sign.1243:self*
get_bprop_sign.1243:x*
get_bprop_sign.1243:out*
get_bprop_sign.1243:dout2#
!get_bprop_sign.1243:[CNode]1244:1:@62ee2d77cbb1a55c0dfb402cb7183a22efa521f50339776f46c42f381b0cda61J/grad_math_ops.pyBá
¬
get_bprop_sign.1243:xbprop.1245:[CNode]1246:2bprop.1245:[CNode]1246:2".REF::MetaFuncGraph::hyper_map[zeros_like_leaf]:/Default/S-Prim-hyper_map[zeros_like_leaf]-op967

bprop.1245:[CNode]1246:2bprop.1245:[CNode]1247:3bprop.1245:[CNode]1247:3"REF::S-Prim-MakeTuple:4:Default/S-Prim-MakeTuple-op968
bprop.12452
bprop.1245:[CNode]1247:3Pb&
S-Prim-MakeTuple:4S-Prim-MakeTupleh

View File

@ -0,0 +1,26 @@
0.1.1 MindSpore*2.0.0:£
m get_bprop_slice.655:[CNode]656:1 get_bprop_slice.655:[CNode]656:1"REF::bprop.657:Default/bprop.657-op505get_bprop_slice.655*
get_bprop_slice.655:self*
get_bprop_slice.655:x*
get_bprop_slice.655:begin*
get_bprop_slice.655:size*
get_bprop_slice.655:out*
get_bprop_slice.655:dout2"
get_bprop_slice.655:[CNode]656:1:@3ad5ce7886f40e9d1120ea50edb79eab188fcd2d5d79e8b1552053986f328098J/grad_array_ops.pyBŽ
²bprop.657:[CNode]658:2bprop.657:[CNode]658:2"<REF::ClassType::mindspore.ops.operations._grad_ops.SliceGrad:BDefault/class 'mindspore.ops.operations._grad_ops.SliceGrad'-op506
¨
get_bprop_slice.655:dout
get_bprop_slice.655:x
get_bprop_slice.655:begin
get_bprop_slice.655:sizebprop.657:dx:3bprop.657:dx:3"REF::bprop.657:[CNode]658:2:507
¬
get_bprop_slice.655:beginbprop.657:[CNode]659:4bprop.657:[CNode]659:4".REF::MetaFuncGraph::hyper_map[zeros_like_leaf]:/Default/S-Prim-hyper_map[zeros_like_leaf]-op508
«
get_bprop_slice.655:sizebprop.657:[CNode]660:5bprop.657:[CNode]660:5".REF::MetaFuncGraph::hyper_map[zeros_like_leaf]:/Default/S-Prim-hyper_map[zeros_like_leaf]-op509
©
bprop.657:dx:3
bprop.657:[CNode]659:4
bprop.657:[CNode]660:5bprop.657:[CNode]661:6bprop.657:[CNode]661:6"REF::S-Prim-MakeTuple:7:Default/S-Prim-MakeTuple-op510 bprop.6572
bprop.657:[CNode]661:6Pb&
S-Prim-MakeTuple:7S-Prim-MakeTupleh

View File

@ -0,0 +1,22 @@
0.1.1 MindSpore*2.0.0:Ÿ
fget_bprop_split.26:[CNode]27:1get_bprop_split.26:[CNode]27:1" REF::bprop.28:Default/bprop.28-op16
: [ValueNode]29 [ValueNode]29"Constant*
value*axis€

get_bprop_split.26:self
[ValueNode]29get_bprop_split.26:axis:2get_bprop_split.26:axis:2"REF::getattr:3:Default/getattr-op17get_bprop_split.26*
get_bprop_split.26:self*
get_bprop_split.26:x*
get_bprop_split.26:out*
get_bprop_split.26:dout2
get_bprop_split.26:[CNode]27:1:@c3c9ab3b1058a0cc3900855340ea9652ccc93366cdc7097bc49a4819150c513fJ/grad_array_ops.pyB´
Â
get_bprop_split.26:axis:2bprop.28:concat_op:4bprop.28:concat_op:4"9REF::ClassType::mindspore.ops.operations.array_ops.Concat:>Default/class 'mindspore.ops.operations.array_ops.Concat'-op18
V
get_bprop_split.26:dout bprop.28:dx:5 bprop.28:dx:5"REF::bprop.28:concat_op:4:19
s
bprop.28:dx:5bprop.28:[CNode]30:6bprop.28:[CNode]30:6"REF::S-Prim-MakeTuple:7:Default/S-Prim-MakeTuple-op20bprop.282
bprop.28:[CNode]30:6Pb
getattr:3getattrb&
S-Prim-MakeTuple:7S-Prim-MakeTupleh

View File

@ -0,0 +1,56 @@
0.1.1 MindSpore*2.0.0:î
j get_bprop_squeeze.72:[CNode]73:1 get_bprop_squeeze.72:[CNode]73:1" REF::bprop.74:Default/bprop.74-op52get_bprop_squeeze.72*
get_bprop_squeeze.72:self*
get_bprop_squeeze.72:x*
get_bprop_squeeze.72:out*
get_bprop_squeeze.72:Ñ„dout2"
get_bprop_squeeze.72:[CNode]73:1:@3140bf3d4cdd0e284b14c8e0404c78c8616ea5400ff577b8fb1e9276737406efJ/grad_array_ops.pyBÇ
n
get_bprop_squeeze.72:xbprop.74:shapex:2bprop.74:shapex:2"REF::S-Prim-Shape:3:Default/S-Prim-Shape-op53

bprop.74:shapex:2bprop.74:[CNode]75:4bprop.74:[CNode]75:4"REF::S-Prim-is_shape_unknown:5:$Default/S-Prim-is_shape_unknown-op54
h
bprop.74:[CNode]75:4bprop.74:[CNode]76:6bprop.74:[CNode]76:6" REF::bool_.77:Default/bool_.77-op55

bprop.74:[CNode]76:6
✓bprop.78
✗bprop.79bprop.74:[CNode]80:7bprop.74:[CNode]80:7" REF::Switch:8:Default/Switch-op56
Kbprop.74:[CNode]81:9bprop.74:[CNode]81:9"REF::bprop.74:[CNode]80:7:57
p
bprop.74:[CNode]81:9bprop.74:[CNode]82:10bprop.74:[CNode]82:10"REF::↓bprop.83:Default/↓bprop.83-op58bprop.742
bprop.74:[CNode]82:10Bõ
£↓bprop.83:84:11↓bprop.83:84:11":REF::ClassType::mindspore.ops.operations.array_ops.Reshape:?Default/class 'mindspore.ops.operations.array_ops.Reshape'-op59
u
get_bprop_squeeze.72:Ñ„dout
↓bprop.83:Ñ„shapex↓bprop.83:84:12↓bprop.83:84:12"REF::↓bprop.83:84:11:60

↓bprop.83:84:12↓bprop.83:[CNode]85:13↓bprop.83:[CNode]85:13"REF::S-Prim-MakeTuple:14:Default/S-Prim-MakeTuple-op61 ↓bprop.83*
↓bprop.83:Ñ„shapex2
↓bprop.83:[CNode]85:13B
after_block B" ✗bprop.792
bprop.74:shapex:2B¬
ƒ
get_bprop_squeeze.72:x✓bprop.78:shapex:15✓bprop.78:shapex:15"REF::S-Prim-TensorShape:16:Default/S-Prim-TensorShape-op62 ✓bprop.782
✓bprop.78:shapex:15B³
> [ValueNode]86 [ValueNode]86"Constant*
value*__bool__€
p
bool_.77:x
[ValueNode]86bool_.77:[CNode]87:17bool_.77:[CNode]87:17"REF::getattr:18:Default/getattr-op63
Nbool_.77:[CNode]88:19bool_.77:[CNode]88:19"REF::bool_.77:[CNode]87:17:64bool_.77*
bool_.77:x2
bool_.77:[CNode]88:19Pb
Switch:8Switchb
getattr:18getattrb
S-Prim-Shape:3 S-Prim-ShapebŽ
S-Prim-is_shape_unknown:5S-Prim-is_shape_unknown1
constexpr_module*mindspore.ops._utils.utils€%
constexpr_name*is_shape_unknown€b'
S-Prim-MakeTuple:14S-Prim-MakeTuplebm
S-Prim-TensorShape:16S-Prim-TensorShape
output_names€Š Zoutput€
input_names€Š Zinput_x€h

View File

@ -0,0 +1,95 @@
0.1.1 MindSpore*2.0.0:“
-get_bprop_strided_slice_grad.958:[CNode]959:1-get_bprop_strided_slice_grad.958:[CNode]959:1"REF::bprop.960:Default/bprop.960-op775
B[ValueNode]961[ValueNode]961"Constant*
value*
begin_mask€
@[ValueNode]962[ValueNode]962"Constant*
value*end_mask€
E[ValueNode]963[ValueNode]963"Constant*
value* ellipsis_mask€
E[ValueNode]964[ValueNode]964"Constant*
value* new_axis_mask€
H[ValueNode]965[ValueNode]965"Constant*
value*shrink_axis_mask€
ç
[ValueNode]961
[ValueNode]962
[ValueNode]963
[ValueNode]964
[ValueNode]965-get_bprop_strided_slice_grad.958:[CNode]966:2-get_bprop_strided_slice_grad.958:[CNode]966:2"REF::S-Prim-MakeTuple:3:Default/S-Prim-MakeTuple-op776
B[ValueNode]967[ValueNode]967"Constant*
value*
begin_mask€
¼
%get_bprop_strided_slice_grad.958:self
[ValueNode]967-get_bprop_strided_slice_grad.958:[CNode]968:4-get_bprop_strided_slice_grad.958:[CNode]968:4"REF::getattr:5:Default/getattr-op777
@[ValueNode]969[ValueNode]969"Constant*
value*end_mask€
¼
%get_bprop_strided_slice_grad.958:self
[ValueNode]969-get_bprop_strided_slice_grad.958:[CNode]970:6-get_bprop_strided_slice_grad.958:[CNode]970:6"REF::getattr:5:Default/getattr-op778
E[ValueNode]971[ValueNode]971"Constant*
value* ellipsis_mask€
¼
%get_bprop_strided_slice_grad.958:self
[ValueNode]971-get_bprop_strided_slice_grad.958:[CNode]972:7-get_bprop_strided_slice_grad.958:[CNode]972:7"REF::getattr:5:Default/getattr-op779
E[ValueNode]973[ValueNode]973"Constant*
value* new_axis_mask€
¼
%get_bprop_strided_slice_grad.958:self
[ValueNode]973-get_bprop_strided_slice_grad.958:[CNode]974:8-get_bprop_strided_slice_grad.958:[CNode]974:8"REF::getattr:5:Default/getattr-op780
H[ValueNode]975[ValueNode]975"Constant*
value*shrink_axis_mask€
¼
%get_bprop_strided_slice_grad.958:self
[ValueNode]975-get_bprop_strided_slice_grad.958:[CNode]976:9-get_bprop_strided_slice_grad.958:[CNode]976:9"REF::getattr:5:Default/getattr-op781

-get_bprop_strided_slice_grad.958:[CNode]968:4
-get_bprop_strided_slice_grad.958:[CNode]970:6
-get_bprop_strided_slice_grad.958:[CNode]972:7
-get_bprop_strided_slice_grad.958:[CNode]974:8
-get_bprop_strided_slice_grad.958:[CNode]976:9.get_bprop_strided_slice_grad.958:[CNode]977:10.get_bprop_strided_slice_grad.958:[CNode]977:10"REF::S-Prim-MakeTuple:11:Default/S-Prim-MakeTuple-op782
ù
-get_bprop_strided_slice_grad.958:[CNode]966:2
.get_bprop_strided_slice_grad.958:[CNode]977:10.get_bprop_strided_slice_grad.958:[CNode]978:12.get_bprop_strided_slice_grad.958:[CNode]978:12"REF::S-Prim-make_dict:13:Default/S-Prim-make_dict-op783
Q979979"Constant*;
value*/mindspore.ops.operations.array_ops.StridedSlice€!
Û
979
.get_bprop_strided_slice_grad.958:[CNode]978:121get_bprop_strided_slice_grad.958:strided_slice:141get_bprop_strided_slice_grad.958:strided_slice:14"REF::MetaFuncGraph::unpack_call:Default/unpack_call.980-op784 get_bprop_strided_slice_grad.958*'
%get_bprop_strided_slice_grad.958:self*%
#get_bprop_strided_slice_grad.958:dy*)
'get_bprop_strided_slice_grad.958:shapex*(
&get_bprop_strided_slice_grad.958:begin*&
$get_bprop_strided_slice_grad.958:end**
(get_bprop_strided_slice_grad.958:strides*&
$get_bprop_strided_slice_grad.958:out*'
%get_bprop_strided_slice_grad.958:dout2/
-get_bprop_strided_slice_grad.958:[CNode]959:1:@9a9dc76825f434ec324252a12aaca9cb990fe0843252dd0776b8648a514f2eaeJ/grad_array_ops.pyBœ
Ž
%get_bprop_strided_slice_grad.958:dout
&get_bprop_strided_slice_grad.958:begin
$get_bprop_strided_slice_grad.958:end
(get_bprop_strided_slice_grad.958:stridesbprop.960:[CNode]981:15bprop.960:[CNode]981:15"6REF::get_bprop_strided_slice_grad.958:strided_slice:14:785
¼
'get_bprop_strided_slice_grad.958:shapexbprop.960:[CNode]982:16bprop.960:[CNode]982:16".REF::MetaFuncGraph::hyper_map[zeros_like_leaf]:/Default/S-Prim-hyper_map[zeros_like_leaf]-op786
»
&get_bprop_strided_slice_grad.958:beginbprop.960:[CNode]983:17bprop.960:[CNode]983:17".REF::MetaFuncGraph::hyper_map[zeros_like_leaf]:/Default/S-Prim-hyper_map[zeros_like_leaf]-op787
¹
$get_bprop_strided_slice_grad.958:endbprop.960:[CNode]984:18bprop.960:[CNode]984:18".REF::MetaFuncGraph::hyper_map[zeros_like_leaf]:/Default/S-Prim-hyper_map[zeros_like_leaf]-op788
½
(get_bprop_strided_slice_grad.958:stridesbprop.960:[CNode]985:19bprop.960:[CNode]985:19".REF::MetaFuncGraph::hyper_map[zeros_like_leaf]:/Default/S-Prim-hyper_map[zeros_like_leaf]-op789
é
bprop.960:[CNode]981:15
bprop.960:[CNode]982:16
bprop.960:[CNode]983:17
bprop.960:[CNode]984:18
bprop.960:[CNode]985:19bprop.960:[CNode]986:20bprop.960:[CNode]986:20"REF::S-Prim-MakeTuple:21:Default/S-Prim-MakeTuple-op790 bprop.9602
bprop.960:[CNode]986:20Pb
getattr:5getattrb'
S-Prim-MakeTuple:11S-Prim-MakeTupleb'
S-Prim-make_dict:13S-Prim-make_dictb'
S-Prim-MakeTuple:21S-Prim-MakeTupleb&
S-Prim-MakeTuple:3S-Prim-MakeTupleh

View File

@ -0,0 +1,100 @@
0.1.1 MindSpore*2.0.0:Â
}(get_bprop_strided_slice.929:[CNode]930:1(get_bprop_strided_slice.929:[CNode]930:1"REF::bprop.931:Default/bprop.931-op754
B[ValueNode]941[ValueNode]941"Constant*
value*
begin_mask€
°
get_bprop_strided_slice.929:self
[ValueNode]941)get_bprop_strided_slice.929:[CNode]942:11)get_bprop_strided_slice.929:[CNode]942:11"REF::getattr:12:Default/getattr-op761
@[ValueNode]943[ValueNode]943"Constant*
value*end_mask€
°
get_bprop_strided_slice.929:self
[ValueNode]943)get_bprop_strided_slice.929:[CNode]944:13)get_bprop_strided_slice.929:[CNode]944:13"REF::getattr:12:Default/getattr-op762
E[ValueNode]945[ValueNode]945"Constant*
value* ellipsis_mask€
°
get_bprop_strided_slice.929:self
[ValueNode]945)get_bprop_strided_slice.929:[CNode]946:14)get_bprop_strided_slice.929:[CNode]946:14"REF::getattr:12:Default/getattr-op763
E[ValueNode]947[ValueNode]947"Constant*
value* new_axis_mask€
°
get_bprop_strided_slice.929:self
[ValueNode]947)get_bprop_strided_slice.929:[CNode]948:15)get_bprop_strided_slice.929:[CNode]948:15"REF::getattr:12:Default/getattr-op764
H[ValueNode]949[ValueNode]949"Constant*
value*shrink_axis_mask€
°
get_bprop_strided_slice.929:self
[ValueNode]949)get_bprop_strided_slice.929:[CNode]950:16)get_bprop_strided_slice.929:[CNode]950:16"REF::getattr:12:Default/getattr-op765
Á
)get_bprop_strided_slice.929:[CNode]942:11
)get_bprop_strided_slice.929:[CNode]944:13
)get_bprop_strided_slice.929:[CNode]946:14
)get_bprop_strided_slice.929:[CNode]948:15
)get_bprop_strided_slice.929:[CNode]950:16+get_bprop_strided_slice.929:Ñ„input_grad:17+get_bprop_strided_slice.929:Ñ„input_grad:17"CREF::ClassType::mindspore.ops.operations._grad_ops.StridedSliceGrad:IDefault/class 'mindspore.ops.operations._grad_ops.StridedSliceGrad'-op766get_bprop_strided_slice.929*"
get_bprop_strided_slice.929:self*
get_bprop_strided_slice.929:x*%
#get_bprop_strided_slice.929:Ñ„begin*#
!get_bprop_strided_slice.929:Ñ„end*'
%get_bprop_strided_slice.929:Ñ„strides*!
get_bprop_strided_slice.929:out*$
"get_bprop_strided_slice.929:Ñ„dout2*
(get_bprop_strided_slice.929:[CNode]930:1:@9c48fb72591f7f362dbcc5c38a58935cda6d7060711184d592c1ed0cdaa41cedJ/grad_array_ops.pyBÿ
z
get_bprop_strided_slice.929:xbprop.931:x_shape:2bprop.931:x_shape:2"REF::S-Prim-Shape:3:Default/S-Prim-Shape-op755
Œ
bprop.931:x_shape:2bprop.931:[CNode]932:4bprop.931:[CNode]932:4"REF::S-Prim-is_shape_unknown:5:%Default/S-Prim-is_shape_unknown-op756
q
bprop.931:[CNode]932:4bprop.931:[CNode]933:6bprop.931:[CNode]933:6"REF::bool_.934:Default/bool_.934-op757

bprop.931:[CNode]933:6
✓bprop.935
✗bprop.936bprop.931:[CNode]937:7bprop.931:[CNode]937:7" REF::Switch:8:Default/Switch-op758
Rbprop.931:[CNode]938:9bprop.931:[CNode]938:9"REF::bprop.931:[CNode]937:7:759
y
bprop.931:[CNode]938:9bprop.931:[CNode]939:10bprop.931:[CNode]939:10"REF::↓bprop.940:Default/↓bprop.940-op760 bprop.9312
bprop.931:[CNode]939:10B‡
Š
"get_bprop_strided_slice.929:Ñ„dout
↓bprop.940:фx_shape
#get_bprop_strided_slice.929:Ñ„begin
!get_bprop_strided_slice.929:Ñ„end
%get_bprop_strided_slice.929:Ñ„strides↓bprop.940:dx:18↓bprop.940:dx:18"0REF::get_bprop_strided_slice.929:Ñ„input_grad:17:767
¾
#get_bprop_strided_slice.929:Ñ„begin↓bprop.940:[CNode]951:19↓bprop.940:[CNode]951:19".REF::MetaFuncGraph::hyper_map[zeros_like_leaf]:/Default/S-Prim-hyper_map[zeros_like_leaf]-op768
¼
!get_bprop_strided_slice.929:Ñ„end↓bprop.940:[CNode]952:20↓bprop.940:[CNode]952:20".REF::MetaFuncGraph::hyper_map[zeros_like_leaf]:/Default/S-Prim-hyper_map[zeros_like_leaf]-op769
À
%get_bprop_strided_slice.929:Ñ„strides↓bprop.940:[CNode]953:21↓bprop.940:[CNode]953:21".REF::MetaFuncGraph::hyper_map[zeros_like_leaf]:/Default/S-Prim-hyper_map[zeros_like_leaf]-op770
Ú
↓bprop.940:dx:18
↓bprop.940:[CNode]951:19
↓bprop.940:[CNode]952:20
↓bprop.940:[CNode]953:21↓bprop.940:[CNode]954:22↓bprop.940:[CNode]954:22"REF::S-Prim-MakeTuple:23:Default/S-Prim-MakeTuple-op771 ↓bprop.940*
↓bprop.940:фx_shape2
↓bprop.940:[CNode]954:22B
after_block B% ✗bprop.9362
bprop.931:x_shape:2B»
<EFBFBD>
get_bprop_strided_slice.929:x✓bprop.935:x_shape:24✓bprop.935:x_shape:24"REF::S-Prim-TensorShape:25: Default/S-Prim-TensorShape-op772 ✓bprop.9352
✓bprop.935:x_shape:24BÇ
@[ValueNode]955[ValueNode]955"Constant*
value*__bool__€
w
bool_.934:x
[ValueNode]955bool_.934:[CNode]956:26bool_.934:[CNode]956:26"REF::getattr:12:Default/getattr-op773
Ubool_.934:[CNode]957:27bool_.934:[CNode]957:27"REF::bool_.934:[CNode]956:26:774 bool_.934*
bool_.934:x2
bool_.934:[CNode]957:27Pb
Switch:8Switchb
getattr:12getattrbm
S-Prim-TensorShape:25S-Prim-TensorShape
output_names€Š Zoutput€
input_names€Š Zinput_x€
S-Prim-is_shape_unknown:5S-Prim-is_shape_unknown1
constexpr_module*mindspore.ops._utils.utils€%
constexpr_name*is_shape_unknown€b
S-Prim-Shape:3 S-Prim-Shapeb'
S-Prim-MakeTuple:23S-Prim-MakeTupleh

View File

@ -1,33 +1,29 @@
0.1.1 MindSpore*2.0.0:ú
°
bprop_switch.473:condbprop_switch.473:[CNode]474:1bprop_switch.473:[CNode]474:1"(REF::S-Prim-hyper_map[zeros_like_leaf]:2:/Default/S-Prim-hyper_map[zeros_like_leaf]-op200
®
bprop_switch.473:tbbprop_switch.473:[CNode]475:3bprop_switch.473:[CNode]475:3"(REF::S-Prim-hyper_map[zeros_like_leaf]:4:/Default/S-Prim-hyper_map[zeros_like_leaf]-op201
¾
bprop_switch.473:cond
bprop_switch.473:dout
bprop_switch.473:[CNode]475:3bprop_switch.473:[CNode]476:5bprop_switch.473:[CNode]476:5"REF::S-Prim-Switch:6:Default/S-Prim-Switch-op202
®
bprop_switch.473:fbbprop_switch.473:[CNode]477:7bprop_switch.473:[CNode]477:7"(REF::S-Prim-hyper_map[zeros_like_leaf]:8:/Default/S-Prim-hyper_map[zeros_like_leaf]-op203
¿
bprop_switch.473:cond
bprop_switch.473:[CNode]477:7
bprop_switch.473:doutbprop_switch.473:[CNode]478:9bprop_switch.473:[CNode]478:9"REF::S-Prim-Switch:10:Default/S-Prim-Switch-op204
×
bprop_switch.473:[CNode]474:1
bprop_switch.473:[CNode]476:5
bprop_switch.473:[CNode]478:9bprop_switch.473:[CNode]479:11bprop_switch.473:[CNode]479:11"REF::S-Prim-MakeTuple:12:Default/S-Prim-MakeTuple-op205bprop_switch.473*
bprop_switch.473:cond*
bprop_switch.473:tb*
bprop_switch.473:fb*
bprop_switch.473:out*
bprop_switch.473:dout2
bprop_switch.473:[CNode]479:11:@d3264eca4875ab1cf6668a10d5327962d377f004f7da2be28a63703caa149c45J/grad_implementations.pyPb!
S-Prim-Switch:10 S-Prim-Switchb
S-Prim-Switch:6 S-Prim-Switchb'
S-Prim-MakeTuple:12S-Prim-MakeTuplebH
#S-Prim-hyper_map[zeros_like_leaf]:2!S-Prim-hyper_map[zeros_like_leaf]bH
#S-Prim-hyper_map[zeros_like_leaf]:8!S-Prim-hyper_map[zeros_like_leaf]bH
#S-Prim-hyper_map[zeros_like_leaf]:4!S-Prim-hyper_map[zeros_like_leaf]h
0.1.1 MindSpore*2.0.0:¾
¼
bprop_switch.1324:condbprop_switch.1324:[CNode]1325:1bprop_switch.1324:[CNode]1325:1".REF::MetaFuncGraph::hyper_map[zeros_like_leaf]:0Default/S-Prim-hyper_map[zeros_like_leaf]-op1026
º
bprop_switch.1324:tbbprop_switch.1324:[CNode]1326:2bprop_switch.1324:[CNode]1326:2".REF::MetaFuncGraph::hyper_map[zeros_like_leaf]:0Default/S-Prim-hyper_map[zeros_like_leaf]-op1027
Ç
bprop_switch.1324:cond
bprop_switch.1324:dout
bprop_switch.1324:[CNode]1326:2bprop_switch.1324:[CNode]1327:3bprop_switch.1324:[CNode]1327:3"REF::S-Prim-Switch:4:Default/S-Prim-Switch-op1028
º
bprop_switch.1324:fbbprop_switch.1324:[CNode]1328:5bprop_switch.1324:[CNode]1328:5".REF::MetaFuncGraph::hyper_map[zeros_like_leaf]:0Default/S-Prim-hyper_map[zeros_like_leaf]-op1029
Ç
bprop_switch.1324:cond
bprop_switch.1324:[CNode]1328:5
bprop_switch.1324:doutbprop_switch.1324:[CNode]1329:6bprop_switch.1324:[CNode]1329:6"REF::S-Prim-Switch:7:Default/S-Prim-Switch-op1030
ß
bprop_switch.1324:[CNode]1325:1
bprop_switch.1324:[CNode]1327:3
bprop_switch.1324:[CNode]1329:6bprop_switch.1324:[CNode]1330:8bprop_switch.1324:[CNode]1330:8"REF::S-Prim-MakeTuple:9:Default/S-Prim-MakeTuple-op1031bprop_switch.1324*
bprop_switch.1324:cond*
bprop_switch.1324:tb*
bprop_switch.1324:fb*
bprop_switch.1324:out*
bprop_switch.1324:dout2!
bprop_switch.1324:[CNode]1330:8:@d3264eca4875ab1cf6668a10d5327962d377f004f7da2be28a63703caa149c45J/grad_implementations.pyPb
S-Prim-Switch:7 S-Prim-Switchb&
S-Prim-MakeTuple:9S-Prim-MakeTupleb
S-Prim-Switch:4 S-Prim-Switchh

View File

@ -0,0 +1,14 @@
0.1.1 MindSpore*2.0.0:Œ
r$get_bprop_tensorshape.21:[CNode]22:1$get_bprop_tensorshape.21:[CNode]22:1" REF::bprop.23:Default/bprop.23-op13get_bprop_tensorshape.21*
get_bprop_tensorshape.21:self*
get_bprop_tensorshape.21:x*
get_bprop_tensorshape.21:out*
get_bprop_tensorshape.21:dout2&
$get_bprop_tensorshape.21:[CNode]22:1:@62dc7ba53f71834ce824222195cb6a9af0b1f9d5c7e86cd3ac9eecfb0e3e1b3dJ/grad_array_ops.pyBÉ
¨
get_bprop_tensorshape.21:xbprop.23:[CNode]24:2bprop.23:[CNode]24:2".REF::MetaFuncGraph::hyper_map[zeros_like_leaf]:.Default/S-Prim-hyper_map[zeros_like_leaf]-op14
z
bprop.23:[CNode]24:2bprop.23:[CNode]25:3bprop.23:[CNode]25:3"REF::S-Prim-MakeTuple:4:Default/S-Prim-MakeTuple-op15bprop.232
bprop.23:[CNode]25:3Pb&
S-Prim-MakeTuple:4S-Prim-MakeTupleh

View File

@ -1,19 +1,19 @@
0.1.1 MindSpore*2.0.0:ð
{'get_bprop_truncate_div.409:[CNode]415:1'get_bprop_truncate_div.409:[CNode]415:1"REF::bprop.416:Default/bprop.416-op168get_bprop_truncate_div.409*!
get_bprop_truncate_div.409:self*+
)get_bprop_truncate_div.409:[Parameter]411*+
)get_bprop_truncate_div.409:[Parameter]413*+
)get_bprop_truncate_div.409:[Parameter]417*+
)get_bprop_truncate_div.409:[Parameter]4182)
'get_bprop_truncate_div.409:[CNode]415:1:@a8f96e783e49fe455f7fee2dbda70043761c9bb3cbcd1c9ad3cd37eecd1f80e5J/grad_math_ops.pyB³

)get_bprop_truncate_div.409:[Parameter]411bprop.416:[CNode]410:2bprop.416:[CNode]410:2"(REF::S-Prim-hyper_map[zeros_like_leaf]:3:/Default/S-Prim-hyper_map[zeros_like_leaf]-op169

)get_bprop_truncate_div.409:[Parameter]413bprop.416:[CNode]412:4bprop.416:[CNode]412:4"(REF::S-Prim-hyper_map[zeros_like_leaf]:3:/Default/S-Prim-hyper_map[zeros_like_leaf]-op170

bprop.416:[CNode]410:2
bprop.416:[CNode]412:4bprop.416:[CNode]414:5bprop.416:[CNode]414:5"REF::S-Prim-MakeTuple:6:Default/S-Prim-MakeTuple-op171 bprop.4162
bprop.416:[CNode]414:5Pb&
S-Prim-MakeTuple:6S-Prim-MakeTuplebH
#S-Prim-hyper_map[zeros_like_leaf]:3!S-Prim-hyper_map[zeros_like_leaf]h
0.1.1 MindSpore*2.0.0:Ð
<EFBFBD>)get_bprop_truncate_div.1125:[CNode]1126:1)get_bprop_truncate_div.1125:[CNode]1126:1"REF::bprop.1127:Default/bprop.1127-op886get_bprop_truncate_div.1125*"
get_bprop_truncate_div.1125:self*
get_bprop_truncate_div.1125:x*
get_bprop_truncate_div.1125:y*!
get_bprop_truncate_div.1125:out*"
get_bprop_truncate_div.1125:dout2+
)get_bprop_truncate_div.1125:[CNode]1126:1:@a8f96e783e49fe455f7fee2dbda70043761c9bb3cbcd1c9ad3cd37eecd1f80e5J/grad_math_ops.pyBº
´
get_bprop_truncate_div.1125:xbprop.1127:[CNode]1128:2bprop.1127:[CNode]1128:2".REF::MetaFuncGraph::hyper_map[zeros_like_leaf]:/Default/S-Prim-hyper_map[zeros_like_leaf]-op887
´
get_bprop_truncate_div.1125:ybprop.1127:[CNode]1129:3bprop.1127:[CNode]1129:3".REF::MetaFuncGraph::hyper_map[zeros_like_leaf]:/Default/S-Prim-hyper_map[zeros_like_leaf]-op888
¡
bprop.1127:[CNode]1128:2
bprop.1127:[CNode]1129:3bprop.1127:[CNode]1130:4bprop.1127:[CNode]1130:4"REF::S-Prim-MakeTuple:5:Default/S-Prim-MakeTuple-op889
bprop.11272
bprop.1127:[CNode]1130:4Pb&
S-Prim-MakeTuple:5S-Prim-MakeTupleh

View File

@ -1,22 +1,20 @@
0.1.1 MindSpore*2.0.0:ï
Å
bprop_tuple_getitem.394:data$bprop_tuple_getitem.394:[CNode]395:1$bprop_tuple_getitem.394:[CNode]395:1"(REF::S-Prim-hyper_map[zeros_like_leaf]:2:/Default/S-Prim-hyper_map[zeros_like_leaf]-op160
î
$bprop_tuple_getitem.394:[CNode]395:1
bprop_tuple_getitem.394:idx
bprop_tuple_getitem.394:dout$bprop_tuple_getitem.394:[CNode]396:3$bprop_tuple_getitem.394:[CNode]396:3"REF::S-Prim-tuple_setitem:4:"Default/S-Prim-tuple_setitem-op161
Ä
bprop_tuple_getitem.394:idx$bprop_tuple_getitem.394:[CNode]397:5$bprop_tuple_getitem.394:[CNode]397:5"(REF::S-Prim-hyper_map[zeros_like_leaf]:6:/Default/S-Prim-hyper_map[zeros_like_leaf]-op162
0.1.1 MindSpore*2.0.0: 
<EFBFBD>
$bprop_tuple_getitem.394:[CNode]396:3
$bprop_tuple_getitem.394:[CNode]397:5$bprop_tuple_getitem.394:[CNode]398:7$bprop_tuple_getitem.394:[CNode]398:7"REF::S-Prim-MakeTuple:8:Default/S-Prim-MakeTuple-op163bprop_tuple_getitem.394*
bprop_tuple_getitem.394:data*
bprop_tuple_getitem.394:idx*
bprop_tuple_getitem.394:out*
bprop_tuple_getitem.394:dout2&
$bprop_tuple_getitem.394:[CNode]398:7:@3b469bb8469b8fc1c99e64800ab2ec83690845a04557bbbf06a651184fbe83baJ/grad_implementations.pyPbH
#S-Prim-hyper_map[zeros_like_leaf]:2!S-Prim-hyper_map[zeros_like_leaf]b&
S-Prim-MakeTuple:8S-Prim-MakeTuplebH
#S-Prim-hyper_map[zeros_like_leaf]:6!S-Prim-hyper_map[zeros_like_leaf]b.
S-Prim-tuple_setitem:4S-Prim-tuple_setitemh
bprop_tuple_getitem.1313:data&bprop_tuple_getitem.1313:[CNode]1314:1&bprop_tuple_getitem.1313:[CNode]1314:1".REF::MetaFuncGraph::hyper_map[zeros_like_leaf]:0Default/S-Prim-hyper_map[zeros_like_leaf]-op1018
÷
&bprop_tuple_getitem.1313:[CNode]1314:1
bprop_tuple_getitem.1313:idx
bprop_tuple_getitem.1313:dout&bprop_tuple_getitem.1313:[CNode]1315:2&bprop_tuple_getitem.1313:[CNode]1315:2"REF::S-Prim-tuple_setitem:3:#Default/S-Prim-tuple_setitem-op1019
Ð
bprop_tuple_getitem.1313:idx&bprop_tuple_getitem.1313:[CNode]1316:4&bprop_tuple_getitem.1313:[CNode]1316:4".REF::MetaFuncGraph::hyper_map[zeros_like_leaf]:0Default/S-Prim-hyper_map[zeros_like_leaf]-op1020
Ú
&bprop_tuple_getitem.1313:[CNode]1315:2
&bprop_tuple_getitem.1313:[CNode]1316:4&bprop_tuple_getitem.1313:[CNode]1317:5&bprop_tuple_getitem.1313:[CNode]1317:5"REF::S-Prim-MakeTuple:6:Default/S-Prim-MakeTuple-op1021bprop_tuple_getitem.1313*
bprop_tuple_getitem.1313:data*
bprop_tuple_getitem.1313:idx*
bprop_tuple_getitem.1313:out*
bprop_tuple_getitem.1313:dout2(
&bprop_tuple_getitem.1313:[CNode]1317:5:@3b469bb8469b8fc1c99e64800ab2ec83690845a04557bbbf06a651184fbe83baJ/grad_implementations.pyPb.
S-Prim-tuple_setitem:3S-Prim-tuple_setitemb&
S-Prim-MakeTuple:6S-Prim-MakeTupleh

View File

@ -0,0 +1,22 @@
0.1.1 MindSpore*2.0.0:Ê
q"get_bprop_unstack.924:[CNode]925:1"get_bprop_unstack.924:[CNode]925:1"REF::bprop.926:Default/bprop.926-op749
<[ValueNode]927[ValueNode]927"Constant*
value*axis€
<EFBFBD>
get_bprop_unstack.924:self
[ValueNode]927get_bprop_unstack.924:axis:2get_bprop_unstack.924:axis:2"REF::getattr:3:Default/getattr-op750get_bprop_unstack.924*
get_bprop_unstack.924:self*
get_bprop_unstack.924:x*
get_bprop_unstack.924:out*
get_bprop_unstack.924:dout2$
"get_bprop_unstack.924:[CNode]925:1:@c4c274247cc015c77285a377298c8228ea58370ed44389f89a8ac0e06f9aec24J/grad_array_ops.pyBÔ
Ì
get_bprop_unstack.924:axis:2bprop.926:unstack_grad:4bprop.926:unstack_grad:4"8REF::ClassType::mindspore.ops.operations.array_ops.Stack:>Default/class 'mindspore.ops.operations.array_ops.Stack'-op751
b
get_bprop_unstack.924:doutbprop.926:out:5bprop.926:out:5"REF::bprop.926:unstack_grad:4:752
z
bprop.926:out:5bprop.926:[CNode]928:6bprop.926:[CNode]928:6"REF::S-Prim-MakeTuple:7:Default/S-Prim-MakeTuple-op753 bprop.9262
bprop.926:[CNode]928:6Pb
getattr:3getattrb&
S-Prim-MakeTuple:7S-Prim-MakeTupleh

View File

@ -1,17 +1,15 @@
0.1.1 MindSpore*2.0.0:ð
Å
bprop_update_state.480:u_monad#bprop_update_state.480:[CNode]481:1#bprop_update_state.480:[CNode]481:1"(REF::S-Prim-hyper_map[zeros_like_leaf]:2:/Default/S-Prim-hyper_map[zeros_like_leaf]-op206
¿
bprop_update_state.480:x#bprop_update_state.480:[CNode]482:3#bprop_update_state.480:[CNode]482:3"(REF::S-Prim-hyper_map[zeros_like_leaf]:4:/Default/S-Prim-hyper_map[zeros_like_leaf]-op207
Í
#bprop_update_state.480:[CNode]481:1
#bprop_update_state.480:[CNode]482:3#bprop_update_state.480:[CNode]483:5#bprop_update_state.480:[CNode]483:5"REF::S-Prim-MakeTuple:6:Default/S-Prim-MakeTuple-op208bprop_update_state.480*
bprop_update_state.480:u_monad*
bprop_update_state.480:x*
bprop_update_state.480:out*
bprop_update_state.480:dout2%
#bprop_update_state.480:[CNode]483:5:@adde661b2e2f38680f80f0269960db717f31a852326a1f3bda24e010ea8bb153J/grad_implementations.pyPb&
S-Prim-MakeTuple:6S-Prim-MakeTuplebH
#S-Prim-hyper_map[zeros_like_leaf]:2!S-Prim-hyper_map[zeros_like_leaf]bH
#S-Prim-hyper_map[zeros_like_leaf]:4!S-Prim-hyper_map[zeros_like_leaf]h
0.1.1 MindSpore*2.0.0:<3A>
Ń
bprop_update_state.1331:u_monad%bprop_update_state.1331:[CNode]1332:1%bprop_update_state.1331:[CNode]1332:1".REF::MetaFuncGraph::hyper_map[zeros_like_leaf]:0Default/S-Prim-hyper_map[zeros_like_leaf]-op1032
Ë
bprop_update_state.1331:x%bprop_update_state.1331:[CNode]1333:2%bprop_update_state.1331:[CNode]1333:2".REF::MetaFuncGraph::hyper_map[zeros_like_leaf]:0Default/S-Prim-hyper_map[zeros_like_leaf]-op1033
Ö
%bprop_update_state.1331:[CNode]1332:1
%bprop_update_state.1331:[CNode]1333:2%bprop_update_state.1331:[CNode]1334:3%bprop_update_state.1331:[CNode]1334:3"REF::S-Prim-MakeTuple:4:Default/S-Prim-MakeTuple-op1034bprop_update_state.1331*!
bprop_update_state.1331:u_monad*
bprop_update_state.1331:x*
bprop_update_state.1331:out*
bprop_update_state.1331:dout2'
%bprop_update_state.1331:[CNode]1334:3:@adde661b2e2f38680f80f0269960db717f31a852326a1f3bda24e010ea8bb153J/grad_implementations.pyPb&
S-Prim-MakeTuple:4S-Prim-MakeTupleh

View File

@ -1,15 +1,15 @@
0.1.1 MindSpore*2.0.0:
n"get_bprop_zeroslike.35:[CNode]39:1"get_bprop_zeroslike.35:[CNode]39:1" REF::bprop.40:Default/bprop.40-op14get_bprop_zeroslike.35*
get_bprop_zeroslike.35:self*&
$get_bprop_zeroslike.35:[Parameter]37*&
$get_bprop_zeroslike.35:[Parameter]41*&
$get_bprop_zeroslike.35:[Parameter]422$
"get_bprop_zeroslike.35:[CNode]39:1:@019bc2e3d6af94c73e4507b14158fc13a846c43d6f52e4d09d3044897de5461fJ/grad_array_ops.pyBÍ
¬
$get_bprop_zeroslike.35:[Parameter]37bprop.40:[CNode]36:2bprop.40:[CNode]36:2"(REF::S-Prim-hyper_map[zeros_like_leaf]:3:.Default/S-Prim-hyper_map[zeros_like_leaf]-op15
z
bprop.40:[CNode]36:2bprop.40:[CNode]38:4bprop.40:[CNode]38:4"REF::S-Prim-MakeTuple:5:Default/S-Prim-MakeTuple-op16bprop.402
bprop.40:[CNode]38:4PbH
#S-Prim-hyper_map[zeros_like_leaf]:3!S-Prim-hyper_map[zeros_like_leaf]b&
S-Prim-MakeTuple:5S-Prim-MakeTupleh
0.1.1 MindSpore*2.0.0:
{&get_bprop_zeroslike.1001:[CNode]1002:1&get_bprop_zeroslike.1001:[CNode]1002:1"REF::bprop.1003:Default/bprop.1003-op802get_bprop_zeroslike.1001*
get_bprop_zeroslike.1001:self*
get_bprop_zeroslike.1001:x*
get_bprop_zeroslike.1001:out*
get_bprop_zeroslike.1001:dout2(
&get_bprop_zeroslike.1001:[CNode]1002:1:@019bc2e3d6af94c73e4507b14158fc13a846c43d6f52e4d09d3044897de5461fJ/grad_array_ops.pyBæ
±
get_bprop_zeroslike.1001:xbprop.1003:[CNode]1004:2bprop.1003:[CNode]1004:2".REF::MetaFuncGraph::hyper_map[zeros_like_leaf]:/Default/S-Prim-hyper_map[zeros_like_leaf]-op803

bprop.1003:[CNode]1004:2bprop.1003:[CNode]1005:3bprop.1003:[CNode]1005:3"REF::S-Prim-MakeTuple:4:Default/S-Prim-MakeTuple-op804
bprop.10032
bprop.1003:[CNode]1005:3Pb&
S-Prim-MakeTuple:4S-Prim-MakeTupleh

View File

@ -24,18 +24,19 @@ from mindspore._c_expression import _export_bprop_mindir
from mindspore.ops._grad.grad_base import bprop_getters, bprops
logging.getLogger().setLevel(logging.INFO)
os.environ['MS_DEV_EXPORT_BPROP_MINDIR'] = '1'
def run_generate(bprop_mindir_install_dir, bprop_map):
def run_generate(bprop_mindir_install_dir, bprop_map, force_update):
for op_name in bprop_map.keys():
if not isinstance(op_name, str):
continue
if os.path.isfile(os.path.join(bprop_mindir_install_dir, op_name + "_bprop.mindir")):
_export_bprop_mindir(op_name)
_export_bprop_mindir(op_name, force_update)
def run_generate_with_op_name(op_name):
_export_bprop_mindir(op_name)
def run_generate_with_op_name(op_name, force_update):
_export_bprop_mindir(op_name, force_update)
if __name__ == "__main__":
@ -48,6 +49,9 @@ if __name__ == "__main__":
help="The name of the operator whose bprop is to be transformed to mindir file. If not \
specified, it will generate all the mindir files of bprop which has already been transform \
to mindir. Default: None.")
parser.add_argument('--force', type=bool, default=False,
help="Whether to force to generate mindir file of a bprop function regardless of nothing \
changed. Default: False.")
args_opt = parser.parse_args()
# mindspore/ops/_grad/__init__.py
@ -79,12 +83,13 @@ if __name__ == "__main__":
shutil.copy(file_path, bprop_installed_dir)
logging.info("copied: %s", file_path)
force = args_opt.force
op = args_opt.op
if op is None:
run_generate(bprop_mindir_export_dir, bprop_getters)
run_generate(bprop_mindir_export_dir, bprops)
run_generate(bprop_mindir_export_dir, bprop_getters, force)
run_generate(bprop_mindir_export_dir, bprops, force)
else:
run_generate_with_op_name(op)
run_generate_with_op_name(op, force)
# If the specified bprop source directory is not on the mindspore installed path,
# copy the generated mindir files to the mindir directory relative to the specified path.
@ -103,3 +108,5 @@ if __name__ == "__main__":
else:
logging.info("The new bprop mindir files has been generated in the path \"%s\", "
"copy the *.mindir to your mindspore path or PYTHONPATH if necessary.", bprop_mindir_export_dir)
del os.environ['MS_DEV_EXPORT_BPROP_MINDIR']

View File

@ -1,12 +1,11 @@
0.1.1 MindSpore*2.0.0:ì
Â
bprop_stop_gradient.470:x$bprop_stop_gradient.470:[CNode]471:1$bprop_stop_gradient.470:[CNode]471:1"(REF::S-Prim-hyper_map[zeros_like_leaf]:2:/Default/S-Prim-hyper_map[zeros_like_leaf]-op198
«
$bprop_stop_gradient.470:[CNode]471:1$bprop_stop_gradient.470:[CNode]472:3$bprop_stop_gradient.470:[CNode]472:3"REF::S-Prim-MakeTuple:4:Default/S-Prim-MakeTuple-op199bprop_stop_gradient.470*
bprop_stop_gradient.470:x*
bprop_stop_gradient.470:out*
bprop_stop_gradient.470:dout2&
$bprop_stop_gradient.470:[CNode]472:3:@35a8eb6f9d6633aef0da1b8dc181d6920f11a7695b002789ad4d8c166d922ac0J/grad_implementations.pyPb&
S-Prim-MakeTuple:4S-Prim-MakeTuplebH
#S-Prim-hyper_map[zeros_like_leaf]:2!S-Prim-hyper_map[zeros_like_leaf]h
0.1.1 MindSpore*2.0.0:…
Î
bprop_stop_gradient.1321:x&bprop_stop_gradient.1321:[CNode]1322:1&bprop_stop_gradient.1321:[CNode]1322:1".REF::MetaFuncGraph::hyper_map[zeros_like_leaf]:0Default/S-Prim-hyper_map[zeros_like_leaf]-op1024
²
&bprop_stop_gradient.1321:[CNode]1322:1&bprop_stop_gradient.1321:[CNode]1323:2&bprop_stop_gradient.1321:[CNode]1323:2"REF::S-Prim-MakeTuple:3:Default/S-Prim-MakeTuple-op1025bprop_stop_gradient.1321*
bprop_stop_gradient.1321:x*
bprop_stop_gradient.1321:out*
bprop_stop_gradient.1321:dout2(
&bprop_stop_gradient.1321:[CNode]1323:2:@35a8eb6f9d6633aef0da1b8dc181d6920f11a7695b002789ad4d8c166d922ac0J/grad_implementations.pyPb&
S-Prim-MakeTuple:3S-Prim-MakeTupleh

View File

@ -771,6 +771,7 @@ def constexpr(fn=None, get_instance=True, name=None, reuse_result=True, check=Tr
op_name = name if name else fn.__name__
PrimitiveWithInfer.__init__(self, op_name)
self.set_const_prim(True)
self.fn = fn
if not reuse_result:
self.add_prim_attr('forbid_reuse_result', True)

View File

@ -23,8 +23,28 @@ from __future__ import absolute_import
from __future__ import division
from mindspore.ops._register_for_op import Registry
from mindspore.ops.primitive import Primitive
vm_impl_registry = Registry()
class VmImplRegistry(Registry):
"""Registry class for registry functions for vm_impl on Primitive or string."""
def register(self, prim):
"""register the function."""
def deco(fn):
"""Decorate the function."""
if isinstance(prim, str):
self[prim] = fn
elif issubclass(prim, Primitive):
self[id(prim)] = fn
self[prim.__name__] = fn
return fn
return deco
vm_impl_registry = VmImplRegistry()
"""
Register the python primitive debug implementation function of a primitive operator.

View File

@ -18,7 +18,6 @@ import os
import numpy as np
import mindspore.nn as nn
from mindspore import context
from mindspore import Tensor, Parameter
from mindspore.ops import operations as P
import mindspore.ops.functional as F
@ -28,6 +27,7 @@ from mindspore.common.initializer import initializer
import mindspore.ops._grad as g
from mindspore.ops._grad.grad_base import bprop_getters, bprops
from mindspore._c_expression import _check_bprop_mindir
from mindspore import mutable
class Net(nn.Cell):
@ -506,7 +506,6 @@ def test_switch():
Description: Compile the backward graph for the switch op.
Expectation: Load the bprop mindir successfully.
"""
context.set_context(mode=context.PYNATIVE_MODE)
class SwitchNet(nn.Cell):
def construct(self, x, y):
@ -652,3 +651,242 @@ def test_relu_v2():
relu_v2 = Net(P.ReLUV2())
grad = GradNet(relu_v2)
grad.compile(x)
def test_cast():
"""
Feature: Bprop pre-compilation.
Description: Compile the backward graph for the cast op.
Expectation: Load the bprop mindir successfully.
"""
x = Tensor(np.array([1.0]), mstype.float32)
cast = Net(P.Cast())
grad = GradNet(cast)
grad.compile(x, mstype.int32)
def test_split():
"""
Feature: Bprop pre-compilation.
Description: Compile the backward graph for the split op.
Expectation: Load the bprop mindir successfully.
"""
x = Tensor(np.array([[1, 1, 1, 1], [2, 2, 2, 2]]), mstype.int32)
split = Net(P.Split(1, 2))
grad = GradNet(split)
grad.compile(x)
def test_reshape():
"""
Feature: Bprop pre-compilation.
Description: Compile the backward graph for the reshape op.
Expectation: Load the bprop mindir successfully.
"""
x = Tensor(np.array([[-0.1, 0.3, 3.6], [0.4, 0.5, -3.2]]), mstype.float32)
reshape = Net(P.Reshape())
grad = GradNet(reshape)
grad.compile(x, (3, 2))
def test_expand_dims():
"""
Feature: Bprop pre-compilation.
Description: Compile the backward graph for the expand_dims op.
Expectation: Load the bprop mindir successfully.
"""
x = Tensor(np.array([[2, 2], [2, 2]]), mstype.float32)
expand_dims = Net(P.ExpandDims())
grad = GradNet(expand_dims)
grad.compile(x, 0)
def test_squeeze():
"""
Feature: Bprop pre-compilation.
Description: Compile the backward graph for the squeeze op.
Expectation: Load the bprop mindir successfully.
"""
x = Tensor(np.ones(shape=[3, 2, 1]), mstype.float32)
squeeze = Net(P.Squeeze(2))
grad = GradNet(squeeze)
grad.compile(x)
def test_flatten():
"""
Feature: Bprop pre-compilation.
Description: Compile the backward graph for the flatten op.
Expectation: Load the bprop mindir successfully.
"""
x = Tensor(np.ones(shape=[1, 2, 3, 4]), mstype.float32)
flatten = Net(P.Flatten())
grad = GradNet(flatten)
grad.compile(x)
def test_tile():
"""
Feature: Bprop pre-compilation.
Description: Compile the backward graph for the tile op.
Expectation: Load the bprop mindir successfully.
"""
x = Tensor(np.array([[1, 2], [3, 4]]), mstype.float32)
tile = Net(P.Tile())
grad = GradNet(tile)
grad.compile(x, (2, 3))
def test_embedding_lookup():
"""
Feature: Bprop pre-compilation.
Description: Compile the backward graph for the embedding_lookup op.
Expectation: Load the bprop mindir successfully.
"""
input_params = Tensor(np.array([[8, 9], [10, 11], [12, 13], [14, 15]]), mstype.float32)
input_indices = Tensor(np.array([[5, 2], [8, 5]]), mstype.int32)
offset = 4
embedding_lookup = Net(P.EmbeddingLookup())
grad = GradNet(embedding_lookup)
grad.compile(input_params, input_indices, offset)
def test_padding():
"""
Feature: Bprop pre-compilation.
Description: Compile the backward graph for the padding op.
Expectation: Load the bprop mindir successfully.
"""
x = Tensor(np.array([[8], [10]]), mstype.float32)
padding = Net(P.Padding(4))
grad = GradNet(padding)
grad.compile(x)
def test_transpose():
"""
Feature: Bprop pre-compilation.
Description: Compile the backward graph for the transpose op.
Expectation: Load the bprop mindir successfully.
"""
x = Tensor(np.array([[[1, 2, 3], [4, 5, 6]], [[7, 8, 9], [10, 11, 12]]]), mstype.float32)
perm = (0, 2, 1)
transpose = Net(P.Transpose())
grad = GradNet(transpose)
grad.compile(x, perm)
def test_concat():
"""
Feature: Bprop pre-compilation.
Description: Compile the backward graph for the concat op.
Expectation: Load the bprop mindir successfully.
"""
x1 = Tensor(np.array([[0, 1], [2, 1]]).astype(np.float32))
x2 = Tensor(np.array([[0, 1], [2, 1]]).astype(np.float32))
concat = Net(P.Concat())
grad = GradNet(concat)
grad.compile(mutable((x1, x2)))
def test_slice():
"""
Feature: Bprop pre-compilation.
Description: Compile the backward graph for the slice op.
Expectation: Load the bprop mindir successfully.
"""
x = Tensor(np.array([[[1, 1, 1], [2, 2, 2]],
[[3, 3, 3], [4, 4, 4]],
[[5, 5, 5], [6, 6, 6]]]).astype(np.int32))
slice_net = Net(P.Slice())
grad = GradNet(slice_net)
grad.compile(x, (1, 0, 0), (1, 1, 3))
def test_gather():
"""
Feature: Bprop pre-compilation.
Description: Compile the backward graph for the gather op.
Expectation: Load the bprop mindir successfully.
"""
input_params = Tensor(np.array([1, 2, 3, 4, 5, 6, 7]), mstype.float32)
input_indices = Tensor(np.array([0, 2, 4, 2, 6]), mstype.int32)
gather = Net(P.Gather())
grad = GradNet(gather)
grad.compile(input_params, input_indices, 0)
def test_gather_d():
"""
Feature: Bprop pre-compilation.
Description: Compile the backward graph for the gather_d op.
Expectation: Load the bprop mindir successfully.
"""
x = Tensor(np.array([[1, 2], [3, 4]]), mstype.int32)
index = Tensor(np.array([[0, 0], [1, 0]]), mstype.int32)
gather_d = Net(P.GatherD())
grad = GradNet(gather_d)
grad.compile(x, 1, index)
def test_sort():
"""
Feature: Bprop pre-compilation.
Description: Compile the backward graph for the sort op.
Expectation: Load the bprop mindir successfully.
"""
x = Tensor(np.array([[8, 2, 1], [5, 9, 3], [4, 6, 7]]), mstype.float16)
sort = Net(P.Sort())
grad = GradNet(sort)
grad.compile(x)
def test_reverse_v2():
"""
Feature: Bprop pre-compilation.
Description: Compile the backward graph for the reverse_v2 op.
Expectation: Load the bprop mindir successfully.
"""
x = Tensor(np.array([[1, 2, 3, 4], [5, 6, 7, 8]]), mstype.int32)
reverse_v2 = Net(P.ReverseV2(axis=[1]))
grad = GradNet(reverse_v2)
grad.compile(x)
def test_unstack():
"""
Feature: Bprop pre-compilation.
Description: Compile the backward graph for the unstack op.
Expectation: Load the bprop mindir successfully.
"""
x = Tensor(np.array([[1, 1, 1, 1], [2, 2, 2, 2]]))
unstack = Net(P.Unstack())
grad = GradNet(unstack)
grad.compile(x)
def test_strided_slice():
"""
Feature: Bprop pre-compilation.
Description: Compile the backward graph for the strided_slice op.
Expectation: Load the bprop mindir successfully.
"""
x = Tensor([[[1, 1, 1], [2, 2, 2]], [[3, 3, 3], [4, 4, 4]],
[[5, 5, 5], [6, 6, 6]]], mstype.float32)
strided_slice = Net(P.StridedSlice())
grad = GradNet(strided_slice)
grad.compile(x, (1, 0, 2), (3, 1, 3), (1, 1, 1))
def test_strided_slice_grad():
"""
Feature: Bprop pre-compilation.
Description: Compile the backward graph for the strided_slice_grad op.
Expectation: Load the bprop mindir successfully.
"""
x = Tensor([[[1, 1, 1], [2, 2, 2]], [[3, 3, 3], [4, 4, 4]],
[[5, 5, 5], [6, 6, 6]]], mstype.float32)
strided_slice = Net(P.StridedSlice())
grad = GradNet(strided_slice)
second_grad = GradNet(grad)
second_grad.compile(x, (1, 0, 2), (3, 1, 3), (1, 1, 1))

Some files were not shown because too many files have changed in this diff Show More