ΒΆOptional<std::vector<LoggedFeatureSpec>>
loadOutputSpecs(
    llvm::LLVMContext& Ctx,
    llvm::StringRef ExpectedDecisionName,
    llvm::StringRef ModelPath,
    llvm::StringRef SpecFileOverride =
        llvm::StringRef())

Description

Load the output specs. If SpecFileOverride is not empty, that path is used. Otherwise, the file is assumed to be called 'output_spec.json' and be found under ModelPath (the model directory). The first output tensor name must match ExpectedDecisionName. In case of error, the return is None and the error is logged.

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

Parameters

llvm::LLVMContext& Ctx
llvm::StringRef ExpectedDecisionName
llvm::StringRef ModelPath
llvm::StringRef SpecFileOverride = llvm::StringRef()