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

separate between token-lengths and sub-token lengths #2990

Merged
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix doc for jit export
Benedikt Fuchs committed Nov 14, 2022
commit 27bf89ff8a8a3f72eab2ec2f71a699894d5e0c7f
2 changes: 1 addition & 1 deletion flair/embeddings/transformer.py
Original file line number Diff line number Diff line change
@@ -673,7 +673,7 @@ def export_from_embedding(
providers = ["CPUExecutionProvider"]

desired_keys_order = [
param for param in inspect.signature(embedding.__call__).parameters.keys() if param in example_tensors
param for param in inspect.signature(embedding.forward).parameters.keys() if param in example_tensors
]

torch.onnx.export(