Closed trkks closed 1 year ago
Some notes about the merge:
takeImage
for supporting dynamically sized images, I ended up changing how the WasmModule
is initialized to get hold of module alloc
function (e.g. Wasm3Module
instantiates first, links second and vice versa on WasmtimeModule
)ml_model
attribute on modules, I opted for just saving a list of "static" (meaning at-deployment-time) files attached to modulewasm_modules
variable, the deployments are responsible for instantiating modules when needed based on ModuleConfig
s attached to them.
runtime
in deployment.py
might create confusion about which Wasm-module gets to use that memory.
Instead of just the ICWE23 hardcoded demo, this should allow more freedom in chaining calls together. Features include:
/request-history
route where the chain of execution can be followed and results of each device read fromtakeImage
callback to host now takes out-parameters, where pointers to the dynamically-sized image and length will be written torequestBody
, a file in the request is read into memory and matching pointer+length parameters are assumed.pb
)f
should then look like this:f([Depl. Ptr+Len], [Arg. Primitive], [Arg. Ptr+Len], [Out Ptr+Len]) -> Out Primitive