Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Creating an OnnxTensor requires a uint8 type. #2

@Myhuiku

Description

@Myhuiku

Hello, my NER model has two inputs and one output:

input_ids

Name: input_ids
Tensor: int64[batch_size, max_seq_len]
attention_mask

Name: attention_mask
Tensor: uint8[batch_size, max_seq_len]
logits

Name: logits
Tensor: int64[batch_size, max_seq_len]
The max_seq_len is 512.
How can I create a UINT8 tensor for the attention mask and who to define the shape?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions