Skip to content

Commit a36d7a7

Browse files
committed
Fixed an error in tensor modification that resulted in backward pass crashing for some networks.
1 parent e059e32 commit a36d7a7

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

nasbench_pytorch/model/model.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ def forward(self, x):
170170
outputs = torch.cat(out_concat, 1)
171171

172172
if self.matrix[0, self.num_vertices-1]:
173-
outputs += self.last_inop(tensors[0])
173+
outputs = outputs + self.last_inop(tensors[0])
174174

175175
#if self.matrix[0, self.num_vertices-1]:
176176
# out_concat.append(self.input_op[self.num_vertices-1](tensors[0]))

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
setuptools.setup(
44
name='nasbench_pytorch',
5-
version='1.2.1',
5+
version='1.2.2',
66
license='Apache License 2.0',
77
author='Romulus Hong, Gabriela Suchopárová',
88
packages=setuptools.find_packages()

0 commit comments

Comments
 (0)