当前位置:网站首页>MindSpore官方RandomChoiceWithMask算子用例报错
MindSpore官方RandomChoiceWithMask算子用例报错
2022-08-10 03:28:00 【小乐快乐】
mindspore.ops 算子 RandomChoiceWithMask
rnd_choice_mask = ops.RandomChoiceWithMask() input_x = Tensor(np.ones(shape=[240000, 4]).astype(np.bool)) output_y, output_mask = rnd_choice_mask(input_x) result = output_y.shape print(result)
【日志信息】(可选,上传日志内容或者附件)
Traceback (most recent call last):
File "E:/Mindspore1.1/mindspore/model_zoo/official/cv/faster_rcnn/test.py", line 21, in <module>
output_y, output_mask = rnd_choice_mask(input_x)
File "F:\py375\lib\site-packages\mindspore\ops\primitive.py", line 247, in __call__
return _run_op(self, self.name, args)
File "F:\py375\lib\site-packages\mindspore\common\api.py", line 77, in wrapper
results = fn(*arg, **kwargs)
File "F:\py375\lib\site-packages\mindspore\ops\primitive.py", line 682, in _run_op
output = real_run_op(obj, op_name, args)
RuntimeError: mindspore\ccsrc\runtime\device\cpu\cpu_kernel_runtime.cc:469 Run] mindspore/core/utils/convert_utils_base.h:28 SizeToInt] The size_t value(3499211612) exceeds the maximum value of int.
#
Trace:
#
WARNING: Logging before InitGoogleLogging() is written to STDERR
[EXCEPTION] PRE_ACT(60896,3,?):2021-10-14 16:18:30 [mindspore/core/utils/convert_utils_base.h:28] SizeToInt] The size_t value(3499211612) exceeds the maximum value of int.
[EXCEPTION] DEVICE(60896,3,?):2021-10-14 16:18:30 [mindspore\ccsrc\runtime\device\cpu\cpu_kernel_runtime.cc:469] Run] mindspore/core/utils/convert_utils_base.h:28 SizeToInt] The size_t value(3499211612) exceeds the maximum value of int.
#
Trace:
[WARNING] PIPELINE(60896,1,?):2021-10-14 16:18:30 [mindspore\ccsrc\pipeline\jit\init.cc:310] operator()] Start releasing dataset handles...
[WARNING] PIPELINE(60896,1,?):2021-10-14 16:18:30 [mindspore\ccsrc\pipeline\jit\init.cc:313] operator()] End release dataset handles.

https://gitee.com/mindspore/mindspore/pulls/24880
https://gitee.com/mindspore/mindspore/pulls/24881
更正:该问题的修复pr链接如上,合入时间为10月15日。
边栏推荐
猜你喜欢
随机推荐
嵌入式分享合集32
(面试加分新技能) 总结11个ES2022中你可能遗漏的语法
维度表设计
...spread、命名空间、假报错、变化事件、async/await
转:不忧、不惧——成功领导者的自我成长和实现
c语言进阶篇:动态内存管理(相关函数、常见错误、笔试题)
从零开始配置 vim(9)——初始配置
小程序分包及分包预下载
【每日一题】大佬们进来看看吧
golang gin 框架读取无法用 body 传递的表单参数
从零开始配置 vim(10)——快捷键配置
使用 requestAnimationFrame 提升 web 性能
数据仓库建模实践
maya图片如何导入
goland控制台显示重叠问题解决方案
互联网公司高频面试题精讲:测试计划和测试方案有什么区别?
微信小程序相互跳转如何携带参数
uniapp 路由与页面跳转
如何让导电滑环信号更好
学习总结week4_1json









