We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 97699f1 commit cf92b51Copy full SHA for cf92b51
backends/cadence/aot/utils.py
@@ -29,6 +29,22 @@ class MemoryPlanningAlgoFailure(Exception):
29
pass
30
31
32
+class TypeMismatchError(Exception):
33
+ pass
34
+
35
36
+class NumericalMismatchError(Exception):
37
+ def __init__(self, msg: str, rms_value: Optional[float] = None) -> None:
38
+ self.rms_value = rms_value
39
+ super().__init__(msg)
40
41
42
+class NumericalMismatchExpectedError(Exception):
43
+ def __init__(self, rms_expected_value: float) -> None:
44
+ self.rms_expected_value = rms_expected_value
45
+ super().__init__()
46
47
48
# Get the output size of a 1D convolution given the input size and parameters
49
def get_conv1d_output_size(
50
in_size: torch.Size,
0 commit comments