We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8f74c5d commit a307845Copy full SHA for a307845
nipype/pipeline/engine/nodes.py
@@ -822,9 +822,8 @@ def update(self, **opts):
822
self.inputs.update(**opts)
823
824
def is_gpu_node(self):
825
- return (hasattr(self.inputs, 'use_cuda') and self.inputs.use_cuda) or (
826
- hasattr(self.inputs, 'use_gpu') and self.inputs.use_gpu
827
- )
+ return bool(getattr(self.inputs, 'use_cuda', False)) or bool(
+ getattr(self.inputs, 'use_gpu', False))
828
829
830
class JoinNode(Node):
0 commit comments