MCPcopy Create free account
hub / github.com/pytorch/executorch / _nodes_are_annotated

Function _nodes_are_annotated

backends/example/example_operators/utils.py:11–20  ·  view source on GitHub ↗
(node_list)

Source from the content-addressed store, hash-verified

9
10
11def _nodes_are_annotated(node_list):
12 for node in node_list:
13 quantization_annotation = node.meta.get(Q_ANNOTATION_KEY, None)
14 if not quantization_annotation:
15 return False
16 if quantization_annotation._annotated:
17 continue
18 else:
19 return False
20 return True
21
22
23def _annotate_nodes(node_tuples, quant_spec, input_node=False):

Callers 7

_annotate_linearFunction · 0.90
_annotate_conv_reluFunction · 0.90
_annotate_dropoutFunction · 0.90
_annotate_meanFunction · 0.90
_annotate_addFunction · 0.90
_annotate_flattenFunction · 0.90
_annotate_conv2dFunction · 0.90

Calls 1

getMethod · 0.45

Tested by

no test coverage detected