from_arrays_and_json

from_arrays_and_json#

seli.from_arrays_and_json(arrays: list[Array], obj_json: str) None | bool | int | float | str | type | Array | ShapeDtypeStruct | list | dict | Module | Any[source]#

Deserialize a nested structure of modules and arrays and other containers from a JSON string and a list of arrays. Inverse of to_arrays_and_json.

Parameters:
  • arrays (list[jax.Array]) – The list of arrays to deserialize.

  • obj_json (str) – The JSON string to deserialize.

Returns:

The deserialized nested structure.

Return type:

NodeType