Hi there!
This issue looks like issue #146, but this time is about Multinomial.
It appears when launching the GraphModel on a trained game of my own.
This is the exception:
TFException: NodeDef mentions attr 'output_dtype' not in Op
TensorFlow.TFStatus.CheckMaybeRaise (TensorFlow.TFStatus incomingStatus, System.Boolean last) (at <6ed6db22f8874deba74ffe3e566039be>:0)
TensorFlow.TFGraph.Import (TensorFlow.TFBuffer graphDef, TensorFlow.TFImportGraphDefOptions options, TensorFlow.TFStatus status) (at <6ed6db22f8874deba74ffe3e566039be>:0)
TensorFlow.TFGraph.Import (System.Byte[] buffer, TensorFlow.TFImportGraphDefOptions options, TensorFlow.TFStatus status) (at <6ed6db22f8874deba74ffe3e566039be>:0)
TensorFlow.TFGraph.Import (System.Byte[] buffer, System.String prefix, TensorFlow.TFStatus status) (at <6ed6db22f8874deba74ffe3e566039be>:0)
CoreBrainInternal.InitializeCoreBrain () (at Assets/ML-Agents/Scripts/CoreBrainInternal.cs:112)
Brain.InitializeBrain () (at Assets/ML-Agents/Scripts/Brain.cs:187)
Academy.Awake () (at Assets/ML-Agents/Scripts/Academy.cs:124)
Some more info on the environment:
Any idea, hint, help?
BR,
Dastyn
Can you try with tensorflow r1.4? It could be that the tensorflowsharp package is incompatible.
You are perfectly right!
Downgrading to tensorflow v1.4 fixed the issue.
Thanks a lot for your quick help.
Dastyn
That's odd. I get exactly the same issue. Downgraded to 1.4. It's still the same. Any suggestions?
Check if, once you switched to tensorflow python environment (ie: activate tensorflow under your command prompt), you get the right tensorflow version: pip list (or pip3 list).
I'm experiencing this same error as well.
pip freeze gives me tensorflow==1.4.0 and I've restarted Unity just to be sure.
Unity 2017.3.0f3
Mac Osx 10.12.6
Update @potatoorgylt, I was very tired yesterday and after reinstalling tensorflow to v 1.4 I did not re-train and export the graph model.
I made sure to train and export using the 1.4 version and now its working for me as well!
https://s3.amazonaws.com/unity-agents/TFSharpPlugin.unitypackage
is giving me
AllAccessDisabled
tS1QaFniGXHDhYUpFWgp0vZjZ3pVXci9EM7ZUffZJMPpNCOCPkHknc47zK82PTWYaf+z184FOc0=
Hi @ematsuno,
That is an old link to a previous version of the TF# plugin. Here is the most current link for the v0.5 release: https://s3.amazonaws.com/unity-ml-agents/0.5/TFSharpPlugin.unitypackage
is there are any way to see the latest version? there are a lot of tutorials using different versions at this point and the s3 is not helpful figuring out if you're up-to-date ^^'
DT_UINT8, DT_INT16, DT_INT8, DT_UINT16, DT_HALF]; is_stateful=true>; NodeDef: multinomial_3/Multinomial = MultinomialT=DT_FLOAT, output_dtype=DT_INT64, seed=6006, seed2=233. (Check whether your GraphDef-interpreting binary is up to date with your GraphDef-generating binary.).
TensorFlow.TFStatus.CheckMaybeRaise (TensorFlow.TFStatus incomingStatus, System.Boolean last) (at <1fe2de69842a4a4ba15256b83cca05f3>:0)
TensorFlow.TFGraph.Import (TensorFlow.TFBuffer graphDef, TensorFlow.TFImportGraphDefOptions options, TensorFlow.TFStatus status) (at <1fe2de69842a4a4ba15256b83cca05f3>:0)
TensorFlow.TFGraph.Import (System.Byte[] buffer, TensorFlow.TFImportGraphDefOptions options, TensorFlow.TFStatus status) (at <1fe2de69842a4a4ba15256b83cca05f3>:0)
TensorFlow.TFGraph.Import (System.Byte[] buffer, System.String prefix, TensorFlow.TFStatus status) (at <1fe2de69842a4a4ba15256b83cca05f3>:0)
MLAgents.CoreBrainInternal.InitializeCoreBrain (MLAgents.Batcher brainBatcher) (at Assets/ML-Agents/Scripts/CoreBrainInternal.cs:133)
MLAgents.Brain.InitializeBrain (MLAgents.Academy aca, MLAgents.Batcher brainBatcher) (at Assets/ML-Agents/Scripts/Brain.cs:207)
MLAgents.Academy.InitializeEnvironment () (at Assets/ML-Agents/Scripts/Academy.cs:288)
MLAgents.Academy.Awake () (at Assets/ML-Agents/Scripts/Academy.cs:227)
having the issue with mlagents 0.5 and tfsharp 0.5 any solution?
Hi @ematsuno,
That is an old link to a previous version of the TF# plugin. Here is the most current link for the v0.5 release: https://s3.amazonaws.com/unity-ml-agents/0.5/TFSharpPlugin.unitypackage
tried this results unity crashing when playing training internally... :(
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Most helpful comment
Can you try with tensorflow r1.4? It could be that the tensorflowsharp package is incompatible.