Skip to content

Commit

Permalink
Fix a logic error in PFE (LLNL#2029)
Browse files Browse the repository at this point in the history
  • Loading branch information
benson31 committed Jan 19, 2022
1 parent 72e5ac9 commit 8714c40
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/lbann/core/operator_layers.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def export_proto(self):
device = lbann.DeviceAllocation.CPU
elif self.device.lower() == 'gpu':
device = lbann.DeviceAllocation.GPU
else:
elif self.device is not None:
raise TypeError('Unknown type for field device ' + str(type(device)))

# Configure operators to match layer
Expand Down

0 comments on commit 8714c40

Please sign in to comment.