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

Method decode

test/test_jit_fuser.py:90–92  ·  view source on GitHub ↗
(sin_t, cos_t)

Source from the content-addressed store, hash-verified

88 @unittest.skipIf(not RUN_CUDA, "requires CUDA")
89 def test_zero_element_tensors(self):
90 def decode(sin_t, cos_t):
91 theta = torch.atan2(sin_t.float(), cos_t.float())
92 return theta
93
94 sin = torch.zeros(0, device="cuda")
95 cos = torch.zeros(0, device="cuda")

Callers 15

_embed_libiompMethod · 0.45
_check_python_outputMethod · 0.45
_helperMethod · 0.45
_runMethod · 0.45
test_load_standaloneMethod · 0.45
test_lazy_initMethod · 0.45
_test_serializationMethod · 0.45

Calls 2

atan2Method · 0.45
floatMethod · 0.45

Tested by

no test coverage detected