|
22 | 22 | GAP9RQSTallGEMMTilingReadyBindings, GAP9RQSTilingReadyBindings, GAP9SGDTilingReadyBindings, \ |
23 | 23 | GAP9SoftmaxCrossEntropyGradTilingReadyBindings, GAP9SoftmaxCrossEntropyTilingReadyBindings, \ |
24 | 24 | GAP9SoftmaxGradTilingReadyBindings, GAP9SoftmaxTilingReadyBindings, GAP9TransposeTilingReadyBindings, \ |
25 | | - GAP9UniformRQSTilingReadyBindings, GAP9InPlaceAccumulatorV2TilingReadyBindings, GAP9PerturbNormalTilingReadyBindings, GAP9PerturbUniformTilingReadyBindings, \ |
| 25 | + GAP9UniformRQSTilingReadyBindings, GAP9InPlaceAccumulatorV2TilingReadyBindings, GAP9PerturbNormalTilingReadyBindings, \ |
| 26 | + GAP9PerturbUniformTilingReadyBindings, GAP9QuantTilingReadyBindings, GAP9DequantTilingReadyBindings, \ |
26 | 27 | GAP9PerturbEggrollTilingReadyBindings, GAP9PerturbRademacherTilingReadyBindings, GAP9PerturbTriangleTilingReadyBindings |
27 | 28 | from Deeploy.Targets.Generic.Bindings import BasicGEMMBindings, BasicPad1DBindings, BasicPad2DBindings, \ |
28 | 29 | BasicRQIntegerDivBinding |
|
41 | 42 | InPlaceAccumulatorV2Parser, GELUGradParser, ReluGradParser, DebugParser, \ |
42 | 43 | PerturbEggrollParser, PerturbNormalParser, PerturbRademacherParser, PerturbTriangleParser, PerturbUniformParser |
43 | 44 | from Deeploy.Targets.Generic.Templates import AllocateTemplate as BasicAllocateTemplate |
44 | | -from Deeploy.Targets.GAP9.Bindings import GAP9SoftmaxCrossEntropyLossDualOutputBindings, GAP9LayernormGradBinding, GAP9FloatGELUGradBinding, GAP9ReluGradBinding, GAP9BasicDebugPrintBindings |
| 45 | +from Deeploy.Targets.GAP9.Bindings import GAP9SoftmaxCrossEntropyLossDualOutputBindings, GAP9LayernormGradBinding, \ |
| 46 | + GAP9FloatGELUGradBinding, GAP9ReluGradBinding, GAP9BasicDebugPrintBindings |
45 | 47 | from Deeploy.Targets.PULPOpen.Bindings import BasicDequantBindings, BasicQuantBindings, PULPDMASliceBindings, \ |
46 | 48 | PULPDWConv1DBinding, PULPReduceMeanBindings, PULPRQSConv1DBindings, PULPSliceBindings |
47 | 49 | from Deeploy.Targets.PULPOpen.Layers import PULPRQSConvLayer, PULPRQSGEMMLayer |
48 | 50 | from Deeploy.Targets.PULPOpen.Parsers import PULPConv1DParser, PULPConv2DParser, PULPDWConv1DParser, \ |
49 | | - PULPDWConv2DParser, PULPFPConv2DParser, PULPFPDWConv2DParser, PULPGEMMParser, PULPMatrixVecParser, \ |
| 51 | + PULPDWConv2DParser, PULPFPConv2DParser, PULPFPDWConv2DParser, PULPGEMMParser, PULPIntConv2DParser, PULPMatrixVecParser, \ |
50 | 52 | PULPTallGEMMParser |
51 | 53 |
|
52 | 54 | # Create GAP9-specific NodeMappers |
|
96 | 98 | GAP9_SoftmaxCrossEntropyLossGradMapper = NodeMapper(SoftmaxCrossEntropyLossGradParser(), |
97 | 99 | GAP9SoftmaxCrossEntropyGradTilingReadyBindings) |
98 | 100 | GAP9_SGDMapper = NodeMapper(SGDParser(), GAP9SGDTilingReadyBindings) |
99 | | -GAP9_QuantMapper = NodeMapper(QuantParser(), BasicQuantBindings) |
100 | | -GAP9_DequantMapper = NodeMapper(DequantParser(), BasicDequantBindings) |
| 101 | +GAP9_QuantMapper = NodeMapper(QuantParser(), GAP9QuantTilingReadyBindings) |
| 102 | +GAP9_DequantMapper = NodeMapper(DequantParser(), GAP9DequantTilingReadyBindings) |
101 | 103 | GAP9_GEMMDequantMapper = NodeMapper(PULPGEMMParser(), BasicGEMMBindings) |
102 | 104 | GAP9InPlaceAccumulatorV2Mapper = NodeMapper(InPlaceAccumulatorV2Parser(), GAP9InPlaceAccumulatorV2TilingReadyBindings) |
103 | 105 | GAP9SoftmaxCrossEntropyLossDualOutputMapper = NodeMapper(SoftmaxCrossEntropyLossParser(), |
|
0 commit comments