2021年1月22日星期五

How do i concatenate two state vectors?

I having a a neural network that needs to concatenate the state with the taken action.

I tried concatenating the state and the action with this line:

x = self.fc2(tf.concat([x, action]), axis = 1)  

But executing this line resulted in following error message:

TypeError: concat() missing 1 required positional argument: 'axis'  

I am clearly providing the argument axis, so why do i get an error?

https://stackoverflow.com/questions/65829329/how-do-i-concatenate-two-state-vectors January 21, 2021 at 10:16PM

没有评论:

发表评论