@popcorn0000

Are you sure you want to delete the question?

If your question is resolved, you may close it.

Leaving a resolved question undeleted may help others!

We hope you find it useful!

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

1Answer

tensorflowもtf-agentsも良く知らないのですが、特に利用したコードとかない感じですか?tf-agentsという関数かなにかを実行したらいい感じに学習するものがされなかったということでしょうか。

多くの人は、たぶん回答してみたくても情報が少なくてお力になれない感じではないかと思います。

0Like

Your answer might help someone💌