|
26 | 26 | # OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
27 | 27 | # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
28 | 28 |
|
| 29 | +# Importing registers CustomOps in qonnx.custom_op.general domain |
29 | 30 | from qonnx.custom_op.general.bipolar_quant import BipolarQuant |
30 | 31 | from qonnx.custom_op.general.debugmarker import DebugMarker |
31 | 32 | from qonnx.custom_op.general.floatquant import FloatQuant |
|
34 | 35 | from qonnx.custom_op.general.intquant import IntQuant |
35 | 36 | from qonnx.custom_op.general.maxpoolnhwc import MaxPoolNHWC |
36 | 37 | from qonnx.custom_op.general.multithreshold import MultiThreshold |
| 38 | +from qonnx.custom_op.general.quant import Quant |
37 | 39 | from qonnx.custom_op.general.quantavgpool2d import QuantAvgPool2d |
38 | 40 | from qonnx.custom_op.general.trunc import Trunc_v1, Trunc_v2 |
39 | 41 | from qonnx.custom_op.general.xnorpopcount import XnorPopcountMatMul |
40 | 42 |
|
41 | | -custom_op = dict() |
42 | | - |
43 | | -custom_op["DebugMarker"] = DebugMarker |
44 | | -custom_op["QuantAvgPool2d"] = QuantAvgPool2d |
45 | | -custom_op["MaxPoolNHWC"] = MaxPoolNHWC |
46 | | -custom_op["GenericPartition"] = GenericPartition |
47 | | -custom_op["MultiThreshold"] = MultiThreshold |
48 | | -custom_op["XnorPopcountMatMul"] = XnorPopcountMatMul |
49 | | -custom_op["Im2Col"] = Im2Col |
50 | | -custom_op["IntQuant"] = IntQuant |
51 | | -custom_op["Quant"] = IntQuant |
52 | | -custom_op["Trunc"] = Trunc_v1 |
53 | | -custom_op["BipolarQuant"] = BipolarQuant |
54 | | -custom_op["FloatQuant"] = FloatQuant |
55 | | - |
56 | | -custom_op["DebugMarker_v1"] = DebugMarker |
57 | | -custom_op["QuantAvgPool2d_v1"] = QuantAvgPool2d |
58 | | -custom_op["MaxPoolNHWC_v1"] = MaxPoolNHWC |
59 | | -custom_op["GenericPartition_v1"] = GenericPartition |
60 | | -custom_op["MultiThreshold_v1"] = MultiThreshold |
61 | | -custom_op["XnorPopcountMatMul_v1"] = XnorPopcountMatMul |
62 | | -custom_op["Im2Col_v1"] = Im2Col |
63 | | -custom_op["IntQuant_v1"] = IntQuant |
64 | | -custom_op["Quant_v1"] = IntQuant |
65 | | -custom_op["Trunc_v1"] = Trunc_v1 |
66 | | -custom_op["BipolarQuant_v1"] = BipolarQuant |
67 | | -custom_op["FloatQuant_v1"] = FloatQuant |
68 | | - |
69 | | -custom_op["Trunc_v2"] = Trunc_v2 |
| 43 | +__all__ = [ |
| 44 | + "BipolarQuant", |
| 45 | + "DebugMarker", |
| 46 | + "FloatQuant", |
| 47 | + "GenericPartition", |
| 48 | + "Im2Col", |
| 49 | + "IntQuant", |
| 50 | + "MaxPoolNHWC", |
| 51 | + "MultiThreshold", |
| 52 | + "Quant", |
| 53 | + "QuantAvgPool2d", |
| 54 | + "Trunc_v1", |
| 55 | + "Trunc_v2", |
| 56 | + "XnorPopcountMatMul", |
| 57 | +] |
0 commit comments