Skip to content

Commit 69b3ec6

Browse files
committed
Integrate Automated QDQ placement tool - part 1
Signed-off-by: Will Guo <willg@nvidia.com>
1 parent 81c509c commit 69b3ec6

File tree

6 files changed

+3176
-0
lines changed

6 files changed

+3176
-0
lines changed

modelopt/onnx/op_types.py

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -303,3 +303,67 @@ def is_data_dependent_shape_op(op_type: str):
303303
"NonZero",
304304
"RoiAlign",
305305
]
306+
307+
308+
def get_bool_ops():
309+
"""Returns set of bool operations."""
310+
return {
311+
"Not",
312+
"And",
313+
"Or",
314+
"Xor",
315+
}
316+
317+
318+
def get_bitwise_ops():
319+
"""Returns set of bitwise operations."""
320+
return {
321+
"BitwiseAnd",
322+
"BitwiseOr",
323+
"BitwiseXor",
324+
"BitShift",
325+
}
326+
327+
328+
def get_value_check_ops():
329+
"""Returns set of value checking operations."""
330+
return {
331+
"IsNaN",
332+
"IsInf",
333+
"Sign",
334+
"Abs",
335+
}
336+
337+
338+
def get_comparison_ops():
339+
"""Returns set of comparison operations."""
340+
return {
341+
"Equal",
342+
"Greater",
343+
"GreaterOrEqual",
344+
"Less",
345+
"LessOrEqual",
346+
}
347+
348+
349+
def get_conditional_ops():
350+
"""Returns set of conditional operations."""
351+
return {
352+
"Where",
353+
}
354+
355+
356+
def get_aggregation_ops():
357+
"""Returns set of aggregation operations."""
358+
return {
359+
"All",
360+
"Any",
361+
}
362+
363+
364+
def get_set_ops():
365+
"""Returns set of set/search operations."""
366+
return {
367+
"Unique",
368+
"NonZero",
369+
}

0 commit comments

Comments
 (0)