Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

Commit

Permalink
change _generate_op_module_signature get_module_file open with encodi…
Browse files Browse the repository at this point in the history
…ng="utf-8",it fix some encode error in Chinese windows system.
  • Loading branch information
yajiedesign committed Nov 6, 2019
1 parent 3c404a5 commit f4cbd3d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/mxnet/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -672,7 +672,7 @@ def get_module_file(module_name):
module_path = module_name.split('.')
module_path[-1] = 'gen_' + module_path[-1]
file_name = os.path.join(path, '..', *module_path) + '.py'
module_file = open(file_name, 'w')
module_file = open(file_name, 'w', encoding="utf-8")
dependencies = {'symbol': ['from ._internal import SymbolBase',
'from ..base import _Null'],
'ndarray': ['from ._internal import NDArrayBase',
Expand Down

0 comments on commit f4cbd3d

Please sign in to comment.