concepts.dm.crow.crow_expression_utils.make_plan_serializable#
- make_plan_serializable(plan, json_compatible=False)[source]#
Make a serializable version of the plan.
- Parameters:
plan (Sequence[CrowControllerApplier]) – the plan to be serialized.
json_compatible (bool) – whether to make the plan JSON-compatible. If True, the plan will be converted to a JSON-compatible format, which will flatten all numpy arrays and torch tensors to lists.
- Returns:
the serialized plan.
- Return type: