(self)
| 212 | |
| 213 | class TestGenSchemaRegistration(unittest.TestCase): |
| 214 | def setUp(self) -> None: |
| 215 | self.selector = SelectiveBuilder.get_nop_selector() |
| 216 | self.custom_native_function, _ = torchgen.model.NativeFunction.from_yaml( |
| 217 | {"func": "custom::func() -> bool"}, |
| 218 | loc=torchgen.model.Location(__file__, 1), |
| 219 | valid_tags=set(), |
| 220 | ) |
| 221 | ( |
| 222 | self.fragment_custom_native_function, |
| 223 | _, |
| 224 | ) = torchgen.model.NativeFunction.from_yaml( |
| 225 | {"func": "quantized_decomposed::func() -> bool"}, |
| 226 | loc=torchgen.model.Location(__file__, 1), |
| 227 | valid_tags=set(), |
| 228 | ) |
| 229 | |
| 230 | def test_default_namespace_schema_registration_code_valid(self) -> None: |
| 231 | native_functions = [DEFAULT_NATIVE_FUNCTION] |
nothing calls this directly
no test coverage detected