MCPcopy Create free account
hub / github.com/pytorch/pytorch / test_conflicting_ufunc

Method test_conflicting_ufunc

tools/test/test_codegen_model.py:123–135  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

121 )
122
123 def test_conflicting_ufunc(self) -> None:
124 yaml_str = f"""\
125- {self.ti_binop_out}
126 ufunc_inner_loop:
127 Generic: binop (Bool)
128 ScalarOnly: binop_scalar (Bool)
129- {self.ti_binop}
130"""
131 self.assertUfuncErrorInline(
132 yaml_str,
133 """\
134ScalarOnly and Generic must have same ufunc name""",
135 )
136
137 def test_invalid_cudafunctoronself_for_binary_op(self) -> None:
138 yaml_str = f"""\

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected