Add validation for negative position_ids in EmbedLayerNorm

Merged
VR
8mo ago
+60-1

Description

Adds a missing lower-bound validation check for position_col_index (derived from position_ids input) in the EmbedLayerNormalization contrib operator. A negative value in position_ids could bypass the existing upper-bound-only check and cause an out-of-bounds heap read before the position_embedding buffer.

Motivation and Context