Skip to content
Zentetsu edited this page Nov 7, 2024 · 3 revisions

It's possible to define the shared memory via a JSON file.

Pre-defined data

{
    "basic_data": [
        10,
        1234.5678,
        true,
        "Hello World"
    ],
}

Defined by structure

  • list: value corresponds to the number of element inside the array (will be improved soon)
  • nparray: (WARNING: it will initialized the shared memory with numpy.zeros, size can be insuffisant)
    • First value defines the data shape
    • Second value defines the type
{
    "structured_data": {
        "_LIST": 10,
        "_NPARRAY": [
            [
                4,
                4,
                2
            ],
            "uint8"
        ]
    }
}
Clone this wiki locally