Pattio/DeepSwarm

builtins.NotImplementedError: numpy() is only available when eager execution is enabled.

isaacgerg opened this issue · 4 comments

Got this error after running a bit more.

Stack:

File "D:\ASASINATR\projects\muscle_deep_swarm\trainer.py", line 332, in
main()
File "D:\ASASINATR\projects\muscle_deep_swarm\trainer.py", line 325, in main
topology = deepswarm.find_topology()
File "c:\python35\Lib\site-packages\deepswarm\deepswarm.py", line 43, in find_topology
best_ant = self.aco.search()
File "c:\python35\Lib\site-packages\deepswarm\aco.py", line 61, in search
self.storage.perform_backup()
File "c:\python35\Lib\site-packages\deepswarm\storage.py", line 67, in perform_backup
self.save_object(self.deepswarm, Storage.ITEM["BACKUP"])
File "c:\python35\Lib\site-packages\deepswarm\storage.py", line 213, in save_object
pickle.dump(data, f, pickle.HIGHEST_PROTOCOL)
File "c:\python35\Lib\site-packages\tensorflow\python\ops\resource_variable_ops.py", line 923, in reduce
return (ResourceVariable, (self.numpy(),))
File "c:\python35\Lib\site-packages\tensorflow\python\ops\resource_variable_ops.py", line 687, in numpy
"numpy() is only available when eager execution is enabled.")

builtins.NotImplementedError: numpy() is only available when eager execution is enabled.

This issue should be fixed in version 0.0.7. Can you run the newest version and confirm it?

So far so good! Thanks for your help.

This issue should be fixed in version 0.0.7. Can you run the newest version and confirm it?

Is it to upgrade numpy?
I am now the latest version,but still error

No, I was referring to upgrading to 0.0.7 version of DeepSwarm.