Skip to main content

from_json

Function from_json 

Source
pub fn from_json(text: &str) -> Result<Function>
Expand description

Reads the JSON document written by ruxla.export_jaxpr into a function, and checks that its types agree with ruxla’s shape inference.

§Errors

Returns an error if the text is not such a document, if it uses a primitive or parameter that ruxla does not have, or if the function’s types do not check.