Browse Source

Add Primitive type into ValueNameToConverterVector

tags/v1.6.0
Margaret_wangrui 4 years ago
parent
commit
ae7ff1d17d
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      mindspore/ccsrc/utils/convert_utils_py.cc

+ 3
- 1
mindspore/ccsrc/utils/convert_utils_py.cc View File

@@ -219,7 +219,9 @@ static ValueNameToConverterVector value_name_to_converter = {
// Monad
{Monad::kTypeId, [](const ValuePtr &value) -> py::object { return py::none(); }},
// Ellipsis
{Ellipsis::kTypeId, [](const ValuePtr &value) -> py::object { return py::ellipsis(); }}};
{Ellipsis::kTypeId, [](const ValuePtr &value) -> py::object { return py::ellipsis(); }},
// Primitive
{Primitive::kTypeId, [](const ValuePtr &value) -> py::object { return py::none(); }}};

py::object ValueToPyData(const ValuePtr &value) {
if (value == nullptr) {


Loading…
Cancel
Save