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 fc1479b commit 0548fafCopy full SHA for 0548faf
synapse_net/inference/util.py
@@ -33,9 +33,9 @@
33
34
class _Scaler:
35
def __init__(self, scale, verbose):
36
- if isinstance(scale, (int, float)): # single number
+ if isinstance(scale, (int, float)): # single number
37
is_one = scale in (1, 1.0)
38
- else: # list
+ else: # list
39
is_one = all(s in (1, 1.0) for s in scale)
40
if is_one:
41
self.scale = None
0 commit comments