You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 2, 2024. It is now read-only.
utils.py", line 80, in train
write_event(log, step, loss=mean_loss)
utils.py", line 26, in write_event
log.write(json.dumps(data, sort_keys=True))
File "C:\Users\Lab\AppData\Local\Programs\Python\Python35\lib\json_init_.py", line 237, in dumps
**kw).encode(obj)
File "C:\Users\Lab\AppData\Local\Programs\Python\Python35\lib\json\encoder.py", line 198, in encode
chunks = self.iterencode(o, _one_shot=True)
File "C:\Users\Lab\AppData\Local\Programs\Python\Python35\lib\json\encoder.py", line 256, in iterencode
return _iterencode(o, 0)
File "C:\Users\Lab\AppData\Local\Programs\Python\Python35\lib\json\encoder.py", line 179, in default
raise TypeError(repr(o) + " is not JSON serializable")
TypeError: 0.84068537 is not JSON serializable
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
The error is for utils.py
utils.py", line 80, in train
write_event(log, step, loss=mean_loss)
utils.py", line 26, in write_event
log.write(json.dumps(data, sort_keys=True))
File "C:\Users\Lab\AppData\Local\Programs\Python\Python35\lib\json_init_.py", line 237, in dumps
**kw).encode(obj)
File "C:\Users\Lab\AppData\Local\Programs\Python\Python35\lib\json\encoder.py", line 198, in encode
chunks = self.iterencode(o, _one_shot=True)
File "C:\Users\Lab\AppData\Local\Programs\Python\Python35\lib\json\encoder.py", line 256, in iterencode
return _iterencode(o, 0)
File "C:\Users\Lab\AppData\Local\Programs\Python\Python35\lib\json\encoder.py", line 179, in default
raise TypeError(repr(o) + " is not JSON serializable")
TypeError: 0.84068537 is not JSON serializable
The text was updated successfully, but these errors were encountered: