当前位置:网站首页>【网络迁移】Pytorch中的torch.is_tensor对应MindSpore哪个接口

【网络迁移】Pytorch中的torch.is_tensor对应MindSpore哪个接口

2022-08-10 03:28:00 小乐快乐

请问,在做mindspore模型迁移时,Pytorch中的torch.is_tensor对应MindSpore哪个接口呀?

建议尝试下

if isinstance(tup, Tensor):

原网站

版权声明
本文为[小乐快乐]所创,转载请带上原文链接,感谢
https://blog.csdn.net/weixin_45666880/article/details/126249351