mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-06-26 03:00:54 +00:00
Fix a bug in t5 beamsearch with half precision (#14436)
the CreateEncoderInputs functor was passed to the ctor as nullptr when type is MLFloat16. ### Description <!-- Describe your changes. --> ### Motivation and Context <!-- - Why is this change required? What problem does it solve? - If it fixes an open issue, please link to the issue here. -->
This commit is contained in:
parent
2b1a59f01a
commit
d9c744ed9a
1 changed files with 1 additions and 1 deletions
|
|
@ -245,7 +245,7 @@ Status BeamSearch::Compute(OpKernelContext* ctx) const {
|
|||
init_beam_state_fp16_func_,
|
||||
device_copy_func_,
|
||||
device_copy_int32_func_,
|
||||
create_encoder_inputs_func_,
|
||||
create_encoder_inputs_func_ ? create_encoder_inputs_func_ : GenerationCpuDeviceHelper::CreateEncoderInputs,
|
||||
update_decoder_feeds_fp16_func_,
|
||||
expand_buffer_int32_func_,
|
||||
expand_buffer_float_func_,
|
||||
|
|
|
|||
Loading…
Reference in a new issue