This repository has been archived by the owner on Dec 16, 2022. It is now read-only.
Solution to make allennlp jit compilable #5567
EmanueleGusso
started this conversation in
Ideas
Replies: 1 comment
-
We are discussing this at #5565. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi everybody,
I tried to jit compile the model wrapped in CorefPredictor (https://github.com/allenai/allennlp-models/blob/main/allennlp_models/coref/models/coref.py) but I get some warnings. In fact, as it is, the model cannot be jit compiled because in the forward method there are if-then-else statement and sometimes the torch tensors are transformed into numpy arrays to perform some operations and then they are reconverted into torch tensors.
So I have two questions:
This would be very important for me. I hope you can help :)
I thank you in advance for your availability.
Beta Was this translation helpful? Give feedback.
All reactions