https://flyte.org logo
Title
c

cryptic

10/05/2022, 1:17 PM
Hello guys, I was going through the related PR that was attached with the TypeTransformer plugin for
tf.tensor
issue. I'd a doubt, what does it mean when it was said that "The plugin could specify an unpinned
torch
as a dependency".
I have the same doubt that was raised by @Samhita Alla. How do we prevent re-installing
torch
? Can someone explain me?
s

Samhita Alla

10/06/2022, 5:53 AM
Hi, @cryptic! To use the Flyte PyTorch type, PyTorch needs to be installed beforehand. If not, the plugin wouldn’t work. That discussion was about having a standalone plugins vs. having it in the core library. Since it’s now a part of the core library, you needn’t worry about it.
c

cryptic

10/06/2022, 6:29 AM
Thanks for clarifying. I guess
tensorflow
too is a part of the core library now? I've not checked it manually
s

Samhita Alla

10/06/2022, 6:38 AM
No, it isn’t. I’ve created some issues to add support for TensorFlow: https://github.com/flyteorg/flyte/issues/2917 (see the flytekit section).
c

cryptic

10/06/2022, 7:08 AM
Yeah, my bad. So as a general rule, if someone wants to write a plugin, would it be good to include the required libraries first in the core library?
s

Samhita Alla

10/06/2022, 7:28 AM
This plugin is in the core library, but not all of them are. Also, we haven’t included the dependencies in the core library. If you install the dependency, this plugin gets activated. In the PyTorch type case, it’s the
torch
library.