forked from mindspore-Ecosystem/mindspore
modify adapter format type
This commit is contained in:
parent
1b4f0bd033
commit
9169c205bd
|
@ -306,7 +306,12 @@ std::string GetOpIOFormat(const AnfNodePtr &anf) {
|
|||
if (iter->second == "format") {
|
||||
ValuePtr format = prim->GetAttr("format");
|
||||
MS_EXCEPTION_IF_NULL(format);
|
||||
if (format->isa<Int64Imm>()) {
|
||||
CheckAndConvertUtils::ConvertAttrValueToString(prim->name(), "format", &format);
|
||||
return GetValue<std::string>(format);
|
||||
} else {
|
||||
return GetValue<std::string>(format);
|
||||
}
|
||||
}
|
||||
return iter->second;
|
||||
}
|
||||
|
|
|
@ -358,7 +358,7 @@ Parameters for learning rate:
|
|||
### [Export MindIR](#contents)
|
||||
|
||||
```shell
|
||||
python export.py --ckpt_file [CKPT_PATH] --file_name [FILE_NAME] --file_format [FILE_FORMAT]
|
||||
python export.py --model_file [CKPT_PATH] --file_name [FILE_NAME] --file_format [FILE_FORMAT]
|
||||
```
|
||||
|
||||
The ckpt_file parameter is required,
|
||||
|
|
|
@ -361,7 +361,7 @@ Parameters for learning rate:
|
|||
### [导出MindIR](#contents)
|
||||
|
||||
```shell
|
||||
python export.py --ckpt_file [CKPT_PATH] --file_name [FILE_NAME] --file_format [FILE_FORMAT]
|
||||
python export.py --model_file [CKPT_PATH] --file_name [FILE_NAME] --file_format [FILE_FORMAT]
|
||||
```
|
||||
|
||||
参数ckpt_file为必填项,
|
||||
|
|
Loading…
Reference in New Issue