quantizers 1.0.0__tar.gz → 1.0.0.post1__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 (48) hide show
  1. quantizers-1.0.0.post1/.github/workflows/python-publish.yml +33 -0
  2. quantizers-1.0.0.post1/.github/workflows/python-test.yml +32 -0
  3. {quantizers-1.0.0 → quantizers-1.0.0.post1}/PKG-INFO +8 -2
  4. {quantizers-1.0.0 → quantizers-1.0.0.post1}/README.md +3 -0
  5. {quantizers-1.0.0 → quantizers-1.0.0.post1}/pyproject.toml +10 -2
  6. {quantizers-1.0.0 → quantizers-1.0.0.post1}/src/quantizers/_version.py +2 -2
  7. {quantizers-1.0.0 → quantizers-1.0.0.post1}/src/quantizers.egg-info/PKG-INFO +8 -2
  8. {quantizers-1.0.0 → quantizers-1.0.0.post1}/src/quantizers.egg-info/SOURCES.txt +2 -0
  9. {quantizers-1.0.0 → quantizers-1.0.0.post1}/src/quantizers.egg-info/requires.txt +4 -1
  10. {quantizers-1.0.0 → quantizers-1.0.0.post1}/.clang-format +0 -0
  11. {quantizers-1.0.0 → quantizers-1.0.0.post1}/.gitignore +0 -0
  12. {quantizers-1.0.0 → quantizers-1.0.0.post1}/.pre-commit-config.yaml +0 -0
  13. {quantizers-1.0.0 → quantizers-1.0.0.post1}/LICENSE +0 -0
  14. {quantizers-1.0.0 → quantizers-1.0.0.post1}/setup.cfg +0 -0
  15. {quantizers-1.0.0 → quantizers-1.0.0.post1}/src/quantizers/__init__.py +0 -0
  16. {quantizers-1.0.0 → quantizers-1.0.0.post1}/src/quantizers/binary/__init__.py +0 -0
  17. {quantizers-1.0.0 → quantizers-1.0.0.post1}/src/quantizers/binary/binary_ops.py +0 -0
  18. {quantizers-1.0.0 → quantizers-1.0.0.post1}/src/quantizers/binary/binary_ops_np.py +0 -0
  19. {quantizers-1.0.0 → quantizers-1.0.0.post1}/src/quantizers/fixed_point/__init__.py +0 -0
  20. {quantizers-1.0.0 → quantizers-1.0.0.post1}/src/quantizers/fixed_point/fixed_point_ops.py +0 -0
  21. {quantizers-1.0.0 → quantizers-1.0.0.post1}/src/quantizers/fixed_point/fixed_point_ops_np.py +0 -0
  22. {quantizers-1.0.0 → quantizers-1.0.0.post1}/src/quantizers/minifloat/__init__.py +0 -0
  23. {quantizers-1.0.0 → quantizers-1.0.0.post1}/src/quantizers/minifloat/float_point_ops.py +0 -0
  24. {quantizers-1.0.0 → quantizers-1.0.0.post1}/src/quantizers/minifloat/float_point_ops_np.py +0 -0
  25. {quantizers-1.0.0 → quantizers-1.0.0.post1}/src/quantizers/stateful_quantizers.py +0 -0
  26. {quantizers-1.0.0 → quantizers-1.0.0.post1}/src/quantizers.egg-info/dependency_links.txt +0 -0
  27. {quantizers-1.0.0 → quantizers-1.0.0.post1}/src/quantizers.egg-info/top_level.txt +0 -0
  28. {quantizers-1.0.0 → quantizers-1.0.0.post1}/test/cpp_source/ap_types/ap_binary.h +0 -0
  29. {quantizers-1.0.0 → quantizers-1.0.0.post1}/test/cpp_source/ap_types/ap_common.h +0 -0
  30. {quantizers-1.0.0 → quantizers-1.0.0.post1}/test/cpp_source/ap_types/ap_decl.h +0 -0
  31. {quantizers-1.0.0 → quantizers-1.0.0.post1}/test/cpp_source/ap_types/ap_fixed.h +0 -0
  32. {quantizers-1.0.0 → quantizers-1.0.0.post1}/test/cpp_source/ap_types/ap_fixed_base.h +0 -0
  33. {quantizers-1.0.0 → quantizers-1.0.0.post1}/test/cpp_source/ap_types/ap_fixed_ref.h +0 -0
  34. {quantizers-1.0.0 → quantizers-1.0.0.post1}/test/cpp_source/ap_types/ap_fixed_special.h +0 -0
  35. {quantizers-1.0.0 → quantizers-1.0.0.post1}/test/cpp_source/ap_types/ap_float.h +0 -0
  36. {quantizers-1.0.0 → quantizers-1.0.0.post1}/test/cpp_source/ap_types/ap_int.h +0 -0
  37. {quantizers-1.0.0 → quantizers-1.0.0.post1}/test/cpp_source/ap_types/ap_int_base.h +0 -0
  38. {quantizers-1.0.0 → quantizers-1.0.0.post1}/test/cpp_source/ap_types/ap_int_ref.h +0 -0
  39. {quantizers-1.0.0 → quantizers-1.0.0.post1}/test/cpp_source/ap_types/ap_int_special.h +0 -0
  40. {quantizers-1.0.0 → quantizers-1.0.0.post1}/test/cpp_source/ap_types/ap_shift_reg.h +0 -0
  41. {quantizers-1.0.0 → quantizers-1.0.0.post1}/test/cpp_source/ap_types/etc/ap_private.h +0 -0
  42. {quantizers-1.0.0 → quantizers-1.0.0.post1}/test/cpp_source/ap_types/hls_math.h +0 -0
  43. {quantizers-1.0.0 → quantizers-1.0.0.post1}/test/cpp_source/ap_types/hls_stream.h +0 -0
  44. {quantizers-1.0.0 → quantizers-1.0.0.post1}/test/cpp_source/ap_types/test.cpp +0 -0
  45. {quantizers-1.0.0 → quantizers-1.0.0.post1}/test/cpp_source/ap_types/utils/x_hls_utils.h +0 -0
  46. {quantizers-1.0.0 → quantizers-1.0.0.post1}/test/cpp_source/quantizers.h +0 -0
  47. {quantizers-1.0.0 → quantizers-1.0.0.post1}/test/test_quantizer_match.py +0 -0
  48. {quantizers-1.0.0 → quantizers-1.0.0.post1}/test/test_stateless_quantizer.py +0 -0
@@ -0,0 +1,33 @@
1
+ name: Upload Python Package
2
+
3
+ on:
4
+ release:
5
+ types: [published]
6
+
7
+ permissions:
8
+ contents: read
9
+
10
+ jobs:
11
+ deploy:
12
+
13
+ runs-on: ubuntu-latest
14
+
15
+ steps:
16
+ - uses: actions/checkout@v4
17
+ with:
18
+ fetch-depth: 0
19
+ - name: Set up Python
20
+ uses: actions/setup-python@v3
21
+ with:
22
+ python-version: '3.x'
23
+ - name: Install dependencies
24
+ run: |
25
+ python -m pip install --upgrade pip
26
+ pip install build
27
+ - name: Build package
28
+ run: python -m build
29
+ - name: Publish package
30
+ uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29
31
+ with:
32
+ user: __token__
33
+ password: ${{ secrets.PYPI_API_TOKEN }}
@@ -0,0 +1,32 @@
1
+ name: Tests
2
+
3
+ on:
4
+ push
5
+
6
+ jobs:
7
+ test:
8
+ name: Run tests and collect coverage
9
+ runs-on: ubuntu-latest
10
+ steps:
11
+ - name: Checkout
12
+ uses: actions/checkout@v4
13
+ with:
14
+ fetch-depth: 0
15
+
16
+ - name: Set up Python
17
+ uses: actions/setup-python@v4
18
+ with:
19
+ python-version: 3.x
20
+
21
+ - name: Install dependencies
22
+ run: |
23
+ cd $GITHUB_WORKSPACE
24
+ pip install '.[test]'
25
+
26
+ - name: Run tests
27
+ run: pytest -n4 --cov --cov-report=xml
28
+
29
+ - name: Upload results to Codecov
30
+ uses: codecov/codecov-action@v4
31
+ with:
32
+ token: ${{ secrets.CODECOV_TOKEN }}
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: quantizers
3
- Version: 1.0.0
3
+ Version: 1.0.0.post1
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
@@ -20,11 +20,17 @@ Provides-Extra: test
20
20
  Requires-Dist: pytest; extra == "test"
21
21
  Requires-Dist: pytest-cov; extra == "test"
22
22
  Requires-Dist: pytest-xdist; extra == "test"
23
- Requires-Dist: keras>=3; extra == "test"
23
+ Requires-Dist: pytest-env; extra == "test"
24
+ Requires-Dist: keras>=3.0; extra == "test"
25
+ Requires-Dist: cppyy; extra == "test"
26
+ Requires-Dist: jax; extra == "test"
24
27
 
25
28
  # Quantizers
26
29
  [![PyPI version](https://badge.fury.io/py/quantizers.svg)](https://badge.fury.io/py/quantizers)
27
30
  [![License](https://img.shields.io/badge/License-LGPL-blue)](LICENSE)
31
+ [![Tests](https://github.com/calad0i/quantizers/actions/workflows/python-test.yml/badge.svg)](https://github.com/calad0i/quantizers/actions/workflows/python-test.yml)
32
+ [![Coverage](https://img.shields.io/codecov/c/github/calad0i/quantizers)](https://app.codecov.io/gh/calad0i/quantizers)
33
+
28
34
 
29
35
  Hardware-oriented numerical quantizers for deep learning models, implemented in Keras v3 and NumPy. Provides bit-accurate precision matching with Vivado/Vitis HLS implementations.
30
36
 
@@ -1,6 +1,9 @@
1
1
  # Quantizers
2
2
  [![PyPI version](https://badge.fury.io/py/quantizers.svg)](https://badge.fury.io/py/quantizers)
3
3
  [![License](https://img.shields.io/badge/License-LGPL-blue)](LICENSE)
4
+ [![Tests](https://github.com/calad0i/quantizers/actions/workflows/python-test.yml/badge.svg)](https://github.com/calad0i/quantizers/actions/workflows/python-test.yml)
5
+ [![Coverage](https://img.shields.io/codecov/c/github/calad0i/quantizers)](https://app.codecov.io/gh/calad0i/quantizers)
6
+
4
7
 
5
8
  Hardware-oriented numerical quantizers for deep learning models, implemented in Keras v3 and NumPy. Provides bit-accurate precision matching with Vivado/Vitis HLS implementations.
6
9
 
@@ -5,7 +5,7 @@ build-backend = "setuptools.build_meta"
5
5
 
6
6
  [project]
7
7
  name = "quantizers"
8
- version = "1.0.0"
8
+ version = "1.0.0post1"
9
9
  authors = [{ name = "Chang Sun", email = "chsun@cern.ch" }]
10
10
  description = ""
11
11
  readme = "README.md"
@@ -37,7 +37,15 @@ write_to = "src/quantizers/_version.py"
37
37
  dependencies = ["numpy"]
38
38
 
39
39
  grad = ['keras>=3']
40
- test = ['pytest', 'pytest-cov', 'pytest-xdist', 'keras>=3']
40
+ test = [
41
+ 'pytest',
42
+ 'pytest-cov',
43
+ 'pytest-xdist',
44
+ 'pytest-env',
45
+ 'keras>=3.0',
46
+ 'cppyy',
47
+ 'jax',
48
+ ]
41
49
 
42
50
  [tool.pytest.ini_options]
43
51
  filterwarnings = [
@@ -12,5 +12,5 @@ __version__: str
12
12
  __version_tuple__: VERSION_TUPLE
13
13
  version_tuple: VERSION_TUPLE
14
14
 
15
- __version__ = version = '0.1.dev7+gd2c344d'
16
- __version_tuple__ = version_tuple = (0, 1, 'dev7', 'gd2c344d')
15
+ __version__ = version = '1.0.0.post1'
16
+ __version_tuple__ = version_tuple = (1, 0, 0)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: quantizers
3
- Version: 1.0.0
3
+ Version: 1.0.0.post1
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
@@ -20,11 +20,17 @@ Provides-Extra: test
20
20
  Requires-Dist: pytest; extra == "test"
21
21
  Requires-Dist: pytest-cov; extra == "test"
22
22
  Requires-Dist: pytest-xdist; extra == "test"
23
- Requires-Dist: keras>=3; extra == "test"
23
+ Requires-Dist: pytest-env; extra == "test"
24
+ Requires-Dist: keras>=3.0; extra == "test"
25
+ Requires-Dist: cppyy; extra == "test"
26
+ Requires-Dist: jax; extra == "test"
24
27
 
25
28
  # Quantizers
26
29
  [![PyPI version](https://badge.fury.io/py/quantizers.svg)](https://badge.fury.io/py/quantizers)
27
30
  [![License](https://img.shields.io/badge/License-LGPL-blue)](LICENSE)
31
+ [![Tests](https://github.com/calad0i/quantizers/actions/workflows/python-test.yml/badge.svg)](https://github.com/calad0i/quantizers/actions/workflows/python-test.yml)
32
+ [![Coverage](https://img.shields.io/codecov/c/github/calad0i/quantizers)](https://app.codecov.io/gh/calad0i/quantizers)
33
+
28
34
 
29
35
  Hardware-oriented numerical quantizers for deep learning models, implemented in Keras v3 and NumPy. Provides bit-accurate precision matching with Vivado/Vitis HLS implementations.
30
36
 
@@ -4,6 +4,8 @@
4
4
  LICENSE
5
5
  README.md
6
6
  pyproject.toml
7
+ .github/workflows/python-publish.yml
8
+ .github/workflows/python-test.yml
7
9
  src/quantizers/__init__.py
8
10
  src/quantizers/_version.py
9
11
  src/quantizers/stateful_quantizers.py
@@ -9,4 +9,7 @@ keras>=3
9
9
  pytest
10
10
  pytest-cov
11
11
  pytest-xdist
12
- keras>=3
12
+ pytest-env
13
+ keras>=3.0
14
+ cppyy
15
+ jax
File without changes
File without changes
File without changes