Skip to content

Commit

Permalink
apply Victor's comment
Browse files Browse the repository at this point in the history
  • Loading branch information
tahaelbayad committed Jan 7, 2025
1 parent 6fe7c42 commit 1034298
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 78 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
from Deeploy.DeeployTypes import NetworkContext, NodeTemplate, OperatorRepresentation


class PULPRQAddTemplate(NodeTemplate):
class _RQAddTemplate(NodeTemplate):

def __init__(self, templateStr):
super().__init__(templateStr)
Expand All @@ -46,7 +46,7 @@ def alignToContext(self, ctxt: NetworkContext,
return ctxt, operatorRepresentation, []


RQAddTemplate = PULPRQAddTemplate("""
referenceTemplate = _RQAddTemplate("""
<%
signatureString = ''
Expand Down
6 changes: 3 additions & 3 deletions Deeploy/Targets/PULPOpen/Bindings.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
from Deeploy.DeeployTypes import CodeTransformation, NodeBinding, NodeTemplate
from Deeploy.FutureExtension.Bindings.AutoFutureBinding import AutoFutureBinding
from Deeploy.FutureExtension.CodeTransformationPasses.FutureCodeTransformation import FutureGeneration
from Deeploy.Targets.Generic.Templates import ConcatTemplate, RQSiGELUTemplate, iHardswishTemplate
from Deeploy.Targets.Generic.Templates import ConcatTemplate, RQSiGELUTemplate, iHardswishTemplate, RQAddTemplate
from Deeploy.Targets.Generic.TypeCheckers import ConcatChecker, GELUChecker, HardswishChecker, MatMulChecker, \
MulChecker, ReduceMeanChecker, RQHardswishChecker, SliceChecker, SoftmaxChecker, TransposeChecker, \
iLayerNormChecker
Expand All @@ -45,7 +45,7 @@
from Deeploy.Targets.PULPOpen.CodeTransformationPasses.PULPL3Tiling import PULPL3Tiling
from Deeploy.Targets.PULPOpen.DataTypes import PULPDMAFuture
from Deeploy.Targets.PULPOpen.Templates import ConvTemplate, GEMMTemplate, MatrixVectorTemplate, MaxPool2DTemplate, \
MulTemplate, ReduceMeanTemplate, RequantShiftTemplate, RQAddTemplate, RQSiHardswishTemplate, SliceTemplate, \
MulTemplate, ReduceMeanTemplate, RequantShiftTemplate, RQSiHardswishTemplate, SliceTemplate, \
TallGEMMTemplate, TransposeTemplate, UniformRequantShiftTemplate, iRMSNormTemplate, iSoftmaxTemplate
from Deeploy.Targets.PULPOpen.TypeCheckers import PULPConvChecker, PULPLinearChecker, PULPMaxPoolChecker, \
PULPRequantShiftChecker, PULPRQAddChecker
Expand Down Expand Up @@ -157,7 +157,7 @@

PULPRQAddBindings = [
NodeBinding(PULPRQAddChecker([PointerClass(_type), PointerClass(_type2)], [PointerClass(_type3)]),
RQAddTemplate.RQAddTemplate, ForkTransformer)
RQAddTemplate.referenceTemplate, ForkTransformer)
for _type in [int8_t, uint8_t]
for _type2 in [int8_t, uint8_t]
for _type3 in [int8_t, uint8_t]
Expand Down
4 changes: 2 additions & 2 deletions Deeploy/Targets/Snitch/Bindings.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,11 @@
from Deeploy.CommonExtensions.DataTypes import int8_t, int32_t, uint8_t
from Deeploy.DeeployTypes import CodeTransformation, NodeBinding
from Deeploy.FutureExtension.CodeTransformationPasses.FutureCodeTransformation import FutureGeneration
from Deeploy.Targets.Generic.Templates import iNoNormTemplate
from Deeploy.Targets.Generic.Templates import iNoNormTemplate, RQAddTemplate
from Deeploy.Targets.Generic.TypeCheckers import AddChecker, GEMMChecker, SoftmaxChecker, iNoNormChecker
from Deeploy.Targets.Snitch.CodeTransformationPasses import SnitchClusterTiling, SnitchCoreFilterPass, \
SnitchProfileExecutionBlockPass, SnitchSynchCoresPass
from Deeploy.Targets.Snitch.Templates import AddTemplate, RQAddTemplate, iSoftmaxTemplate
from Deeploy.Targets.Snitch.Templates import AddTemplate, iSoftmaxTemplate
from Deeploy.Targets.Snitch.Templates.GemmTemplate import SnitchGemm_Template
from Deeploy.Targets.Snitch.Templates.RqGemmTemplate import SnitchRqGemm_Template
from Deeploy.Targets.Snitch.TypeCheckers import SnitchRQAddChecker
Expand Down
File renamed without changes.
71 changes: 0 additions & 71 deletions Deeploy/Targets/Snitch/Templates/RQAddTemplate.py

This file was deleted.

0 comments on commit 1034298

Please sign in to comment.