Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
54 commits
Select commit Hold shift + click to select a range
64a2747
Add OperatorDescriptor
lukamac Sep 24, 2025
c5a0c71
Add OperatorDescriptor.py
lukamac Sep 24, 2025
e31ea13
Add operatorDescriptors to NetworkDeployers
lukamac Sep 24, 2025
550b559
Fix extract padding pass
lukamac Sep 24, 2025
ab9fdfe
Fix isoftmax parser
lukamac Sep 24, 2025
a410763
Fix iRMSNorm and iNoNorm parsers
lukamac Sep 24, 2025
f6027fb
Fix ReduceMean type signature
lukamac Sep 24, 2025
475b337
Fix itamax and itapartialmax parsers
lukamac Sep 24, 2025
c6c3109
Fix attr comparison to compare with tuple in neureka
lukamac Sep 24, 2025
cd2270c
Fix keepdims type in fuse mhsa pass
lukamac Sep 24, 2025
2e62e84
Fix old _unpack_const to pass Python literals
lukamac Sep 25, 2025
587d6de
Add RequantizedConv desc
lukamac Sep 25, 2025
0ccd3b8
Fix DW parser
lukamac Sep 28, 2025
c2f2bb2
Fix pulp 1D conv
lukamac Sep 28, 2025
0b60329
Sort operator descriptors alphabetically
lukamac Sep 28, 2025
a19f98a
Add DequantDescriptor
lukamac Sep 28, 2025
4af6552
Add Div, IntegerDiv, RQIntegerDiv
lukamac Sep 28, 2025
2e2e3df
Add DebugPrint, LayerNormalization, iLayerNorm
lukamac Sep 28, 2025
9ac9a62
Add RequantizedOperatorDescriptor
lukamac Sep 28, 2025
e01fdb0
Add flatten and gather
lukamac Sep 28, 2025
1db3ae7
Add Squeeze and Unsqueeze
lukamac Sep 28, 2025
fd30dc7
Add Mul
lukamac Sep 28, 2025
a3309ed
Add MatMul, RQMatMul, MatMulInteger
lukamac Sep 28, 2025
c758fcc
Add Gemm and RQGemm
lukamac Sep 28, 2025
7e951d8
Add RequantizedGemm
lukamac Sep 28, 2025
1ab763e
Fix transA and transB being treated like ints
lukamac Sep 29, 2025
1ec6cde
Add LinearAttention
lukamac Sep 28, 2025
565cd95
Add CLCA
lukamac Sep 28, 2025
26cf648
Add IntegerMean
lukamac Sep 28, 2025
8b00f48
Add MHSA
lukamac Sep 28, 2025
6ecf95d
Add Relu, Reshape, RequantShift
lukamac Sep 28, 2025
9a577a3
Add RequantizedAdd
lukamac Sep 28, 2025
8ae808a
Add RequantizediHardswish
lukamac Sep 28, 2025
5eece92
Add iGELU
lukamac Sep 28, 2025
7598303
Add SoftmaxCrossEntropyLoss(Grad)
lukamac Sep 28, 2025
72c8d21
Add Memcopy for dma tests
lukamac Sep 28, 2025
bff8668
Remove some trailing white space in CHANGELOG.md
lukamac Oct 27, 2025
5ac4e31
Add try canonicalization exceptions
lukamac Oct 27, 2025
2f871d4
Make IntegerDataTypes a tuple
lukamac Oct 27, 2025
31577c3
Fix reshape bindings (which are used for squeeze/unsqeeze too) to typ…
lukamac Oct 27, 2025
90102f5
Canonicalize (un)squeeze operations as pre-opset-13, i.e., put axes i…
lukamac Oct 27, 2025
7bd7353
Add BatchNormalization descriptor
lukamac Oct 27, 2025
16bc463
Add ConvTranspose descriptor
lukamac Oct 27, 2025
d865898
Relax opset check on squeeze operations to a warning
lukamac Oct 27, 2025
cd62a69
Replace prints with logging
lukamac Oct 27, 2025
91bdeb7
Add missing itertools import
lukamac Oct 27, 2025
238d3af
Initialize optional value with None
lukamac Oct 27, 2025
a4198b4
Fix typo
lukamac Oct 27, 2025
e8f1721
Explicit exception coverage
lukamac Oct 27, 2025
f180f85
Rename attrToTensor to attrToInputTensor and add inputTensorToAttr
lukamac Oct 27, 2025
bc75e85
Use inputTensorToAttr in squeeze canonicalization
lukamac Oct 27, 2025
6976c52
Remove duplicate attribute
lukamac Oct 27, 2025
97da07c
Refactor MatMulTileConstraint
lukamac Oct 27, 2025
0c64a3e
Remove duplicate attributes and check that the value is positive
lukamac Oct 27, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Add DequantDescriptor
  • Loading branch information
lukamac committed Oct 27, 2025
commit a19f98a080dd8a3d0daf56fe5e32a0304c038630
12 changes: 12 additions & 0 deletions Deeploy/OperatorDescriptor.py
Original file line number Diff line number Diff line change
Expand Up @@ -376,10 +376,22 @@ def canonicalize(self, node: gs.Node, opset: int) -> bool:
],
)

dequantDesc = OperatorDescriptor(
inputDescriptor = IoDesc("data_in"),
outputDescriptor = IoDesc("data_out"),
attrDescriptors = [
AttrDesc("scale", FloatUnpack),
AttrDesc("zero_point", FloatUnpack),
AttrDesc("bit_width", IntUnpack),
AttrDesc("signed", BoolUnpack),
],
)

defaultOperatorDescriptors: Dict[str, OperatorDescriptor] = {
"Add": addDesc,
"Concat": concatDesc,
"Conv": convDesc,
"Dequant": dequantDesc,
"Gelu": geluDesc,
"ITAMax": itaMaxDesc,
"ITAPartialMax": itaPartialMaxDesc,
Expand Down
10 changes: 4 additions & 6 deletions Deeploy/Targets/Generic/Parsers.py
Original file line number Diff line number Diff line change
Expand Up @@ -2488,12 +2488,10 @@ def parseNode(self, node: gs.Node) -> bool:
])

if ret:
self.operatorRepresentation['scale'] = float(node.attrs['scale'])
self.operatorRepresentation['zero_point'] = float(node.attrs['zero_point'])
self.operatorRepresentation['bit_width'] = int(node.attrs['bit_width'])

self.operatorRepresentation['signed'] = bool(node.attrs['signed'])

self.operatorRepresentation['scale'] = node.attrs['scale']
self.operatorRepresentation['zero_point'] = node.attrs['zero_point']
self.operatorRepresentation['bit_width'] = node.attrs['bit_width']
self.operatorRepresentation['signed'] = node.attrs['signed']
return ret
Comment thread
lukamac marked this conversation as resolved.

def parseNodeCtxt(self,
Expand Down