fix 2 encoder_decoder issues on XPU (#37572)
* fix 2 encoder_decoder issues on XPU
Signed-off-by: YAO Matrix <matrix.yao@intel.com>
* fmt
---------
Signed-off-by: YAO Matrix <matrix.yao@intel.com>
Co-authored-by: ydshieh <ydshieh@users.noreply.github.com>