counted-float 0.8.1__tar.gz → 0.8.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.
- {counted_float-0.8.1 → counted_float-0.8.2}/PKG-INFO +9 -8
- {counted_float-0.8.1 → counted_float-0.8.2}/README.md +8 -7
- {counted_float-0.8.1 → counted_float-0.8.2}/pyproject.toml +1 -1
- {counted_float-0.8.1 → counted_float-0.8.2}/.gitignore +0 -0
- {counted_float-0.8.1 → counted_float-0.8.2}/LICENSE +0 -0
- {counted_float-0.8.1 → counted_float-0.8.2}/counted_float/__init__.py +0 -0
- {counted_float-0.8.1 → counted_float-0.8.2}/counted_float/_core/__init__.py +0 -0
- {counted_float-0.8.1 → counted_float-0.8.2}/counted_float/_core/_backwards_compat.py +0 -0
- {counted_float-0.8.1 → counted_float-0.8.2}/counted_float/_core/_optional_deps.py +0 -0
- {counted_float-0.8.1 → counted_float-0.8.2}/counted_float/_core/benchmarking/__init__.py +0 -0
- {counted_float-0.8.1 → counted_float-0.8.2}/counted_float/_core/benchmarking/_flops_benchmark_suite.py +0 -0
- {counted_float-0.8.1 → counted_float-0.8.2}/counted_float/_core/benchmarking/_flops_micro_benchmark.py +0 -0
- {counted_float-0.8.1 → counted_float-0.8.2}/counted_float/_core/benchmarking/_micro_benchmark.py +0 -0
- {counted_float-0.8.1 → counted_float-0.8.2}/counted_float/_core/benchmarking/_models.py +0 -0
- {counted_float-0.8.1 → counted_float-0.8.2}/counted_float/_core/benchmarking/_time_utils.py +0 -0
- {counted_float-0.8.1 → counted_float-0.8.2}/counted_float/_core/counting/__init__.py +0 -0
- {counted_float-0.8.1 → counted_float-0.8.2}/counted_float/_core/counting/_builtin_data.py +0 -0
- {counted_float-0.8.1 → counted_float-0.8.2}/counted_float/_core/counting/_context_managers.py +0 -0
- {counted_float-0.8.1 → counted_float-0.8.2}/counted_float/_core/counting/_counted_float.py +0 -0
- {counted_float-0.8.1 → counted_float-0.8.2}/counted_float/_core/counting/_global_counter.py +0 -0
- {counted_float-0.8.1 → counted_float-0.8.2}/counted_float/_core/counting/config/__init__.py +0 -0
- {counted_float-0.8.1 → counted_float-0.8.2}/counted_float/_core/counting/config/_config.py +0 -0
- {counted_float-0.8.1 → counted_float-0.8.2}/counted_float/_core/counting/config/_defaults.py +0 -0
- {counted_float-0.8.1 → counted_float-0.8.2}/counted_float/_core/counting/models/__init__.py +0 -0
- {counted_float-0.8.1 → counted_float-0.8.2}/counted_float/_core/counting/models/_base.py +0 -0
- {counted_float-0.8.1 → counted_float-0.8.2}/counted_float/_core/counting/models/_flop_counts.py +0 -0
- {counted_float-0.8.1 → counted_float-0.8.2}/counted_float/_core/counting/models/_flop_type.py +0 -0
- {counted_float-0.8.1 → counted_float-0.8.2}/counted_float/_core/counting/models/_flop_weights.py +0 -0
- {counted_float-0.8.1 → counted_float-0.8.2}/counted_float/_core/counting/models/_flops_benchmark_result.py +0 -0
- {counted_float-0.8.1 → counted_float-0.8.2}/counted_float/_core/counting/models/_fpu_instruction.py +0 -0
- {counted_float-0.8.1 → counted_float-0.8.2}/counted_float/_core/counting/models/_fpu_specs.py +0 -0
- {counted_float-0.8.1 → counted_float-0.8.2}/counted_float/_core/data/__init__.py +0 -0
- {counted_float-0.8.1 → counted_float-0.8.2}/counted_float/_core/data/benchmarks/__init__.py +0 -0
- {counted_float-0.8.1 → counted_float-0.8.2}/counted_float/_core/data/benchmarks/apple_m3_max.json +0 -0
- {counted_float-0.8.1 → counted_float-0.8.2}/counted_float/_core/data/benchmarks/intel_i5_7200u.json +0 -0
- {counted_float-0.8.1 → counted_float-0.8.2}/counted_float/_core/data/benchmarks/intel_i7_1265u.json +0 -0
- {counted_float-0.8.1 → counted_float-0.8.2}/counted_float/_core/data/specs/__init__.py +0 -0
- {counted_float-0.8.1 → counted_float-0.8.2}/counted_float/_core/data/specs/amd_zen4_r9_7900x.json +0 -0
- {counted_float-0.8.1 → counted_float-0.8.2}/counted_float/_core/data/specs/intel_gen11_tiger_lake.json +0 -0
- {counted_float-0.8.1 → counted_float-0.8.2}/counted_float/benchmarking/__init__.py +0 -0
- {counted_float-0.8.1 → counted_float-0.8.2}/counted_float/config/__init__.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: counted-float
|
|
3
|
-
Version: 0.8.
|
|
3
|
+
Version: 0.8.2
|
|
4
4
|
Summary: Count floating-point operations in Python code & benchmark relative flop costs.
|
|
5
5
|
Project-URL: Source, https://github.com/bertpl/counted-float
|
|
6
6
|
Project-URL: Issues, https://github.com/bertpl/counted-float/issues
|
|
@@ -15,11 +15,12 @@ Requires-Dist: numpy>=1.20; extra == 'benchmarking'
|
|
|
15
15
|
Requires-Dist: psutil>=5.0; extra == 'benchmarking'
|
|
16
16
|
Description-Content-Type: text/markdown
|
|
17
17
|
|
|
18
|
-
<!--START_SECTION:
|
|
19
|
-

|
|
20
|
-

|
|
20
|
+

|
|
21
|
+

|
|
22
|
+

|
|
23
|
+
<!--END_SECTION:images-->
|
|
23
24
|
|
|
24
25
|
# counted-float
|
|
25
26
|
|
|
@@ -118,7 +119,7 @@ cf2 = CountedFloat(2.94)
|
|
|
118
119
|
with FlopCountingContext() as ctx:
|
|
119
120
|
_ = cf1 * cf2
|
|
120
121
|
ctx.pause()
|
|
121
|
-
_ = cf1 + cf2 # will be executed but
|
|
122
|
+
_ = cf1 + cf2 # will be executed but not counted
|
|
122
123
|
ctx.resume()
|
|
123
124
|
_ = cf1 - cf2
|
|
124
125
|
|
|
@@ -137,7 +138,7 @@ cf2 = CountedFloat(2.94)
|
|
|
137
138
|
with FlopCountingContext() as ctx:
|
|
138
139
|
_ = cf1 * cf2
|
|
139
140
|
with PauseFlopCounting():
|
|
140
|
-
_ = cf1 + cf2 # will be executed but
|
|
141
|
+
_ = cf1 + cf2 # will be executed but not counted
|
|
141
142
|
_ = cf1 - cf2
|
|
142
143
|
|
|
143
144
|
counts = ctx.flop_counts() # {FlopType.MUL: 1, FlopType.SUB: 1}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
<!--START_SECTION:
|
|
2
|
-

|
|
3
|
-

|
|
3
|
+

|
|
4
|
+

|
|
5
|
+

|
|
6
|
+
<!--END_SECTION:images-->
|
|
6
7
|
|
|
7
8
|
# counted-float
|
|
8
9
|
|
|
@@ -101,7 +102,7 @@ cf2 = CountedFloat(2.94)
|
|
|
101
102
|
with FlopCountingContext() as ctx:
|
|
102
103
|
_ = cf1 * cf2
|
|
103
104
|
ctx.pause()
|
|
104
|
-
_ = cf1 + cf2 # will be executed but
|
|
105
|
+
_ = cf1 + cf2 # will be executed but not counted
|
|
105
106
|
ctx.resume()
|
|
106
107
|
_ = cf1 - cf2
|
|
107
108
|
|
|
@@ -120,7 +121,7 @@ cf2 = CountedFloat(2.94)
|
|
|
120
121
|
with FlopCountingContext() as ctx:
|
|
121
122
|
_ = cf1 * cf2
|
|
122
123
|
with PauseFlopCounting():
|
|
123
|
-
_ = cf1 + cf2 # will be executed but
|
|
124
|
+
_ = cf1 + cf2 # will be executed but not counted
|
|
124
125
|
_ = cf1 - cf2
|
|
125
126
|
|
|
126
127
|
counts = ctx.flop_counts() # {FlopType.MUL: 1, FlopType.SUB: 1}
|
|
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
|
{counted_float-0.8.1 → counted_float-0.8.2}/counted_float/_core/benchmarking/_micro_benchmark.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{counted_float-0.8.1 → counted_float-0.8.2}/counted_float/_core/counting/_context_managers.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{counted_float-0.8.1 → counted_float-0.8.2}/counted_float/_core/counting/config/_defaults.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{counted_float-0.8.1 → counted_float-0.8.2}/counted_float/_core/counting/models/_flop_counts.py
RENAMED
|
File without changes
|
{counted_float-0.8.1 → counted_float-0.8.2}/counted_float/_core/counting/models/_flop_type.py
RENAMED
|
File without changes
|
{counted_float-0.8.1 → counted_float-0.8.2}/counted_float/_core/counting/models/_flop_weights.py
RENAMED
|
File without changes
|
|
File without changes
|
{counted_float-0.8.1 → counted_float-0.8.2}/counted_float/_core/counting/models/_fpu_instruction.py
RENAMED
|
File without changes
|
{counted_float-0.8.1 → counted_float-0.8.2}/counted_float/_core/counting/models/_fpu_specs.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{counted_float-0.8.1 → counted_float-0.8.2}/counted_float/_core/data/benchmarks/apple_m3_max.json
RENAMED
|
File without changes
|
{counted_float-0.8.1 → counted_float-0.8.2}/counted_float/_core/data/benchmarks/intel_i5_7200u.json
RENAMED
|
File without changes
|
{counted_float-0.8.1 → counted_float-0.8.2}/counted_float/_core/data/benchmarks/intel_i7_1265u.json
RENAMED
|
File without changes
|
|
File without changes
|
{counted_float-0.8.1 → counted_float-0.8.2}/counted_float/_core/data/specs/amd_zen4_r9_7900x.json
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|