We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4813cc2 commit d41667fCopy full SHA for d41667f
morph_net/tools/configurable_ops.py
@@ -121,7 +121,8 @@ def is_vanished(maybe_tensor):
121
Returns:
122
A boolean, whether maybe_tensor is a tensor.
123
"""
124
- return maybe_tensor == VANISHED or maybe_tensor is None
+ return (isinstance(maybe_tensor, float) and
125
+ maybe_tensor == VANISHED) or maybe_tensor is None
126
127
128
class FallbackRule(Enum):
0 commit comments