Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Documentation Request] #19819

Open
Jackycheng0808 opened this issue Mar 7, 2024 · 1 comment
Open

[Documentation Request] #19819

Jackycheng0808 opened this issue Mar 7, 2024 · 1 comment
Labels
documentation improvements or additions to documentation; typically submitted using template stale issues that have not been addressed in a while; categorized by a bot

Comments

@Jackycheng0808
Copy link

@onnx_op(op_type="GPT2Tokenizer",
inputs=[PyCustomOpDef.dt_string],
outputs=[PyCustomOpDef.dt_int64, PyCustomOpDef.dt_int64],
attrs={"padding_length": PyCustomOpDef.dt_int64})
def bpe_tokenizer(s, **kwargs):
padding_length = kwargs["padding_length"]
input_ids, attention_mask = cls.tokenizer.tokenizer_sentence([s[0]], padding_length)
return input_ids, attention_mask

op_type should be same as function name, change to
@onnx_op(op_type="bpe_tokenizer", ...


Document Details

@sophies927 sophies927 added the documentation improvements or additions to documentation; typically submitted using template label Mar 7, 2024
Copy link
Contributor

github-actions bot commented Apr 7, 2024

This issue has been automatically marked as stale due to inactivity and will be closed in 30 days if no further activity occurs. If further support is needed, please provide an update and/or more details.

@github-actions github-actions bot added the stale issues that have not been addressed in a while; categorized by a bot label Apr 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation improvements or additions to documentation; typically submitted using template stale issues that have not been addressed in a while; categorized by a bot
Projects
None yet
Development

No branches or pull requests

2 participants