flopscope-client 0.4.2__tar.gz → 0.4.3__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {flopscope_client-0.4.2 → flopscope_client-0.4.3}/PKG-INFO +1 -1
- {flopscope_client-0.4.2 → flopscope_client-0.4.3}/pyproject.toml +1 -1
- {flopscope_client-0.4.2 → flopscope_client-0.4.3}/src/flopscope/__init__.py +1 -1
- {flopscope_client-0.4.2 → flopscope_client-0.4.3}/src/flopscope/errors.py +9 -0
- {flopscope_client-0.4.2 → flopscope_client-0.4.3}/.gitignore +0 -0
- {flopscope_client-0.4.2 → flopscope_client-0.4.3}/README.md +0 -0
- {flopscope_client-0.4.2 → flopscope_client-0.4.3}/src/flopscope/_budget.py +0 -0
- {flopscope_client-0.4.2 → flopscope_client-0.4.3}/src/flopscope/_comms_tracker.py +0 -0
- {flopscope_client-0.4.2 → flopscope_client-0.4.3}/src/flopscope/_connection.py +0 -0
- {flopscope_client-0.4.2 → flopscope_client-0.4.3}/src/flopscope/_constants.py +0 -0
- {flopscope_client-0.4.2 → flopscope_client-0.4.3}/src/flopscope/_display.py +0 -0
- {flopscope_client-0.4.2 → flopscope_client-0.4.3}/src/flopscope/_getattr.py +0 -0
- {flopscope_client-0.4.2 → flopscope_client-0.4.3}/src/flopscope/_math_compat.py +0 -0
- {flopscope_client-0.4.2 → flopscope_client-0.4.3}/src/flopscope/_perm_group.py +0 -0
- {flopscope_client-0.4.2 → flopscope_client-0.4.3}/src/flopscope/_protocol.py +0 -0
- {flopscope_client-0.4.2 → flopscope_client-0.4.3}/src/flopscope/_registry.py +0 -0
- {flopscope_client-0.4.2 → flopscope_client-0.4.3}/src/flopscope/_registry_data.py +0 -0
- {flopscope_client-0.4.2 → flopscope_client-0.4.3}/src/flopscope/_remote_array.py +0 -0
- {flopscope_client-0.4.2 → flopscope_client-0.4.3}/src/flopscope/_weights.py +0 -0
- {flopscope_client-0.4.2 → flopscope_client-0.4.3}/src/flopscope/data/__init__.py +0 -0
- {flopscope_client-0.4.2 → flopscope_client-0.4.3}/src/flopscope/data/default_weights.json +0 -0
- {flopscope_client-0.4.2 → flopscope_client-0.4.3}/src/flopscope/fft/__init__.py +0 -0
- {flopscope_client-0.4.2 → flopscope_client-0.4.3}/src/flopscope/flops.py +0 -0
- {flopscope_client-0.4.2 → flopscope_client-0.4.3}/src/flopscope/linalg/__init__.py +0 -0
- {flopscope_client-0.4.2 → flopscope_client-0.4.3}/src/flopscope/random/__init__.py +0 -0
- {flopscope_client-0.4.2 → flopscope_client-0.4.3}/src/flopscope/stats/__init__.py +0 -0
- {flopscope_client-0.4.2 → flopscope_client-0.4.3}/tests/__init__.py +0 -0
- {flopscope_client-0.4.2 → flopscope_client-0.4.3}/tests/test_adversarial.py +0 -0
- {flopscope_client-0.4.2 → flopscope_client-0.4.3}/tests/test_api_surface.py +0 -0
- {flopscope_client-0.4.2 → flopscope_client-0.4.3}/tests/test_budget.py +0 -0
- {flopscope_client-0.4.2 → flopscope_client-0.4.3}/tests/test_bugfixes_round2.py +0 -0
- {flopscope_client-0.4.2 → flopscope_client-0.4.3}/tests/test_bugfixes_round3.py +0 -0
- {flopscope_client-0.4.2 → flopscope_client-0.4.3}/tests/test_comms_tracker.py +0 -0
- {flopscope_client-0.4.2 → flopscope_client-0.4.3}/tests/test_connection.py +0 -0
- {flopscope_client-0.4.2 → flopscope_client-0.4.3}/tests/test_errors.py +0 -0
- {flopscope_client-0.4.2 → flopscope_client-0.4.3}/tests/test_exhaustive.py +0 -0
- {flopscope_client-0.4.2 → flopscope_client-0.4.3}/tests/test_full_integration.py +0 -0
- {flopscope_client-0.4.2 → flopscope_client-0.4.3}/tests/test_integration.py +0 -0
- {flopscope_client-0.4.2 → flopscope_client-0.4.3}/tests/test_math_compat.py +0 -0
- {flopscope_client-0.4.2 → flopscope_client-0.4.3}/tests/test_new_type_encoding.py +0 -0
- {flopscope_client-0.4.2 → flopscope_client-0.4.3}/tests/test_protocol_trace.py +0 -0
- {flopscope_client-0.4.2 → flopscope_client-0.4.3}/tests/test_remote_array.py +0 -0
- {flopscope_client-0.4.2 → flopscope_client-0.4.3}/tests/test_remote_generator_integration.py +0 -0
- {flopscope_client-0.4.2 → flopscope_client-0.4.3}/tests/test_version_handshake.py +0 -0
- {flopscope_client-0.4.2 → flopscope_client-0.4.3}/tests/test_weights.py +0 -0
- {flopscope_client-0.4.2 → flopscope_client-0.4.3}/uv.lock +0 -0
|
@@ -45,6 +45,13 @@ class UnsupportedFunctionError(FlopscopeError):
|
|
|
45
45
|
super().__init__(message)
|
|
46
46
|
|
|
47
47
|
|
|
48
|
+
class UnsupportedReturnType(FlopscopeError):
|
|
49
|
+
"""Raised when an op's result cannot be serialized across the client/server boundary."""
|
|
50
|
+
|
|
51
|
+
def __init__(self, message: str = "") -> None:
|
|
52
|
+
super().__init__(message)
|
|
53
|
+
|
|
54
|
+
|
|
48
55
|
class FlopscopeWarning(UserWarning):
|
|
49
56
|
"""Warning issued when flopscope detects potential numerical issues."""
|
|
50
57
|
|
|
@@ -72,6 +79,7 @@ _FLOPSCOPE_ERRORS: frozenset[str] = frozenset(
|
|
|
72
79
|
"NoBudgetContextError",
|
|
73
80
|
"SymmetryError",
|
|
74
81
|
"UnsupportedFunctionError",
|
|
82
|
+
"UnsupportedReturnType",
|
|
75
83
|
}
|
|
76
84
|
)
|
|
77
85
|
|
|
@@ -81,6 +89,7 @@ _ERROR_MAP: dict[str, type[Exception]] = {
|
|
|
81
89
|
"NoBudgetContextError": NoBudgetContextError,
|
|
82
90
|
"SymmetryError": SymmetryError,
|
|
83
91
|
"UnsupportedFunctionError": UnsupportedFunctionError,
|
|
92
|
+
"UnsupportedReturnType": UnsupportedReturnType,
|
|
84
93
|
"FlopscopeServerError": FlopscopeServerError,
|
|
85
94
|
"ValueError": ValueError,
|
|
86
95
|
"TypeError": TypeError,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{flopscope_client-0.4.2 → flopscope_client-0.4.3}/tests/test_remote_generator_integration.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|