microsoft/nni

No error raise for wrong type of result

Open

#3 641 ouverte le 14 mai 2021

Voir sur GitHub
 (3 commentaires) (0 réactions) (1 assigné)Python (1 830 forks)batch import
help wanteduser raised

Métriques du dépôt

Stars
 (13 504 stars)
Métriques de merge PR
 (Aucune PR mergée en 30 j)

Description

Describe the issue:

When parsing value in torch.tensor with dtype=torch.float to nni.report_intermediate_result and nni.report_final_result, there is no Exception raised and no result recorded.

It is desired to raise a ValueError, or auto-convert to python float (raise a ValueError when cannot be converted).

Environment:

  • NNI version:
  • Training service (local|remote|pai|aml|etc):
  • Client OS:
  • Server OS (for remote mode only):
  • Python version:
  • PyTorch/TensorFlow version:
  • Is conda/virtualenv/venv used?:
  • Is running in Docker?:

Configuration:

  • Experiment config (remember to remove secrets!):
  • Search space:

Log message:

  • nnimanager.log:
  • dispatcher.log:
  • nnictl stdout and stderr:

How to reproduce it?:

Guide contributeur