Skip to content

Commit e8de27a

Browse files
committed
Reformat
1 parent d278c80 commit e8de27a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Deeploy/Targets/PULPOpen/Templates/FloatConvTemplate.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,8 @@ def __init__(self, templateStr):
4040
super().__init__(templateStr)
4141

4242
@staticmethod
43-
def computeTransientBuffersSize(
44-
ctxt: NetworkContext,
45-
operatorRepresentation: OperatorRepresentation) -> List[Tuple[str, str]]:
43+
def computeTransientBuffersSize(ctxt: NetworkContext,
44+
operatorRepresentation: OperatorRepresentation) -> List[Tuple[str, str]]:
4645

4746
# Memory allocation for the im2col buffer can be dynamic, based on the number of cores.
4847
# WARNING: This works because value is only used as string, in the allocate template.
@@ -58,7 +57,8 @@ def hoistTransientBuffers(self, ctxt: NetworkContext,
5857
ctxt.hoistTransientBuffer(im2col_name, im2col_dim)
5958

6059
# Manually set the type of the im2col buffer to match the input type, since it defaults to void for transient buffers
61-
ctxt.lookup(im2col_name)._type.referencedType = ctxt.lookup(operatorRepresentation['data_in'])._type.referencedType
60+
ctxt.lookup(im2col_name)._type.referencedType = ctxt.lookup(
61+
operatorRepresentation['data_in'])._type.referencedType
6262

6363
operatorRepresentation['ctxtBuffer'] = im2col_name
6464
operatorRepresentation['ctxtBufferSize'] = im2col_dim

0 commit comments

Comments
 (0)