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

Method forward

backends/mlx/test/test_ops.py:1104–1105  ·  view source on GitHub ↗
(self, x: torch.Tensor)

Source from the content-addressed store, hash-verified

1102 self.embedding = nn.Embedding(num_embeddings, embedding_dim)
1103
1104 def forward(self, x: torch.Tensor) -> torch.Tensor:
1105 return self.embedding(x)
1106
1107
1108@register_test

Callers

nothing calls this directly

Calls 1

embeddingMethod · 0.80

Tested by

no test coverage detected