mindspore.dataset.deserialize ============================== .. image:: https://mindspore-website.obs.cn-north-4.myhuaweicloud.com/website-images/master/resource/_static/logo_source.svg :target: https://gitee.com/mindspore/mindspore/blob/master/docs/api/api_python/dataset/mindspore.dataset.deserialize.rst :alt: 查看源文件 .. 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` 指定的文件。