MCPcopy Create free account
hub / github.com/pytorch/examples / func

Function func

language_translation/src/data.py:63–66  ·  view source on GitHub ↗
(txt_input)

Source from the content-addressed store, hash-verified

61 # Helper function to sequentially apply transformations
62 def _seq_transform(*transforms):
63 def func(txt_input):
64 for transform in transforms:
65 txt_input = transform(txt_input)
66 return txt_input
67 return func
68
69 # Function to add BOS/EOS and create tensor for input sequence indices

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected