Skip to content
This repository has been archived by the owner on Jan 15, 2024. It is now read-only.

Commit

Permalink
Remove nightly version of mxnet from warning
Browse files Browse the repository at this point in the history
  • Loading branch information
bgawrych committed May 10, 2021
1 parent 3cac37d commit fcf434b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion scripts/bert/finetune_classifier.py
Original file line number Diff line number Diff line change
Expand Up @@ -746,6 +746,6 @@ def evaluate(loader_dev, metric, segment):
except AttributeError as e:
warnings.warn(e)
nlp.utils.version.check_version('1.7.0', warning_only=True, library=mx)
warnings.warn('INT8 Quantization for BERT need mxnet-mkl >= 1.6.0b20200115 or mxnet >= 1.7')
warnings.warn('INT8 Quantization for BERT need mxnet >= 1.7')
else:
train(task.metrics)
2 changes: 1 addition & 1 deletion scripts/bert/finetune_squad.py
Original file line number Diff line number Diff line change
Expand Up @@ -897,7 +897,7 @@ def preprocess_dataset(tokenizer,
calib_mode)
except AttributeError as e:
nlp.utils.version.check_version('1.7.0', warning_only=True, library=mx)
warnings.warn('INT8 Quantization for BERT needs mxnet-mkl >= 1.6.0b20200115 or mxnet >= 1.7')
warnings.warn('INT8 Quantization for BERT needs mxnet >= 1.7')
warnings.warn(e)
elif not only_predict:
train()
Expand Down

0 comments on commit fcf434b

Please sign in to comment.