Browse Source

fix softmax for master

tags/v1.2.0-rc1
zhaojichen 5 years ago
parent
commit
36a15fa5af
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      mindspore/_extends/parallel_compile/tbe_compiler/helper.py

+ 2
- 0
mindspore/_extends/parallel_compile/tbe_compiler/helper.py View File

@@ -15,6 +15,7 @@
"""tbe process""" """tbe process"""
import sys import sys
import os import os
from te.platform.cce_conf import te_set_version
from .common import get_args, get_build_in_impl_path, TBEException from .common import get_args, get_build_in_impl_path, TBEException


build_in_impl_path = get_build_in_impl_path() build_in_impl_path = get_build_in_impl_path()
@@ -32,6 +33,7 @@ def _op_select_format(kernel_info):
""" """
try: try:
op_name = kernel_info['op_info']['name'] op_name = kernel_info['op_info']['name']
te_set_version(kernel_info["op_info"]["socVersion"])
impl_path = build_in_impl_path impl_path = build_in_impl_path
custom_flag = False custom_flag = False
if 'impl_path' in kernel_info and kernel_info['impl_path'] is not None: if 'impl_path' in kernel_info and kernel_info['impl_path'] is not None:


Loading…
Cancel
Save