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

Method test_defaultbackend_math

test/test_dispatch.py:931–937  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

929 dispatcher.register(["CPU", "CPU"])
930
931 def test_defaultbackend_math(self):
932 dispatcher = PythonDispatcher()
933
934 with self.assertRaisesRegex(
935 RuntimeError,
936 r"Registration to both CompositeImplicitAutograd and CompositeExplicitAutograd is not allowed"):
937 dispatcher.register(["CompositeExplicitAutograd", "CompositeImplicitAutograd"])
938
939 def test_quantized_structured_not_implemented(self):
940 x = torch.zeros([1, 1, 1])

Callers

nothing calls this directly

Calls 3

registerMethod · 0.95
PythonDispatcherClass · 0.90
assertRaisesRegexMethod · 0.80

Tested by

no test coverage detected