Skip to content

Commit 306a3f0

Browse files
committed
Remove trailing whitespaces
1 parent 9bdb855 commit 306a3f0

23 files changed

+64
-64
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ This file contains the changelog for the Deeploy project. The changelog is divid
5555
### Fixed
5656
- Prevent node duplication for graphs generated via GraphSurgeon
5757
- Resolved issue with missing `id` in the `Build Cache for Docker` step, used in the `Inject build-cache` step.
58-
- Fix license CI check.
58+
- Fix license CI check.
5959

6060
### Removed
6161
- Delete outdated and unused `.gitlab-ci.yml` file

Deeploy/AbstractDataTypes.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -267,8 +267,8 @@ def partialOrderUpcast(cls, otherCls: Type[Immediate]) -> bool:
267267
@classmethod
268268
def checkValue(cls, value: Union[float, Iterable[float], np.ndarray], ctxt: Optional[_NetworkContext] = None):
269269
"""
270-
This method tries to manually cast standard python's standard immediate float precision values
271-
(64 bits) to an arbitrary FP representation and check if the new representation is close enough
270+
This method tries to manually cast standard python's standard immediate float precision values
271+
(64 bits) to an arbitrary FP representation and check if the new representation is close enough
272272
to the original value.
273273
"""
274274
_val_list = []

Deeploy/CommonExtensions/CodeTransformationPasses/PrintInputs.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,9 @@
4040
accessStr += "[" + f"print_iter_{idx}" + "]"
4141
if idx > 0:
4242
dimStr += "[" + f"{dim}" + "]"
43-
formatSpecifier = "%*i"
43+
formatSpecifier = "%*i"
4444
if "float" in bufferType.referencedType.typeName or "double" in bufferType.referencedType.typeName:
45-
formatSpecifier = "%*.6f"
45+
formatSpecifier = "%*.6f"
4646
%>
4747
printf("${nodeName} ${bufferName}: ${bufferType.referencedType.typeName}, ${bufferShape}, %p\\n", ${bufferName});
4848
% for idx, dim in enumerate(bufferShape):

Deeploy/Targets/Generic/Templates/FloatGemmTemplate.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,15 +48,15 @@
4848
% if A_batched:
4949
ref_${data_out}_${A} += ${M} * ${N};
5050
% endif
51-
51+
5252
% if B_batched:
5353
ref_${data_out}_${B} += ${N} * ${O};
5454
% endif
55-
55+
5656
% if C_batched:
5757
ref_${data_out}_${C} += ${M} * ${O};
5858
% endif
59-
59+
6060
ref_${data_out}_${data_out} += ${M} * ${O};
6161
}
6262
END_SINGLE_CORE

Deeploy/Targets/Generic/Templates/FloatLayernormTemplate.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,6 @@
2727

2828
referenceTemplate = NodeTemplate("""
2929
// FloatLayernorm (Name: ${nodeName}, Op: ${nodeOp})
30-
30+
3131
SINGLE_CORE Layernorm_fp${data_in_type.referencedType.typeWidth}_fp${data_out_type.referencedType.typeWidth}(${data_in}, ${data_out}, ${weight}, ${bias}, ${epsilon}, ${size}, ${lastDimLength});
3232
""")

Deeploy/Targets/Generic/Templates/FloatMaxPoolTemplate.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
ref_${data_out}_${data_in}, ${ch_im_in}, ${dim_im_in_x}, ${dim_im_in_y},${dim_kernel_x}, ${dim_kernel_y}, ${stride_x}, ${stride_y},
3838
ref_${data_out}_${data_out}
3939
);
40-
40+
4141
}
4242
END_SINGLE_CORE
4343
""")

Deeploy/Targets/Generic/Templates/FloatPadTemplate.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
<%
3030
y_offset_out = dim_im_out_ch*(pad_y*dim_im_out_y)
3131
x_offset_out = dim_im_out_ch*(pad_x)
32-
width = dim_im_in_ch*dim_im_in_y
32+
width = dim_im_in_ch*dim_im_in_y
3333
3434
addoffsetOut = dim_im_out_ch * dim_im_out_y
3535
addoffsetIn = dim_im_in_ch * dim_im_in_y

Deeploy/Targets/Generic/Templates/FloatReduceSumTemplate.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
from Deeploy.DeeployTypes import NodeTemplate
2626

2727
referenceTemplate = NodeTemplate("""
28-
// Float ReduceSum (Name: ${nodeName}, Op: ${nodeOp})
28+
// Float ReduceSum (Name: ${nodeName}, Op: ${nodeOp})
2929
BEGIN_SINGLE_CORE
3030
float32_t ${data_out}_accumulator = 0.0f;
3131
<% reduceLength = 1

Deeploy/Targets/Generic/Templates/QuantTemplate.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,23 +35,23 @@ def __init__(self, templateStr):
3535
referenceTemplate = _QuantTemplate("""
3636
// Quantization (Name: ${nodeName}, Op: ${nodeOp})
3737
BEGIN_SINGLE_CORE
38-
38+
3939
for (uint32_t i=0; i<${size}; i++) {
4040
// quantization formula
4141
float32_t input_val = ${data_in}[i];
4242
float32_t scaled_val = input_val * ${scale}; // Multiply instead of divide
4343
float32_t shifted_val = scaled_val + ${zero_point};
44-
44+
4545
// Round to nearest integer
4646
int32_t quantized = (int32_t)(shifted_val + 0.5f * (shifted_val >= 0 ? 1 : -1));
47-
47+
4848
// Clamp the value
4949
if (quantized < ${min_val}) quantized = ${min_val};
5050
if (quantized > ${max_val}) quantized = ${max_val};
51-
51+
5252
// Assign directly with explicit cast
5353
${data_out}[i] = (${data_out_type.referencedType.typeName})quantized;
54-
54+
5555
}
5656
END_SINGLE_CORE
5757
""")

Deeploy/Targets/Generic/Templates/SliceTemplate.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ def alignToContext(self, ctxt: NetworkContext,
6767
for dim in data_in_shape[1:]:
6868
dimSteps.append(dimSteps[-1]//dim)
6969
%>
70-
<%
70+
<%
7171
transferSize = dimSteps[int(axes[-1])]
7272
%>
7373
<%

0 commit comments

Comments
 (0)