You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We should probably abstract interpolate_pos_encoding, since this is reused across many different vision architectures.
The text was updated successfully, but these errors were encountered:
xenova
changed the title
ONNX export fails for Hiera due to math and python type casts
ONNX export fails for Hiera due to math.sqrt and python type int casts
Aug 29, 2024
xenova
changed the title
ONNX export fails for Hiera due to math.sqrt and python type int casts
ONNX export may fail for Hiera due to math.sqrt and python type int casts
Aug 29, 2024
Maybe it's better to rewrite interpolation using size argument instead of scale to avoid errors described in the issue above, will it be compatible with ONNX export? WDYT?
Maybe it's better to rewrite interpolation using size argument instead of scale to avoid errors described in the issue above, will it be compatible with ONNX export? WDYT?
Yes I agree! Some other issues/PRs where this is discussed:
Similar to a previous issue (#31311) we had with vision models. cc @merveenoyan @amyeroberts @NielsRogge
Offending lines:
transformers/src/transformers/models/hiera/modeling_hiera.py
Line 340 in 5c1027b
transformers/src/transformers/models/hiera/modeling_hiera.py
Line 344 in 5c1027b
We should probably abstract
interpolate_pos_encoding
, since this is reused across many different vision architectures.The text was updated successfully, but these errors were encountered: