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

Function _is_batch_norm

backends/nxp/quantizer/patterns.py:422–427  ·  view source on GitHub ↗
(node_: Node)

Source from the content-addressed store, hash-verified

420
421
422def _is_batch_norm(node_: Node) -> bool:
423 return node_.op == "call_function" and node_.target in [
424 torch.ops.aten.batch_norm.default,
425 torch.ops.aten.native_batch_norm.default,
426 torch.ops.aten._native_batch_norm_legit_no_training.default,
427 ]
428
429
430class ConvPattern(QuantizationPattern):

Callers 6

callMethod · 0.85
callMethod · 0.85
get_anchorsMethod · 0.85
get_anchorsMethod · 0.85
get_anchorsMethod · 0.85
get_anchorsMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected