diff --git a/fbgemm_gpu/fbgemm_gpu/quantize_comm.py b/fbgemm_gpu/fbgemm_gpu/quantize_comm.py index 7db84e4bf6..4a786891b7 100644 --- a/fbgemm_gpu/fbgemm_gpu/quantize_comm.py +++ b/fbgemm_gpu/fbgemm_gpu/quantize_comm.py @@ -230,7 +230,7 @@ def calc_quantized_size( ctx = none_throws(ctx) torch._check( input_len % ctx.row_dim == 0, - lambda: f"input_len {input_len} is not a multiple of row dim {ctx.row_dim}", + f"input_len {input_len} is not a multiple of row dim {ctx.row_dim}", ) assert input_len % ctx.row_dim == 0, ( f"input_len {input_len} is not a multiple of row dim {ctx.row_dim} "