MCPcopy Create free account
hub / github.com/NVIDIA/DALI / __call__

Method __call__

dali/test/python/test_utils.py:1019–1026  ·  view source on GitHub ↗

Use as decorator: @sign_off("operator_name")

(self, *op_names)

Source from the content-addressed store, hash-verified

1017
1018 class SignOff:
1019 def __call__(self, *op_names):
1020 """Use as decorator: @sign_off("operator_name")"""
1021 self.register_test(*op_names)
1022
1023 def dummy(fn):
1024 return fn
1025
1026 return dummy
1027
1028 def register_test(self, *op_names):
1029 """Use directly in test: sign_off.register_test("operator_name")"""

Callers

nothing calls this directly

Calls 1

register_testMethod · 0.95

Tested by

no test coverage detected