Skip to content

Commit

Permalink
Update int_torch_handler.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Giuseppe5 authored Oct 30, 2024
1 parent dd05b52 commit 60367a6
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/brevitas/quant_tensor/int_torch_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -234,8 +234,6 @@ def quant_output_scale_impl(
output_scale_shape = compute_channel_view_shape(inp, channel_dim=channel_dim)

quant_weight_scale = quant_weight_scale.view(output_scale_shape)
if len(quant_input_scale.shape) == 0:
quant_input_scale = quant_input_scale.view(output_scale_shape)
quant_input_scale = quant_input_scale.view(output_scale_shape)
if not is_broadcastable(quant_weight_scale.shape, quant_input_scale.shape):
return None
Expand Down

0 comments on commit 60367a6

Please sign in to comment.