提交 1909d265 编写于 作者: L liyong

fix padded_sample default

上级 ca94916e
......@@ -2746,8 +2746,9 @@ class MindDataset(MappableDataset):
def get_args(self):
args = super().get_args()
padded_sample = {}
padded_sample = None
if self.padded_sample:
padded_sample = {}
for k, v in self.padded_sample.items():
if isinstance(v, np.ndarray):
padded_sample[k] = v.tobytes()
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册