How can I import a module from memory - not from the module files?

68 Views Asked by At

I am importing Torch in both the main file and a submodule I load - loading from a mounted EFS block on AWS.

Since the EFS block has limited throughput and the main runs only once while the submodule runs many times, can I avoid the disk load by using the Torch loaded into memory from the main module?

0

There are 0 best solutions below