Browse Source

fix type dismath for non format defination

tags/v0.5.0-beta
zhouneng 6 years ago
parent
commit
3ff626b504
7 changed files with 14 additions and 0 deletions
  1. +2
    -0
      mindspore/ops/_op_impl/tbe/acos.py
  2. +2
    -0
      mindspore/ops/_op_impl/tbe/acosh.py
  3. +2
    -0
      mindspore/ops/_op_impl/tbe/atan.py
  4. +2
    -0
      mindspore/ops/_op_impl/tbe/atan2.py
  5. +2
    -0
      mindspore/ops/_op_impl/tbe/atanh.py
  6. +2
    -0
      mindspore/ops/_op_impl/tbe/cos.py
  7. +2
    -0
      mindspore/ops/_op_impl/tbe/sin.py

+ 2
- 0
mindspore/ops/_op_impl/tbe/acos.py View File

@@ -26,7 +26,9 @@ acos_op_info = TBERegOp("ACos") \
.op_pattern("formatAgnostic") \
.input(0, "x", False, "required", "all") \
.output(0, "y", False, "required", "all") \
.dtype_format(DataType.F16_Default, DataType.F16_Default) \
.dtype_format(DataType.F16_5HD, DataType.F16_5HD) \
.dtype_format(DataType.F32_Default, DataType.F32_Default) \
.dtype_format(DataType.F32_5HD, DataType.F32_5HD) \
.get_op_info()



+ 2
- 0
mindspore/ops/_op_impl/tbe/acosh.py View File

@@ -26,7 +26,9 @@ acosh_op_info = TBERegOp("Acosh") \
.op_pattern("formatAgnostic") \
.input(0, "x", False, "required", "all") \
.output(0, "y", False, "required", "all") \
.dtype_format(DataType.F16_Default, DataType.F16_Default) \
.dtype_format(DataType.F16_5HD, DataType.F16_5HD) \
.dtype_format(DataType.F32_Default, DataType.F32_Default) \
.dtype_format(DataType.F32_5HD, DataType.F32_5HD) \
.get_op_info()



+ 2
- 0
mindspore/ops/_op_impl/tbe/atan.py View File

@@ -26,7 +26,9 @@ atan_op_info = TBERegOp("Atan") \
.op_pattern("formatAgnostic") \
.input(0, "x", False, "required", "all") \
.output(0, "y", False, "required", "all") \
.dtype_format(DataType.F16_Default, DataType.F16_Default) \
.dtype_format(DataType.F16_5HD, DataType.F16_5HD) \
.dtype_format(DataType.F32_Default, DataType.F32_Default) \
.dtype_format(DataType.F32_5HD, DataType.F32_5HD) \
.get_op_info()



+ 2
- 0
mindspore/ops/_op_impl/tbe/atan2.py View File

@@ -27,7 +27,9 @@ atan2_op_info = TBERegOp("Atan2") \
.input(0, "x1", False, "required", "all") \
.input(1, "x2", False, "required", "all") \
.output(0, "y", False, "required", "all") \
.dtype_format(DataType.F16_Default, DataType.F16_Default, DataType.F16_Default) \
.dtype_format(DataType.F16_5HD, DataType.F16_5HD, DataType.F16_5HD) \
.dtype_format(DataType.F32_Default, DataType.F32_Default, DataType.F32_Default) \
.dtype_format(DataType.F32_5HD, DataType.F32_5HD, DataType.F32_5HD) \
.get_op_info()



+ 2
- 0
mindspore/ops/_op_impl/tbe/atanh.py View File

@@ -26,7 +26,9 @@ atanh_op_info = TBERegOp("Atanh") \
.op_pattern("formatAgnostic") \
.input(0, "x", False, "required", "all") \
.output(0, "y", False, "required", "all") \
.dtype_format(DataType.F16_Default, DataType.F16_Default) \
.dtype_format(DataType.F16_5HD, DataType.F16_5HD) \
.dtype_format(DataType.F32_Default, DataType.F32_Default) \
.dtype_format(DataType.F32_5HD, DataType.F32_5HD) \
.get_op_info()



+ 2
- 0
mindspore/ops/_op_impl/tbe/cos.py View File

@@ -26,7 +26,9 @@ cos_op_info = TBERegOp("Cos") \
.op_pattern("formatAgnostic") \
.input(0, "x", False, "required", "all") \
.output(0, "y", False, "required", "all") \
.dtype_format(DataType.F16_Default, DataType.F16_Default) \
.dtype_format(DataType.F16_5HD, DataType.F16_5HD) \
.dtype_format(DataType.F32_Default, DataType.F32_Default) \
.dtype_format(DataType.F32_5HD, DataType.F32_5HD) \
.get_op_info()



+ 2
- 0
mindspore/ops/_op_impl/tbe/sin.py View File

@@ -26,7 +26,9 @@ sin_op_info = TBERegOp("Sin") \
.op_pattern("formatAgnostic") \
.input(0, "x", False, "required", "all") \
.output(0, "y", False, "required", "all") \
.dtype_format(DataType.F16_Default, DataType.F16_Default) \
.dtype_format(DataType.F16_5HD, DataType.F16_5HD) \
.dtype_format(DataType.F32_Default, DataType.F32_Default) \
.dtype_format(DataType.F32_5HD, DataType.F32_5HD) \
.get_op_info()



Loading…
Cancel
Save