Transformers schemas
Predefined inputs and outputs of transformers predictors
Last updated
Predefined inputs and outputs of transformers predictors
Last updated
Subclass of.
inputs (Any)
Subclass of.
output (Any)
logits (Any)
pixel_values (Any): Image representation.
text_inputs (str): Text to process.
audio (Any): Audio data.
sampling_rate (int): Samling rate.
flattened_patches (Any)
attention_mask (Any)
image (Image.Image): Input image.
question (str)
input_ids (Any)
token_type_ids (Any)
attention_mask (Any)
pixel_values (Any)
pixel_mask (Any)
encodings (Any)
last_hidden_state (Any)
Arguments:
encodings (Any)
num_beams (int)
num_return_sequences (int)
prefix_allowed_tokens_fn (Callable[[torch.Tensor, int], List[int]])
sequences (Any)
sequences_scores (Optional[Any], optional): Defaults to None.
question (str)
context (str)
answer (Optional[str], optional): Defaults to None.
score (float): Defaults to 0.
pred_boxes (Any)
logits (Any)
Subclass of.
Subclass of.
Subclass of.
Subclass of.
Subclass of.
Subclass of.
Subclass of.
Subclass of.
Subclass of.
Subclass of.
Subclass of.
Subclass of.
Subclass of.
Subclass of.