MCPcopy Create free account
hub / github.com/XiangLi1999/PrefixTuning / encode_line

Function encode_line

seq2seq/utils.py:54–64  ·  view source on GitHub ↗

Only used by LegacyDataset

(tokenizer, line, max_length, pad_to_max_length=True, return_tensors="pt")

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

__getitem__Method · 0.85

Calls 1

tokenizerFunction · 0.85

Tested by

no test coverage detected