Rate this Page

torch.fx.experimental.migrate_gradual_types.constraint_transformation.valid_index_tensor#

torch.fx.experimental.migrate_gradual_types.constraint_transformation.valid_index_tensor(index, dims)[source]#

if the slice instances exceed the length of the dimensions then this is a type error so we return False