mindspore/docs/api/api_python/dataset/mindspore.dataset.deseriali...

17 lines
851 B
ReStructuredText
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

mindspore.dataset.deserialize
==============================
.. py:function:: mindspore.dataset.deserialize(input_dict=None, json_filepath=None)
数据处理管道反序列化支持输入Python字典或使用 `mindspore.dataset.serialize()` 接口生成的JSON文件。
参数:
- **input_dict** (dict) - 以Python字典存储的数据处理管道。默认值None。
- **json_filepath** (str) - 数据处理管道JSON文件的路径该文件以通用JSON格式存储了数据处理管道信息用户可通过 `mindspore.dataset.serialize()` 接口生成。默认值None。
返回:
当反序列化成功时将返回Dataset对象当无法被反序列化时deserialize将会失败且返回None。
异常:
- **OSError** - 无法打开 `json_filepath` 指定的文件。