Skip to content

define a custom Transformers pipeline #10

@danglingptr0x0

Description

@danglingptr0x0
		# TODO: define a custom Transformers pipeline

inputs = self.tokenizer(text, truncation=True, padding="max_length", max_length=512, return_tensors="pt").to(self.device)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions