tf agentsを用いた学習について
解決したいこと
tf-agentsを用いた学習において
agent.train(experience=experience)を実行した際に同じ型のテンソルを返す必要があるとでました。ChatGPTにはモジュールの設定を変更しろと答えられました。参考資料が少ないためお力をお借りしたいです。よろしくお願いいたします。
発生している問題・エラー
TypeError: true_fn and false_fn arguments to tf.cond must have the same number, type, and overall structure of return values.
true_fn output: Tensor("cond/Identity_4:0", shape=(), dtype=int64)
false_fn output: Tensor("cond/Identity_1:0", shape=(), dtype=bool)
Error details:
Tensor("cond/Identity_4:0", shape=(), dtype=int64) and Tensor("cond/Identity_1:0", shape=(), dtype=bool) have different types
0 likes