Various experiments and minor bug fixes for edge cases

This commit is contained in:
Jaret Burkett
2025-04-25 13:44:38 -06:00
parent 8ff85ba14f
commit 88b3fbae37
8 changed files with 170 additions and 122 deletions

View File

@@ -41,6 +41,9 @@ def shuffle_tensor_along_axis(tensor, axis=0, seed=None):
# Apply the shuffle
shuffled_tensor = tensor[slices]
except Exception as e:
raise RuntimeError(f"Error during shuffling: {e}")
finally:
# Restore original random states