Lines Matching refs:Ctx
30 loadOutputSpecs(LLVMContext &Ctx, StringRef ExpectedDecisionName, in loadOutputSpecs() argument
41 Ctx.emitError("Error opening output specs file: " + FileName + " : " + in loadOutputSpecs()
47 Ctx.emitError("Could not parse specs file: " + FileName); in loadOutputSpecs()
52 Ctx.emitError("Expected an array of {tensor_spec:<TensorSpec>, " in loadOutputSpecs()
60 if (auto TensorSpec = getTensorSpecFromJSON(Ctx, *SpecPart)) in loadOutputSpecs()
65 Ctx.emitError( in loadOutputSpecs()
75 Ctx.emitError( in loadOutputSpecs()
84 Ctx.emitError("The first output spec must describe the decision tensor, " in loadOutputSpecs()
94 LLVMContext &Ctx, const std::string &ModelPath, in ModelUnderTrainingRunner() argument
98 : MLModelRunner(Ctx, MLModelRunner::Kind::Development, InputSpecs.size()), in ModelUnderTrainingRunner()
103 Ctx.emitError("Failed to create saved model evaluator"); in ModelUnderTrainingRunner()
116 Ctx.emitError("Error evaluating model."); in evaluateUntyped()
124 LLVMContext &Ctx, const std::string &ModelPath, StringRef DecisionName, in createAndEnsureValid() argument
127 if (auto MaybeOutputSpecs = loadOutputSpecs(Ctx, DecisionName, ModelPath, in createAndEnsureValid()
146 Ctx, ModelPath, InputSpecs, OutputSpecs, ExtraOutputsForLogging)); in createAndEnsureValid()
150 Ctx.emitError("Could not load or create model evaluator."); in createAndEnsureValid()
153 Ctx.emitError("Could not load the policy model from the provided path"); in createAndEnsureValid()