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

Failed trials show a huge negative duration on macOS #1416

Closed
ultmaster opened this issue Aug 5, 2019 · 1 comment
Closed

Failed trials show a huge negative duration on macOS #1416

ultmaster opened this issue Aug 5, 2019 · 1 comment
Assignees
Labels
bug Something isn't working nnidev

Comments

@ultmaster
Copy link
Contributor

Short summary about the issue/question:

Duration shows a huge negative number when the trial gets failed.

Screen Shot 2019-08-06 at 00 11 45

Brief what process you are following:

How to reproduce it: Install nii using pip and run mnist example.

nni Environment:

  • nni version: 0.9.1.1
  • nni mode(local|pai|remote): local
  • OS: macOS Mojave
  • python version: Python 3.6
  • is conda or virtualenv used?: virtualenv
  • is running in docker?: no

need to update document(yes/no): no

Anything else we need to know:

I'm pretty sure it's a problem related to Mac or macOS.

@ultmaster
Copy link
Contributor Author

https://superuser.com/questions/599072/how-to-get-bash-execution-time-in-milliseconds-under-mac-os-x

The problem is date +%s%3N is not supported in macOS. So needs an extra if for platform darwin.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working nnidev
Projects
None yet
Development

No branches or pull requests

5 participants