torchrec
torchrec copied to clipboard
Create BoundsCheckMode fused_param for inference
Summary: Introduce BoundsCheckMode fused_param for TBE BoundsCheckMode. There is no reason really to run bounds_check_indices during inference use case (AIMP has it off by default: https://fburl.com/code/q8zhundg), and it causes issues with the PT2 IR (bounds_check_indices is a mutating op)
Differential Revision: D56743992