Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ml-explore/mlx-examples
/ encode
Method
encode
t5/t5.py:319–320 ·
view source on GitHub ↗
(self, inputs: mx.array)
Source
from the content-addressed store, hash-verified
317
self.model_dim = config.d_model
318
319
def
encode(self, inputs: mx.array):
320
return
self.encoder(self.wte(inputs))
321
322
def
decode(
323
self,
Callers
3
__call__
Method · 0.95
generate
Function · 0.45
t5.py
File · 0.45
Calls
no outgoing calls
Tested by
no test coverage detected