Skip to content

Commit

Permalink
Add graph capture api to c++ as well
Browse files Browse the repository at this point in the history
  • Loading branch information
baijumeswani committed Apr 25, 2024
1 parent 0f10c5a commit fdd5d43
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/ort_genai.h
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,10 @@ struct OgaGeneratorParams : OgaAbstract {
OgaCheckResult(OgaGeneratorParamsSetInputSequences(this, &sequences));
}

void TryGraphCaptureWithMaxBatchSize(int max_batch_size) {
OgaCheckResult(OgaGeneratorParamsTryGraphCaptureWithMaxBatchSize(this, max_batch_size));
}

static void operator delete(void* p) { OgaDestroyGeneratorParams(reinterpret_cast<OgaGeneratorParams*>(p)); }
};

Expand Down

0 comments on commit fdd5d43

Please sign in to comment.