Browse Source

!9821 Fix softmax dtype and format.

From: @liangchenghui
Reviewed-by: @c_34,@wuxuejian
Signed-off-by: @c_34
tags/v1.1.0
mindspore-ci-bot Gitee 5 years ago
parent
commit
134677fa6e
1 changed files with 2 additions and 5 deletions
  1. +2
    -5
      mindspore/ops/_op_impl/tbe/softmax.py

+ 2
- 5
mindspore/ops/_op_impl/tbe/softmax.py View File

@@ -26,11 +26,8 @@ softmax_op_info = TBERegOp("Softmax") \
.attr("axis", "optional", "listInt", "all") \
.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.F16_FracNZ, DataType.F16_FracNZ) \
.dtype_format(DataType.F32_Default, DataType.F32_Default) \
.dtype_format(DataType.F32_FracNZ, DataType.F32_FracNZ) \
.op_pattern("dynamicFormat") \
.dtype_format(DataType.None_None, DataType.None_None) \
.get_op_info()




Loading…
Cancel
Save