Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
lanpa committed Feb 17, 2018
1 parent 3deaf0d commit 3da4e2f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tensorboardX/summary.py
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ def make_image(tensor):
def audio(tag, tensor, sample_rate=44100):
tensor = makenp(tensor)
tensor = tensor.squeeze()
if abs(tensor).max()>1:
if abs(tensor).max() > 1:
print('warning: audio amplitude out of range, auto clipped.')
tensor = tensor.clip(-1, 1)
assert(tensor.ndim == 1), 'input tensor should be 1 dimensional.'
Expand Down

0 comments on commit 3da4e2f

Please sign in to comment.