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.
Files changed (46) hide show
  1. {flopscope_client-0.4.2 → flopscope_client-0.4.3}/PKG-INFO +1 -1
  2. {flopscope_client-0.4.2 → flopscope_client-0.4.3}/pyproject.toml +1 -1
  3. {flopscope_client-0.4.2 → flopscope_client-0.4.3}/src/flopscope/__init__.py +1 -1
  4. {flopscope_client-0.4.2 → flopscope_client-0.4.3}/src/flopscope/errors.py +9 -0
  5. {flopscope_client-0.4.2 → flopscope_client-0.4.3}/.gitignore +0 -0
  6. {flopscope_client-0.4.2 → flopscope_client-0.4.3}/README.md +0 -0
  7. {flopscope_client-0.4.2 → flopscope_client-0.4.3}/src/flopscope/_budget.py +0 -0
  8. {flopscope_client-0.4.2 → flopscope_client-0.4.3}/src/flopscope/_comms_tracker.py +0 -0
  9. {flopscope_client-0.4.2 → flopscope_client-0.4.3}/src/flopscope/_connection.py +0 -0
  10. {flopscope_client-0.4.2 → flopscope_client-0.4.3}/src/flopscope/_constants.py +0 -0
  11. {flopscope_client-0.4.2 → flopscope_client-0.4.3}/src/flopscope/_display.py +0 -0
  12. {flopscope_client-0.4.2 → flopscope_client-0.4.3}/src/flopscope/_getattr.py +0 -0
  13. {flopscope_client-0.4.2 → flopscope_client-0.4.3}/src/flopscope/_math_compat.py +0 -0
  14. {flopscope_client-0.4.2 → flopscope_client-0.4.3}/src/flopscope/_perm_group.py +0 -0
  15. {flopscope_client-0.4.2 → flopscope_client-0.4.3}/src/flopscope/_protocol.py +0 -0
  16. {flopscope_client-0.4.2 → flopscope_client-0.4.3}/src/flopscope/_registry.py +0 -0
  17. {flopscope_client-0.4.2 → flopscope_client-0.4.3}/src/flopscope/_registry_data.py +0 -0
  18. {flopscope_client-0.4.2 → flopscope_client-0.4.3}/src/flopscope/_remote_array.py +0 -0
  19. {flopscope_client-0.4.2 → flopscope_client-0.4.3}/src/flopscope/_weights.py +0 -0
  20. {flopscope_client-0.4.2 → flopscope_client-0.4.3}/src/flopscope/data/__init__.py +0 -0
  21. {flopscope_client-0.4.2 → flopscope_client-0.4.3}/src/flopscope/data/default_weights.json +0 -0
  22. {flopscope_client-0.4.2 → flopscope_client-0.4.3}/src/flopscope/fft/__init__.py +0 -0
  23. {flopscope_client-0.4.2 → flopscope_client-0.4.3}/src/flopscope/flops.py +0 -0
  24. {flopscope_client-0.4.2 → flopscope_client-0.4.3}/src/flopscope/linalg/__init__.py +0 -0
  25. {flopscope_client-0.4.2 → flopscope_client-0.4.3}/src/flopscope/random/__init__.py +0 -0
  26. {flopscope_client-0.4.2 → flopscope_client-0.4.3}/src/flopscope/stats/__init__.py +0 -0
  27. {flopscope_client-0.4.2 → flopscope_client-0.4.3}/tests/__init__.py +0 -0
  28. {flopscope_client-0.4.2 → flopscope_client-0.4.3}/tests/test_adversarial.py +0 -0
  29. {flopscope_client-0.4.2 → flopscope_client-0.4.3}/tests/test_api_surface.py +0 -0
  30. {flopscope_client-0.4.2 → flopscope_client-0.4.3}/tests/test_budget.py +0 -0
  31. {flopscope_client-0.4.2 → flopscope_client-0.4.3}/tests/test_bugfixes_round2.py +0 -0
  32. {flopscope_client-0.4.2 → flopscope_client-0.4.3}/tests/test_bugfixes_round3.py +0 -0
  33. {flopscope_client-0.4.2 → flopscope_client-0.4.3}/tests/test_comms_tracker.py +0 -0
  34. {flopscope_client-0.4.2 → flopscope_client-0.4.3}/tests/test_connection.py +0 -0
  35. {flopscope_client-0.4.2 → flopscope_client-0.4.3}/tests/test_errors.py +0 -0
  36. {flopscope_client-0.4.2 → flopscope_client-0.4.3}/tests/test_exhaustive.py +0 -0
  37. {flopscope_client-0.4.2 → flopscope_client-0.4.3}/tests/test_full_integration.py +0 -0
  38. {flopscope_client-0.4.2 → flopscope_client-0.4.3}/tests/test_integration.py +0 -0
  39. {flopscope_client-0.4.2 → flopscope_client-0.4.3}/tests/test_math_compat.py +0 -0
  40. {flopscope_client-0.4.2 → flopscope_client-0.4.3}/tests/test_new_type_encoding.py +0 -0
  41. {flopscope_client-0.4.2 → flopscope_client-0.4.3}/tests/test_protocol_trace.py +0 -0
  42. {flopscope_client-0.4.2 → flopscope_client-0.4.3}/tests/test_remote_array.py +0 -0
  43. {flopscope_client-0.4.2 → flopscope_client-0.4.3}/tests/test_remote_generator_integration.py +0 -0
  44. {flopscope_client-0.4.2 → flopscope_client-0.4.3}/tests/test_version_handshake.py +0 -0
  45. {flopscope_client-0.4.2 → flopscope_client-0.4.3}/tests/test_weights.py +0 -0
  46. {flopscope_client-0.4.2 → flopscope_client-0.4.3}/uv.lock +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: flopscope-client
3
- Version: 0.4.2
3
+ Version: 0.4.3
4
4
  Summary: Lightweight flopscope client — drop-in replacement with no numpy dependency
5
5
  License-Expression: MIT
6
6
  Requires-Python: >=3.10
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
4
4
 
5
5
  [project]
6
6
  name = "flopscope-client"
7
- version = "0.4.2"
7
+ version = "0.4.3"
8
8
  description = "Lightweight flopscope client — drop-in replacement with no numpy dependency"
9
9
  readme = "README.md"
10
10
  requires-python = ">=3.10"
@@ -18,7 +18,7 @@ import builtins
18
18
  import struct
19
19
  from typing import Any
20
20
 
21
- __version__ = "0.4.2"
21
+ __version__ = "0.4.3"
22
22
 
23
23
  # ---------------------------------------------------------------------------
24
24
  # Errors
@@ -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,