MCPcopy Create free account
hub / github.com/pytorch/executorch / _get_random_inputs

Method _get_random_inputs

exir/program/test/test_program.py:68–75  ·  view source on GitHub ↗
(cls)

Source from the content-addressed store, hash-verified

66
67 @classmethod
68 def _get_random_inputs(cls):
69 d_k = 64
70 batch = 16
71 seq_len = 10
72 query = torch.rand(batch, seq_len, d_k)
73 key = torch.rand(batch, seq_len, d_k)
74 value = torch.rand(batch, seq_len, d_k)
75 return (query, key, value)
76
77
78class TestLinearSDPACombined(torch.nn.Module):

Calls

no outgoing calls

Tested by

no test coverage detected