Skip to content

Commit

Permalink
Fix shape error
Browse files Browse the repository at this point in the history
Signed-off-by: Kyunggeun Lee <quic_kyunggeu@quicinc.com>
  • Loading branch information
quic-kyunggeu authored and quic-akhobare committed Oct 31, 2023
1 parent 6151d66 commit 870efda
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -814,6 +814,8 @@ def _compute_updated_encoding(self) -> Union[libpymo.TfEncoding, List[libpymo.Tf
scale, offset = self.compute_scaling_offset(encoding_min.float(), encoding_max.float())
assert scale is not None
assert offset is not None
scale = scale.expand_as(encoding_min)
offset = offset.expand_as(encoding_min)

if not self.use_symmetric_encodings or self.is_unsigned_symmetric:
# Calculate 'min' and 'max' based on 'delta' and 'offset'
Expand Down

0 comments on commit 870efda

Please sign in to comment.