title: expected np.ndarray (got int)
body: <p>I got this error i was trying to create an Actor Critic reinforcement learning algorithm using open AI Frozen Lake gym environment</p>
  <pre><code>def forward(self,x):
          print(&quot;values of x here is &quot;,x)
          x= torch.from_numpy(x).float()
          y= F.relu(self.layerOne(x))
          y= F.relu(self.layerTwo(y))
          action_prob_dist = F.log_softmax(self.action_layer(y),dim=0)
          c = F.relu(self.layerThree(y.detach))
          state_value = torch.tanh(self.value_layer(c))
          
          action_dist = Categorical(actions_prob_dist)
          action = action_dist.sample()
          
          self.log_probs.append(action_dist.log_prob(action))
          self.state_values.append(state_value)
          
          return action.item()
  </code></pre>
  <p>Here is the error that i am getting</p>
  <pre><code>
  Input In [14], in ActorCritic.forward(self, x)
       12 def forward(self,x):
       13     print(&quot;values of x here is &quot;,x)
  ---&gt; 14     x= torch.from_numpy(x).float()
       15     y= F.relu(self.layerOne(x))
       16     y= F.relu(self.layerTwo(y))
  
  TypeError: expected np.ndarray (got int)
  </code></pre>