Skip to content

Commit fb529e9

Browse files
committed
Format all files
1 parent 7e02275 commit fb529e9

11 files changed

Lines changed: 20 additions & 20 deletions

File tree

.vscode/launch.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@
6767
},
6868
"labelTransform": {
6969
"text": "${fileDirname}",
70-
"find" : "${workspaceFolder}/DeeployTest/Tests/",
70+
"find": "${workspaceFolder}/DeeployTest/Tests/",
7171
"replace": ""
7272
},
7373
"valueTransform": {

Container/Dockerfile.deeploy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ ENV SOFTHIER_INSTALL_DIR=/app/install/softhier
8181
ENV MINIMALLOC_INSTALL_DIR=/app/install/minimalloc
8282
ENV MEMPOOL_HOME=/app/install/mempool
8383
ENV BENDER_INSTALL_DIR=/app/install/bender
84-
ENV PATH=/app/install/qemu/bin:/app/install/banshee:/app/install/bender:$PATH
84+
ENV PATH=/app/install/qemu/bin:/app/install/banshee:/app/install/bender:$PATH
8585

8686
WORKDIR /app
8787

Deeploy/Targets/PULPOpen/Templates/FloatLayernormTemplate.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,19 +24,19 @@
2424
int8_t ${nodeName}_log2Core = log2(NUM_CORES);
2525
2626
int32_t ${nodeName}_seq_length = ${size} / ${lastDimLength};
27-
int32_t ${nodeName}_chunk = (${nodeName}_seq_length >> ${nodeName}_log2Core) +
27+
int32_t ${nodeName}_chunk = (${nodeName}_seq_length >> ${nodeName}_log2Core) +
2828
((${nodeName}_seq_length & (NUM_CORES-1)) != 0);
2929
int32_t ${nodeName}_start = MIN(${nodeName}_chunk * ${nodeName}_core_id, ${nodeName}_seq_length);
3030
int32_t ${nodeName}_end = MIN(${nodeName}_start + ${nodeName}_chunk, ${nodeName}_seq_length);
31-
31+
3232
int32_t ${nodeName}_elem_start = ${nodeName}_start * ${lastDimLength};
3333
int32_t ${nodeName}_elem_end = ${nodeName}_end * ${lastDimLength};
3434
int32_t ${nodeName}_elem_count = ${nodeName}_elem_end - ${nodeName}_elem_start;
35-
35+
3636
const float${grad_in_type.referencedType.typeWidth}_t* ${nodeName}_grad_in_ptr = ${grad_in} + ${nodeName}_elem_start;
3737
const float${data_in_type.referencedType.typeWidth}_t* ${nodeName}_data_in_ptr = ${data_in} + ${nodeName}_elem_start;
3838
float${grad_out_type.referencedType.typeWidth}_t* ${nodeName}_grad_out_ptr = ${grad_out} + ${nodeName}_elem_start;
39-
39+
4040
if (${nodeName}_elem_count > 0) {
4141
LayernormGrad_fp${grad_in_type.referencedType.typeWidth}_fp${grad_out_type.referencedType.typeWidth}(
4242
${nodeName}_grad_in_ptr, // Upstream gradient (dy)

Deeploy/Targets/PULPOpen/Templates/SGDTemplate.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
temp_mul[3] = learning_rate * ref_${grad}[i+3];
3232
temp_mul[4] = learning_rate * ref_${grad}[i+4];
3333
temp_mul[5] = learning_rate * ref_${grad}[i+5];
34-
34+
3535
// Unrolled subtraction operations
3636
ref_${weight_updated}[i] = ref_${weight}[i] - temp_mul[0];
3737
ref_${weight_updated}[i+1] = ref_${weight}[i+1] - temp_mul[1];

DeeployTest/testUtils/core/execution.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
def generate_network(config: DeeployTestConfig, skip: bool = False) -> None:
1818
"""
1919
Generate network code from ONNX model.
20-
20+
2121
Raises:
2222
RuntimeError: If network generation fails
2323
"""
@@ -151,7 +151,7 @@ def build_binary(config: DeeployTestConfig) -> None:
151151
def run_simulation(config: DeeployTestConfig, skip: bool = False) -> TestResult:
152152
"""
153153
Run simulation and parse output.
154-
154+
155155
Raises:
156156
RuntimeError: If simulation cannot be executed
157157
"""

DeeployTest/testUtils/core/paths.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,12 @@
1111
def get_test_paths(test_dir: str, platform: str, base_dir: Optional[str] = None) -> Tuple[str, str, str]:
1212
"""
1313
Resolve test paths for generation and build directories.
14-
14+
1515
Args:
1616
test_dir: Path to test directory (e.g., "Tests/Adder" or absolute path)
1717
platform: Platform name (e.g., "Generic")
1818
base_dir: Base directory for tests (defaults to DeeployTest/)
19-
19+
2020
Returns:
2121
Tuple of (gen_dir, test_dir_abs, test_name)
2222
"""

DeeployTest/testUtils/deeployRunner.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,7 @@ def main(default_platform: Optional[str] = None,
316316
parser_setup_callback = None):
317317
"""
318318
Main entry point for Deeploy test runners.
319-
319+
320320
Args:
321321
default_platform: Default platform if not specified via -p
322322
default_simulator: Default simulator if not specified via -s

DeeployTest/testUtils/pytestRunner.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
def get_worker_id() -> str:
2222
"""
2323
Get the pytest-xdist worker ID for parallel test execution.
24-
24+
2525
Returns:
2626
Worker ID string (e.g., 'gw0', 'gw1', 'master' for non-parallel)
2727
"""
@@ -114,7 +114,7 @@ def create_test_config(
114114
def run_and_assert_test(test_name: str, config: DeeployTestConfig, skipgen: bool, skipsim: bool) -> None:
115115
"""
116116
Shared helper function to run a test and assert its results.
117-
117+
118118
Raises:
119119
AssertionError: If test fails or has errors
120120
"""

DeeployTest/test_dmas.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
@pytest.fixture(autouse = True)
4848
def clear_deeploy_state():
4949
"""Clear dynamically generated struct classes from AbstractDataTypes before each test.
50-
50+
5151
This prevents state pollution between DMA tests where dynamically generated
5252
struct classes (like _memcpy_0_tiling_closure_args_t) persist and cause
5353
conflicts when tests with different configurations try to create new versions.
@@ -111,7 +111,7 @@ def setup_dma_deployer(dma_type: str, input_shape: tuple, tile_shape: tuple, nod
111111
doublebuffer: bool, gen_dir: str):
112112
"""
113113
Set up deployer for DMA testing with custom tiling.
114-
114+
115115
Args:
116116
dma_type: DMA implementation ("MchanDma", "L3Dma", "SnitchDma")
117117
input_shape: Tensor shape to copy
@@ -120,7 +120,7 @@ def setup_dma_deployer(dma_type: str, input_shape: tuple, tile_shape: tuple, nod
120120
data_type: Data type (uint8_t, uint16_t, uint32_t)
121121
doublebuffer: Enable double buffering
122122
gen_dir: Generation directory
123-
123+
124124
Returns:
125125
tuple: (deployer, test_inputs, test_outputs)
126126
"""

DeeployTest/test_platforms.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,11 +48,11 @@
4848
def generate_test_params(test_dict, config_name):
4949
"""
5050
Generate test parameters from a dictionary of test names to L1 values.
51-
51+
5252
Args:
5353
test_dict: Dictionary mapping test_name -> list of L1 values
5454
config_name: Configuration name for test ID (e.g., "L2-singlebuffer")
55-
55+
5656
Returns:
5757
List of (test_name, l1_value, config_name) tuples
5858
"""

0 commit comments

Comments
 (0)