π Geometric Computer Vision Library for Spatial AI
Python artificial-intelligencecomputer-visiondeep-learninghacktoberfestimage-processingmachine-learningneural-networkpythonpytorchroboticsspatial-ai
test(augmentation): guard RandomEqualize full-forward fullgraph (#3846)
Edgar Ribad4234ef42933
diff --git a/tests/augmentation/test_augmentation.py b/tests/augmentation/test_augmentation.pyindex fa5efeeac..9282833d2 100644--- a/tests/augmentation/test_augmentation.py+++ b/tests/augmentation/test_augmentation.py@@ -355,6 +355,11 @@ class TestRandomEqualizeAlternative(CommonTests):def param_set(self, request):return request.param+ def test_dynamo(self, device, dtype, torch_optimizer):+ # Guards the batched-histogram fullgraph path (#3841): the full forward, including+ # parameter generation, must compile without a graph break β not just apply_transform.+ _assert_dynamo_fullgraph(lambda: RandomEqualize(p=1.0), self, device, dtype)+def test_random_p_1(self):input_tensor = torch.arange(20.0, device=self.device, dtype=self.dtype) / 20input_tensor = input_tensor.repeat(1, 2, 20, 1)