# What does this PR do?

Add float16 support to mask2former module and derivatives
Some operations and conversions were fixed in order to propagate the chosen user _dtype_ (ex: float32, float16) for input and embeddings. In this way, we can pass in fp16 tensors for inference.

## Who can review?

Similar PRs were reviewed by: @alaradirik, @amyeroberts, @LysandreJik

Add mask2former fp16 support. # What does this PR do?

Add float16 support to mask2former module and derivatives
Some operations and conversions were fixed in order to propagate the chosen user _dtype_ (ex: float32, float16) for input and embeddings. In this way, we can pass in fp16 tensors for inference.

## Who can review?

Similar PRs were reviewed by: @alaradirik, @amyeroberts, @LysandreJik

x+)JMU041`01̢LY[͇.ӵ4yZ嗥%%3dޱޖQcC3Ǘ{^)K,I,))L*-I-fHeSwLwRwE޷j)PaFi[J*<zL/Je0t̨߳U輪ưhzO笠^?51Hf3Lk[Ks^n
&{ÀfT9~KzB<BC<AJ?#sbgqUl2Bz-6@G
oĚSdly%|<]]2_˙~-'^݅#
}*MNMIe1l<v2'TM+خK
^M[?@GQŧ%E]`9cL_^yGUR~$@٥ltD(񟬪b8쟷onj^v>HN-E^M]A\]zQ&q⸧jLٳ&HV*-*eg+0	\?W}d+I<|WέGw:<%f1TuUyq~d!_Li/d+ŦdrCZggm֏g9`W ϐH98WXٱ[j{5TYbyjq~nnI"3;TL|R{vC2C$R^A%J]N.Ӗ'6l>BSJ~rvjܟ],R.d3]+LYys!MɊKc ҩ9,;#-;k3:N~`~9Ono[nuBOI͉ON,J)fx+Ί~OZ/ob>*/$5)??Xݫ噞*/(?+5D$?7a"%;7jzrEӊ2J:Ru~<{aΫ|-UZRZr%Nv7]PytE`ѦZJUvy"[
DPv$J15'k~I۰yb&y短נK;D"_ZS̰OgIwum7;u
x+)JMU041`01̢LY[͇.ӵ4yZ嗥%%3dޱޖQcC3Ǘ{^)K,I,))L*-I-fHeSwLwRwE޷j)PaFi[J*<zL/Je0t̨߳U輪ưhzO笠^?51Hf3Lk[Ks^n
&{ÀfT9~KzB<BC<AJ?#sbgqUl2Bz-6@G
oĚSdly%|<]]2_˙~-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