Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error in class ResidualBlock(torch.nn.Module):??? In model.py #89

Closed
renweiya opened this issue Nov 20, 2020 · 0 comments
Closed

error in class ResidualBlock(torch.nn.Module):??? In model.py #89

renweiya opened this issue Nov 20, 2020 · 0 comments

Comments

@renweiya
Copy link

renweiya commented Nov 20, 2020

def forward(self, x):
x = self.conv1(x)
x = self.bn1(x)
x = torch.nn.functional.relu(x)
x = self.conv2(x)
x = self.bn2(x)
x += x #may be a error?
x = torch.nn.functional.relu(x)
return x

def forward(self, x):
x = self.conv1(x)
x = self.bn1(x)
x1 = torch.nn.functional.relu(x)
x2 = self.conv2(x1)
x2 = self.bn2(x2)
x = x1+x2
x = torch.nn.functional.relu(x)
return x

egafni pushed a commit to egafni/muzero-general that referenced this issue Apr 15, 2021
EpicLiem pushed a commit to EpicLiem/muzero-general-chess-archive that referenced this issue Feb 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant