Traceback (most recent call last):


 "dqn_cartpole.py", line 58, in <module>

json.dump(history.history, f)


 "/home/imran/PycharmProjects/k/.k/lib/python3.5/site-packages/simplejson/__init__.py", line 278, in dump

for chunk in iterable:


 "/home/imran/PycharmProjects/k/.k/lib/python3.5/site-packages/simplejson/encoder.py", line 696, in _iterencode

for chunk in _iterencode_dict(o, _current_indent_level):


 "/home/imran/PycharmProjects/k/.k/lib/python3.5/site-packages/simplejson/encoder.py", line 652, in _iterencode_dict

for chunk in chunks:


 "/home/imran/PycharmProjects/k/.k/lib/python3.5/site-packages/simplejson/encoder.py", line 531, in _iterencode_list

for chunk in chunks:


 "/home/imran/PycharmProjects/k/.k/lib/python3.5/site-packages/simplejson/encoder.py", line 716, in _iterencode

o = _default(o)


 "/home/imran/PycharmProjects/k/.k/lib/python3.5/site-packages/simplejson/encoder.py", line 273, in default

o.__class__.__name__)
TypeError: Object of type int64 is not JSON serializable

Traceback (most recent call last):


 "convert.py", line 63, in <module>

main()


 "convert.py", line 52, in main

graph_exec_data.save(OUTPUT_DIR)


 "/Users/hidaka/miljs/mil-web-dnn/mil-web-dnn/src/graph_builder/backend/fallback/generator.py", line 54, in save

json.dump(self.descriptor, f, indent=2)


 "/Users/hidaka/miljs/mil-web-dnn/mil-web-dnn/src/graph_builder/util/json/json.py", line 21, in dump

original_dump(*args, cls=cls, **kwargs)


 "/Users/hidaka/.pyenv/versions/3.6.0/lib/python3.6/json/__init__.py", line 179, in dump

for chunk in iterable:


 "/Users/hidaka/.pyenv/versions/3.6.0/lib/python3.6/json/encoder.py", line 438, in _iterencode

yield from _iterencode(o, _current_indent_level)


 "/Users/hidaka/.pyenv/versions/3.6.0/lib/python3.6/json/encoder.py", line 430, in _iterencode

yield from _iterencode_dict(o, _current_indent_level)


 "/Users/hidaka/.pyenv/versions/3.6.0/lib/python3.6/json/encoder.py", line 404, in _iterencode_dict

yield from chunks


 "/Users/hidaka/.pyenv/versions/3.6.0/lib/python3.6/json/encoder.py", line 325, in _iterencode_list

yield from chunks


 "/Users/hidaka/.pyenv/versions/3.6.0/lib/python3.6/json/encoder.py", line 438, in _iterencode

yield from _iterencode(o, _current_indent_level)


 "/Users/hidaka/.pyenv/versions/3.6.0/lib/python3.6/json/encoder.py", line 430, in _iterencode

yield from _iterencode_dict(o, _current_indent_level)


 "/Users/hidaka/.pyenv/versions/3.6.0/lib/python3.6/json/encoder.py", line 404, in _iterencode_dict

yield from chunks


 "/Users/hidaka/.pyenv/versions/3.6.0/lib/python3.6/json/encoder.py", line 404, in _iterencode_dict

yield from chunks


 "/Users/hidaka/.pyenv/versions/3.6.0/lib/python3.6/json/encoder.py", line 437, in _iterencode

o = _default(o)


 "/Users/hidaka/miljs/mil-web-dnn/mil-web-dnn/src/graph_builder/util/json/json.py", line 17, in default

return JSONEncoder.default(self, obj)


 "/Users/hidaka/.pyenv/versions/3.6.0/lib/python3.6/json/encoder.py", line 180, in default

o.__class__.__name__)
TypeError: Object of type 'int64' is not JSON serializable
