quantizers 1.2.1__tar.gz → 1.2.2__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 (51) hide show
  1. {quantizers-1.2.1/src/quantizers.egg-info → quantizers-1.2.2}/PKG-INFO +1 -1
  2. {quantizers-1.2.1 → quantizers-1.2.2}/pyproject.toml +1 -1
  3. {quantizers-1.2.1 → quantizers-1.2.2}/src/quantizers/_version.py +2 -2
  4. {quantizers-1.2.1 → quantizers-1.2.2}/src/quantizers/fixed_point/_fixed_point_ops.py +1 -1
  5. {quantizers-1.2.1 → quantizers-1.2.2}/src/quantizers/fixed_point/fixed_point_ops_np.py +1 -1
  6. {quantizers-1.2.1 → quantizers-1.2.2/src/quantizers.egg-info}/PKG-INFO +1 -1
  7. {quantizers-1.2.1 → quantizers-1.2.2}/.clang-format +0 -0
  8. {quantizers-1.2.1 → quantizers-1.2.2}/.github/workflows/python-publish.yml +0 -0
  9. {quantizers-1.2.1 → quantizers-1.2.2}/.github/workflows/python-test.yml +0 -0
  10. {quantizers-1.2.1 → quantizers-1.2.2}/.gitignore +0 -0
  11. {quantizers-1.2.1 → quantizers-1.2.2}/.pre-commit-config.yaml +0 -0
  12. {quantizers-1.2.1 → quantizers-1.2.2}/LICENSE +0 -0
  13. {quantizers-1.2.1 → quantizers-1.2.2}/README.md +0 -0
  14. {quantizers-1.2.1 → quantizers-1.2.2}/setup.cfg +0 -0
  15. {quantizers-1.2.1 → quantizers-1.2.2}/src/quantizers/__init__.py +0 -0
  16. {quantizers-1.2.1 → quantizers-1.2.2}/src/quantizers/binary/__init__.py +0 -0
  17. {quantizers-1.2.1 → quantizers-1.2.2}/src/quantizers/binary/_binary_ops.py +0 -0
  18. {quantizers-1.2.1 → quantizers-1.2.2}/src/quantizers/binary/binary_ops.py +0 -0
  19. {quantizers-1.2.1 → quantizers-1.2.2}/src/quantizers/binary/binary_ops_np.py +0 -0
  20. {quantizers-1.2.1 → quantizers-1.2.2}/src/quantizers/fixed_point/__init__.py +0 -0
  21. {quantizers-1.2.1 → quantizers-1.2.2}/src/quantizers/fixed_point/fixed_point_ops.py +0 -0
  22. {quantizers-1.2.1 → quantizers-1.2.2}/src/quantizers/minifloat/__init__.py +0 -0
  23. {quantizers-1.2.1 → quantizers-1.2.2}/src/quantizers/minifloat/_float_point_ops.py +0 -0
  24. {quantizers-1.2.1 → quantizers-1.2.2}/src/quantizers/minifloat/float_point_ops.py +0 -0
  25. {quantizers-1.2.1 → quantizers-1.2.2}/src/quantizers/minifloat/float_point_ops_np.py +0 -0
  26. {quantizers-1.2.1 → quantizers-1.2.2}/src/quantizers/stateful_quantizers.py +0 -0
  27. {quantizers-1.2.1 → quantizers-1.2.2}/src/quantizers.egg-info/SOURCES.txt +0 -0
  28. {quantizers-1.2.1 → quantizers-1.2.2}/src/quantizers.egg-info/dependency_links.txt +0 -0
  29. {quantizers-1.2.1 → quantizers-1.2.2}/src/quantizers.egg-info/requires.txt +0 -0
  30. {quantizers-1.2.1 → quantizers-1.2.2}/src/quantizers.egg-info/top_level.txt +0 -0
  31. {quantizers-1.2.1 → quantizers-1.2.2}/test/cpp_source/ap_types/ap_binary.h +0 -0
  32. {quantizers-1.2.1 → quantizers-1.2.2}/test/cpp_source/ap_types/ap_common.h +0 -0
  33. {quantizers-1.2.1 → quantizers-1.2.2}/test/cpp_source/ap_types/ap_decl.h +0 -0
  34. {quantizers-1.2.1 → quantizers-1.2.2}/test/cpp_source/ap_types/ap_fixed.h +0 -0
  35. {quantizers-1.2.1 → quantizers-1.2.2}/test/cpp_source/ap_types/ap_fixed_base.h +0 -0
  36. {quantizers-1.2.1 → quantizers-1.2.2}/test/cpp_source/ap_types/ap_fixed_ref.h +0 -0
  37. {quantizers-1.2.1 → quantizers-1.2.2}/test/cpp_source/ap_types/ap_fixed_special.h +0 -0
  38. {quantizers-1.2.1 → quantizers-1.2.2}/test/cpp_source/ap_types/ap_float.h +0 -0
  39. {quantizers-1.2.1 → quantizers-1.2.2}/test/cpp_source/ap_types/ap_int.h +0 -0
  40. {quantizers-1.2.1 → quantizers-1.2.2}/test/cpp_source/ap_types/ap_int_base.h +0 -0
  41. {quantizers-1.2.1 → quantizers-1.2.2}/test/cpp_source/ap_types/ap_int_ref.h +0 -0
  42. {quantizers-1.2.1 → quantizers-1.2.2}/test/cpp_source/ap_types/ap_int_special.h +0 -0
  43. {quantizers-1.2.1 → quantizers-1.2.2}/test/cpp_source/ap_types/ap_shift_reg.h +0 -0
  44. {quantizers-1.2.1 → quantizers-1.2.2}/test/cpp_source/ap_types/etc/ap_private.h +0 -0
  45. {quantizers-1.2.1 → quantizers-1.2.2}/test/cpp_source/ap_types/hls_math.h +0 -0
  46. {quantizers-1.2.1 → quantizers-1.2.2}/test/cpp_source/ap_types/hls_stream.h +0 -0
  47. {quantizers-1.2.1 → quantizers-1.2.2}/test/cpp_source/ap_types/test.cpp +0 -0
  48. {quantizers-1.2.1 → quantizers-1.2.2}/test/cpp_source/ap_types/utils/x_hls_utils.h +0 -0
  49. {quantizers-1.2.1 → quantizers-1.2.2}/test/cpp_source/quantizers.h +0 -0
  50. {quantizers-1.2.1 → quantizers-1.2.2}/test/test_quantizer_match.py +0 -0
  51. {quantizers-1.2.1 → quantizers-1.2.2}/test/test_stateless_quantizer.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: quantizers
3
- Version: 1.2.1
3
+ Version: 1.2.2
4
4
  Author-email: Chang Sun <chsun@cern.ch>
5
5
  License: GNU Lesser General Public License v3 (LGPLv3)
6
6
  Project-URL: repository, https://github.com/calad0i/quantizers
@@ -5,7 +5,7 @@ build-backend = "setuptools.build_meta"
5
5
 
6
6
  [project]
7
7
  name = "quantizers"
8
- version = "1.2.1"
8
+ version = "1.2.2"
9
9
  authors = [{ name = "Chang Sun", email = "chsun@cern.ch" }]
10
10
  description = ""
11
11
  readme = "README.md"
@@ -17,5 +17,5 @@ __version__: str
17
17
  __version_tuple__: VERSION_TUPLE
18
18
  version_tuple: VERSION_TUPLE
19
19
 
20
- __version__ = version = '1.2.1'
21
- __version_tuple__ = version_tuple = (1, 2, 1)
20
+ __version__ = version = '1.2.2'
21
+ __version_tuple__ = version_tuple = (1, 2, 2)
@@ -124,7 +124,7 @@ def wrap_sm_fn(x, k, i, f, training=None, quant_fn: Callable = lambda x: x):
124
124
  eps = 2.0**-f
125
125
  high = 2.0**i - eps
126
126
  low = -(high + eps) * k
127
- interval = 2 ** (i + k)
127
+ interval = 2.0 ** (i + k)
128
128
  c1 = ((x) / interval) % 2 >= 1 # type: ignore
129
129
  c1 = c1 & (ops.abs(x) > eps / 2)
130
130
  c2 = ((x + eps / 2) / (interval / 2)) % 2 >= 1 # type: ignore
@@ -117,7 +117,7 @@ def wrap_sm_fn(x, k, i, f, training=None, quant_fn: Callable = lambda x: x):
117
117
  eps = 2.0**-f
118
118
  high = 2.0**i - eps
119
119
  low = -(high + eps) * k
120
- interval = 2 ** (i + k)
120
+ interval = 2.0 ** (i + k)
121
121
  c1 = ((x) / interval) % 2 >= 1
122
122
  c1 = c1 & (np.abs(x) > eps / 2)
123
123
  c2 = ((x + eps / 2) / (interval / 2)) % 2 >= 1
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: quantizers
3
- Version: 1.2.1
3
+ Version: 1.2.2
4
4
  Author-email: Chang Sun <chsun@cern.ch>
5
5
  License: GNU Lesser General Public License v3 (LGPLv3)
6
6
  Project-URL: repository, https://github.com/calad0i/quantizers
File without changes
File without changes
File without changes
File without changes
File without changes