2.3K Star 8.1K Fork 4.3K

GVPMindSpore / mindspore

 / 详情

ops.cat不支持bool类型

TODO
Bug-Report
创建于  
2024-03-28 19:09
name about labels
Bug Report Use this template for reporting a bug kind/bug

Environment / 环境信息 (Mandatory / 必填)

  • Hardware Environment(Ascend/GPU/CPU) / 硬件环境:

Please delete the backend not involved / 请删除不涉及的后端:
/device ascend

  • Software Environment / 软件环境 (Mandatory / 必填):
    -- MindSpore version (e.g., 1.7.0.Bxxx) : 2.2.11

  • Excute Mode / 执行模式 (Mandatory / 必填)(PyNative/Graph):

Please delete the mode not involved / 请删除不涉及的模式:
/mode pynative

Steps to reproduce the issue / 重现步骤 (Mandatory / 必填)

    x = Tensor(np.random.randint((0,2), (1,128)), dtype=ms.bool_)
    y = Tensor(np.random.randint((0,2), (1,128)), dtype=ms.bool_)
    z = ops.cat((x, y))
    print(z)

Related log / screenshot / 日志 / 截图 (Mandatory / 必填)


Traceback (most recent call last):
  File "mindone/models/dit.py", line 914, in <module>
    test_cat()
  File "mindone/models/dit.py", line 896, in test_cat
    print(z)
  File "/home/ma-user/anaconda3/envs/PyTorch-1.11.0/lib/python3.7/site-packages/mindspore/common/_stub_tensor.py", line 49, in fun
    return method(*arg, **kwargs)
  File "/home/ma-user/anaconda3/envs/PyTorch-1.11.0/lib/python3.7/site-packages/mindspore/common/tensor.py", line 493, in __str__
    return str(self.asnumpy())
  File "/home/ma-user/anaconda3/envs/PyTorch-1.11.0/lib/python3.7/site-packages/mindspore/common/tensor.py", line 964, in asnumpy
    return Tensor_.asnumpy(self)
TypeError: Invalid Kernel Build Info! Kernel type: AICPU_KERNEL, node: Default/Concat-op0
need build info: 
(<Int64xDefaultFormat>, <BoolxDefaultFormat>, <BoolxDefaultFormat>, object_type: [Tensor,Tensor,Tensor]) -> (<BoolxDefaultFormat>, object_type: [Tensor], kernel_type: AICPU_KERNEL, op_type: UNKNOWN_OP_TYPE)
candidate build info list: 
(<Int32xDefaultFormat>, object_type: [Tensor]) -> (<Int8xDefaultFormat>, object_type: [Tensor], kernel_type: AICPU_KERNEL, op_type: UNKNOWN_OP_TYPE)
(<Int32xDefaultFormat>, object_type: [Tensor]) -> (<Int16xDefaultFormat>, object_type: [Tensor], kernel_type: AICPU_KERNEL, op_type: UNKNOWN_OP_TYPE)
(<Int32xDefaultFormat>, object_type: [Tensor]) -> (<Int32xDefaultFormat>, object_type: [Tensor], kernel_type: AICPU_KERNEL, op_type: UNKNOWN_OP_TYPE)
(<Int32xDefaultFormat>, object_type: [Tensor]) -> (<Int64xDefaultFormat>, object_type: [Tensor], kernel_type: AICPU_KERNEL, op_type: UNKNOWN_OP_TYPE)
(<Int32xDefaultFormat>, object_type: [Tensor]) -> (<UInt8xDefaultFormat>, object_type: [Tensor], kernel_type: AICPU_KERNEL, op_type: UNKNOWN_OP_TYPE)
(<Int32xDefaultFormat>, object_type: [Tensor]) -> (<UInt16xDefaultFormat>, object_type: [Tensor], kernel_type: AICPU_KERNEL, op_type: UNKNOWN_OP_TYPE)
(<Int32xDefaultFormat>, object_type: [Tensor]) -> (<UInt32xDefaultFormat>, object_type: [Tensor], kernel_type: AICPU_KERNEL, op_type: UNKNOWN_OP_TYPE)
(<Int32xDefaultFormat>, object_type: [Tensor]) -> (<UInt64xDefaultFormat>, object_type: [Tensor], kernel_type: AICPU_KERNEL, op_type: UNKNOWN_OP_TYPE)
(<Int32xDefaultFormat>, object_type: [Tensor]) -> (<Float16xDefaultFormat>, object_type: [Tensor], kernel_type: AICPU_KERNEL, op_type: UNKNOWN_OP_TYPE)
(<Int32xDefaultFormat>, object_type: [Tensor]) -> (<Float32xDefaultFormat>, object_type: [Tensor], kernel_type: AICPU_KERNEL, op_type: UNKNOWN_OP_TYPE)
(<Int32xDefaultFormat>, object_type: [Tensor]) -> (<Float64xDefaultFormat>, object_type: [Tensor], kernel_type: AICPU_KERNEL, op_type: UNKNOWN_OP_TYPE)
(<Int32xDefaultFormat>, object_type: [Tensor]) -> (<Complex64xDefaultFormat>, object_type: [Tensor], kernel_type: AICPU_KERNEL, op_type: UNKNOWN_OP_TYPE)
(<Int32xDefaultFormat>, object_type: [Tensor]) -> (<Complex128xDefaultFormat>, object_type: [Tensor], kernel_type: AICPU_KERNEL, op_type: UNKNOWN_OP_TYPE)
(<Int64xDefaultFormat>, object_type: [Tensor]) -> (<Int8xDefaultFormat>, object_type: [Tensor], kernel_type: AICPU_KERNEL, op_type: UNKNOWN_OP_TYPE)
(<Int64xDefaultFormat>, object_type: [Tensor]) -> (<Int16xDefaultFormat>, object_type: [Tensor], kernel_type: AICPU_KERNEL, op_type: UNKNOWN_OP_TYPE)
(<Int64xDefaultFormat>, object_type: [Tensor]) -> (<Int32xDefaultFormat>, object_type: [Tensor], kernel_type: AICPU_KERNEL, op_type: UNKNOWN_OP_TYPE)
(<Int64xDefaultFormat>, object_type: [Tensor]) -> (<Int64xDefaultFormat>, object_type: [Tensor], kernel_type: AICPU_KERNEL, op_type: UNKNOWN_OP_TYPE)
(<Int64xDefaultFormat>, object_type: [Tensor]) -> (<UInt8xDefaultFormat>, object_type: [Tensor], kernel_type: AICPU_KERNEL, op_type: UNKNOWN_OP_TYPE)
(<Int64xDefaultFormat>, object_type: [Tensor]) -> (<UInt16xDefaultFormat>, object_type: [Tensor], kernel_type: AICPU_KERNEL, op_type: UNKNOWN_OP_TYPE)
(<Int64xDefaultFormat>, object_type: [Tensor]) -> (<UInt32xDefaultFormat>, object_type: [Tensor], kernel_type: AICPU_KERNEL, op_type: UNKNOWN_OP_TYPE)
(<Int64xDefaultFormat>, object_type: [Tensor]) -> (<UInt64xDefaultFormat>, object_type: [Tensor], kernel_type: AICPU_KERNEL, op_type: UNKNOWN_OP_TYPE)
(<Int64xDefaultFormat>, object_type: [Tensor]) -> (<Float16xDefaultFormat>, object_type: [Tensor], kernel_type: AICPU_KERNEL, op_type: UNKNOWN_OP_TYPE)
(<Int64xDefaultFormat>, object_type: [Tensor]) -> (<Float32xDefaultFormat>, object_type: [Tensor], kernel_type: AICPU_KERNEL, op_type: UNKNOWN_OP_TYPE)
(<Int64xDefaultFormat>, object_type: [Tensor]) -> (<Float64xDefaultFormat>, object_type: [Tensor], kernel_type: AICPU_KERNEL, op_type: UNKNOWN_OP_TYPE)
(<Int64xDefaultFormat>, object_type: [Tensor]) -> (<Complex64xDefaultFormat>, object_type: [Tensor], kernel_type: AICPU_KERNEL, op_type: UNKNOWN_OP_TYPE)
(<Int64xDefaultFormat>, object_type: [Tensor]) -> (<Complex128xDefaultFormat>, object_type: [Tensor], kernel_type: AICPU_KERNEL, op_type: UNKNOWN_OP_TYPE)

----------------------------------------------------
- C++ Call Stack: (For framework developers)
----------------------------------------------------
mindspore/ccsrc/plugin/device/ascend/hal/hardware/ge_kernel_executor.cc:407 OptimizeGraph

[ERROR] PIPELINE(3655146,ffffa3d1cb70,python):2024-03-28-19:04:57.631.482 [mindspore/ccsrc/pipeline/jit/ps/pipeline.cc:2328] ClearResAtexit] Check exception before process exit: Invalid Kernel Build Info! Kernel type: AICPU_KERNEL, node: Default/Concat-op0
need build info: 
(<Int64xDefaultFormat>, <BoolxDefaultFormat>, <BoolxDefaultFormat>, object_type: [Tensor,Tensor,Tensor]) -> (<BoolxDefaultFormat>, object_type: [Tensor], kernel_type: AICPU_KERNEL, op_type: UNKNOWN_OP_TYPE)
candidate build info list: 
(<Int32xDefaultFormat>, object_type: [Tensor]) -> (<Int8xDefaultFormat>, object_type: [Tensor], kernel_type: AICPU_KERNEL, op_type: UNKNOWN_OP_TYPE)
(<Int32xDefaultFormat>, object_type: [Tensor]) -> (<Int16xDefaultFormat>, object_type: [Tensor], kernel_type: AICPU_KERNEL, op_type: UNKNOWN_OP_TYPE)
(<Int32xDefaultFormat>, object_type: [Tensor]) -> (<Int32xDefaultFormat>, object_type: [Tensor], kernel_type: AICPU_KERNEL, op_type: UNKNOWN_OP_TYPE)
(<Int32xDefaultFormat>, object_type: [Tensor]) -> (<Int64xDefaultFormat>, object_type: [Tensor], kernel_type: AICPU_KERNEL, op_type: UNKNOWN_OP_TYPE)
(<Int32xDefaultFormat>, object_type: [Tensor]) -> (<UInt8xDefaultFormat>, object_type: [Tensor], kernel_type: AICPU_KERNEL, op_type: UNKNOWN_OP_TYPE)
(<Int32xDefaultFormat>, object_type: [Tensor]) -> (<UInt16xDefaultFormat>, object_type: [Tensor], kernel_type: AICPU_KERNEL, op_type: UNKNOWN_OP_TYPE)
(<Int32xDefaultFormat>, object_type: [Tensor]) -> (<UInt32xDefaultFormat>, object_type: [Tensor], kernel_type: AICPU_KERNEL, op_type: UNKNOWN_OP_TYPE)
(<Int32xDefaultFormat>, object_type: [Tensor]) -> (<UInt64xDefaultFormat>, object_type: [Tensor], kernel_type: AICPU_KERNEL, op_type: UNKNOWN_OP_TYPE)
(<Int32xDefaultFormat>, object_type: [Tensor]) -> (<Float16xDefaultFormat>, object_type: [Tensor], kernel_type: AICPU_KERNEL, op_type: UNKNOWN_OP_TYPE)
(<Int32xDefaultFormat>, object_type: [Tensor]) -> (<Float32xDefaultFormat>, object_type: [Tensor], kernel_type: AICPU_KERNEL, op_type: UNKNOWN_OP_TYPE)
(<Int32xDefaultFormat>, object_type: [Tensor]) -> (<Float64xDefaultFormat>, object_type: [Tensor], kernel_type: AICPU_KERNEL, op_type: UNKNOWN_OP_TYPE)
(<Int32xDefaultFormat>, object_type: [Tensor]) -> (<Complex64xDefaultFormat>, object_type: [Tensor], kernel_type: AICPU_KERNEL, op_type: UNKNOWN_OP_TYPE)
(<Int32xDefaultFormat>, object_type: [Tensor]) -> (<Complex128xDefaultFormat>, object_type: [Tensor], kernel_type: AICPU_KERNEL, op_type: UNKNOWN_OP_TYPE)
(<Int64xDefaultFormat>, object_type: [Tensor]) -> (<Int8xDefaultFormat>, object_type: [Tensor], kernel_type: AICPU_KERNEL, op_type: UNKNOWN_OP_TYPE)
(<Int64xDefaultFormat>, object_type: [Tensor]) -> (<Int16xDefaultFormat>, object_type: [Tensor], kernel_type: AICPU_KERNEL, op_type: UNKNOWN_OP_TYPE)
(<Int64xDefaultFormat>, object_type: [Tensor]) -> (<Int32xDefaultFormat>, object_type: [Tensor], kernel_type: AICPU_KERNEL, op_type: UNKNOWN_OP_TYPE)
(<Int64xDefaultFormat>, object_type: [Tensor]) -> (<Int64xDefaultFormat>, object_type: [Tensor], kernel_type: AICPU_KERNEL, op_type: UNKNOWN_OP_TYPE)
(<Int64xDefaultFormat>, object_type: [Tensor]) -> (<UInt8xDefaultFormat>, object_type: [Tensor], kernel_type: AICPU_KERNEL, op_type: UNKNOWN_OP_TYPE)
(<Int64xDefaultFormat>, object_type: [Tensor]) -> (<UInt16xDefaultFormat>, object_type: [Tensor], kernel_type: AICPU_KERNEL, op_type: UNKNOWN_OP_TYPE)
(<Int64xDefaultFormat>, object_type: [Tensor]) -> (<UInt32xDefaultFormat>, object_type: [Tensor], kernel_type: AICPU_KERNEL, op_type: UNKNOWN_OP_TYPE)
(<Int64xDefaultFormat>, object_type: [Tensor]) -> (<UInt64xDefaultFormat>, object_type: [Tensor], kernel_type: AICPU_KERNEL, op_type: UNKNOWN_OP_TYPE)
(<Int64xDefaultFormat>, object_type: [Tensor]) -> (<Float16xDefaultFormat>, object_type: [Tensor], kernel_type: AICPU_KERNEL, op_type: UNKNOWN_OP_TYPE)
(<Int64xDefaultFormat>, object_type: [Tensor]) -> (<Float32xDefaultFormat>, object_type: [Tensor], kernel_type: AICPU_KERNEL, op_type: UNKNOWN_OP_TYPE)
(<Int64xDefaultFormat>, object_type: [Tensor]) -> (<Float64xDefaultFormat>, object_type: [Tensor], kernel_type: AICPU_KERNEL, op_type: UNKNOWN_OP_TYPE)
(<Int64xDefaultFormat>, object_type: [Tensor]) -> (<Complex64xDefaultFormat>, object_type: [Tensor], kernel_type: AICPU_KERNEL, op_type: UNKNOWN_OP_TYPE)
(<Int64xDefaultFormat>, object_type: [Tensor]) -> (<Complex128xDefaultFormat>, object_type: [Tensor], kernel_type: AICPU_KERNEL, op_type: UNKNOWN_OP_TYPE)

----------------------------------------------------
- C++ Call Stack: (For framework developers)
----------------------------------------------------
mindspore/ccsrc/plugin/device/ascend/hal/hardware/ge_kernel_executor.cc:407 OptimizeGraph

评论 (2)

wangzeyangyi 创建了Bug-Report

Please assign maintainer to check this issue.
请为此issue分配处理人。
@wangzeyangyi

感谢您的提问,您可以评论//mindspore-assistant更快获取帮助:

  1. 如果您刚刚接触MindSpore,或许您可以在教程找到答案
  2. 如果您是资深Pytorch用户,您或许需要:
  1. 如果您遇到动态图问题,可以设置set_context(pynative_synchronize=True)查看报错栈协助定位
  2. 模型精度调优问题可参考官网调优指南
  3. 如果您反馈的是框架BUG,请确认您在ISSUE中提供了MindSpore版本、使用的后端类型(CPU、GPU、Ascend)、环境、训练的代码官方链接以及可以复现报错的代码的启动方式等必要的定位信息
  4. 如果您已经定位出问题根因,欢迎提交PR参与MindSpore开源社区,我们会尽快review

登录 后才可以发表评论

状态
负责人
项目
里程碑
Pull Requests
关联的 Pull Requests 被合并后可能会关闭此 issue
分支
开始日期   -   截止日期
-
置顶选项
优先级
预计工期 (小时)
参与者(2)
Python
1
https://gitee.com/mindspore/mindspore.git
git@gitee.com:mindspore/mindspore.git
mindspore
mindspore
mindspore

搜索帮助