API
Sending and receiving arrays
Python
Godot
Description
These classes manage the sending and receiving Arrays or tensors in the shared memory. The Godot
part does not allocate or deallocate memory. Only python part can create persistent tensors in the
shared memory as well as allocate the memory chunk itself.
Godot classes get their shared memory handle from the command line arguments and assume that the chunk of the shared memory with such handle is already allocated by the caller process.
On the other hand, when python class is constructed it automatically allocates the shared memory chunk with the handle.
Godot classes get their shared memory handle from the command line arguments and assume that the chunk of the shared memory with such handle is already allocated by the caller process.
On the other hand, when python class is constructed it automatically allocates the shared memory chunk with the handle.
Semaphores
Python
Godot
Description
These classes manage the semaphores in the shared memory. Godot classes assume that the semaphores are already
created. Meanwhile python classes create them on initialization.
Deployment
Godot
Description
Resource that loads model data from traced torch model. Recognizes .jit files.
Stores model data in PoolByteArray.
Class for executing torch models
Loads data from cTorchModelData into torch model, that is ready for execution.
Passes the argument input into torch model, returns the result. Input should be FloatArray.
These classes manage torch jit model loading and executing in Godot engine.