forked from huawei/mindspore2022
Add cast transdata operators register format.
This commit is contained in:
parent
274444b4a0
commit
10a648081c
|
|
@ -104,6 +104,7 @@ cast_op_info = AiCPURegOp("Cast") \
|
|||
.dtype_format(DataType.I32_Default, DataType.F32_Default) \
|
||||
.dtype_format(DataType.I32_Default, DataType.F64_Default) \
|
||||
.dtype_format(DataType.I32_Default, DataType.BOOL_Default) \
|
||||
.dtype_format(DataType.I32_5HD, DataType.I64_5HD) \
|
||||
.dtype_format(DataType.I64_Default, DataType.U8_Default) \
|
||||
.dtype_format(DataType.I64_Default, DataType.U16_Default) \
|
||||
.dtype_format(DataType.I64_Default, DataType.U32_Default) \
|
||||
|
|
|
|||
|
|
@ -24,6 +24,8 @@ trans_data_op_info = AiCPURegOp("TransData") \
|
|||
.attr("dst_format", "str") \
|
||||
.dtype_format(DataType.U16_Default, DataType.U16_5HD) \
|
||||
.dtype_format(DataType.U16_5HD, DataType.U16_Default) \
|
||||
.dtype_format(DataType.I64_5HD, DataType.I64_Default) \
|
||||
.dtype_format(DataType.I32_5HD, DataType.I32_Default) \
|
||||
.get_op_info()
|
||||
|
||||
@op_info_register(trans_data_op_info)
|
||||
|
|
|
|||
Loading…
Reference in New Issue