ΒΆOptional<llvm::TensorSpec> getTensorSpecFromJSON(
    llvm::LLVMContext& Ctx,
    const json::Value& Value)

Description

Construct a TensorSpec from a JSON dictionary of the form: { "name": <string >, "port": <int >, "type": <string . Use LLVM's types, e.g. float, double, int64_t>, "shape": <array of ints> } For the "type" field, see the C++ primitive types used in TFUTILS_SUPPORTED_TYPES.

Declared at: llvm/include/llvm/Analysis/TensorSpec.h:105

Parameters

llvm::LLVMContext& Ctx
const json::Value& Value