Open lamhoson opened 4 years ago
It's unclear from the small piece of the error you pasted, but I suspect you are using ArraySpecs where TensorSpecs are expected. Note that py components expect ArraySpecs, but all TF components expect TensorSpecs.
You can convert them to tensor specs with tensor_spec.from_spec
If that's not the actual issue, can you add your whole traceback?
Anyone know what's wrong of using tf-agent here which trigger the ValueError? ValueError: Inputs to TanhNormalProjectionNetwork must match the sample_spec.dtype. In call to configurable 'SacAgent' (<class 'tf_agents.agents.sac.sac_agent.SacAgent'>)
All variables and Agents need to be created under strategy.scope()