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

Method test_duplicate_registrations

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

Source from the content-addressed store, hash-verified

923 )
924
925 def test_duplicate_registrations(self):
926 dispatcher = PythonDispatcher()
927
928 with self.assertRaisesRegex(RuntimeError, r"Overriden is not allowed"):
929 dispatcher.register(["CPU", "CPU"])
930
931 def test_defaultbackend_math(self):
932 dispatcher = PythonDispatcher()

Callers

nothing calls this directly

Calls 3

registerMethod · 0.95
PythonDispatcherClass · 0.90
assertRaisesRegexMethod · 0.80

Tested by

no test coverage detected