We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1232a26 commit c977b00Copy full SHA for c977b00
scripts/test_tensor_api.py
@@ -512,15 +512,15 @@ class TestMooncakeBenchmark(MooncakeTestBase):
512
# Benchmark Settings
513
BENCH_ITERATIONS = 5
514
TENSOR_SIZE_MB = 16
515
- TOTAL_SIZE_GB = 256
+ TOTAL_SIZE_MB = 256
516
517
def setUp(self):
518
"""Benchmark-specific setUp."""
519
# 1. Call parent setUp to clean the store (remove_all)
520
super().setUp()
521
522
# 2. Generate test data
523
- total_bytes = self.TOTAL_SIZE_GB * 1024**3
+ total_bytes = int(self.TOTAL_SIZE_MB * 1024**2)
524
tensor_bytes = self.TENSOR_SIZE_MB * 1024**2
525
self.num_tensors = max(1, total_bytes // tensor_bytes)
526
0 commit comments