StrToTensorConverter

class fairseq2.data.text.StrToTensorConverter(size=None, dtype=None)[source]

Bases: object

__call__(s)[source]

Call self as a function.

Return type:

Tensor