rsqrthas no effect unless-qignerrnois also specified;errnowillnotbe set for anysqrtfunction calls. If you compile with-O3or higher optimization level,rsqrtis enabled automatically. To disable it, also specify-qstrict,-qstrict=nans,-qstrict=infinities,-qstrict=zerosigns, or-qstrict=exceptions. ...
-qfloat=dfpemulate:nofenv:nofltint:fold:nohscmplx:nohsflt:nohssngl: maf:nonans:norelax:rndsngl:rngchk:norrm:norsqrt:single:nospnans -qfloat=fltint:rsqrt:norngchk (-qnostrict、-qstrict=nooperationprecision:noexceptions、または -O3 以上の最適化レベルが有効な場合) -qfloat=nodfpemulate...
half() self.running_var = self.running_var.half() scale = self.weight * self.running_var.rsqrt() bias = self.bias - self.running_mean * scale scale = scale.reshape(1, -1) bias = bias.reshape(1, -1) return x * scale + bias ...