Skip to content

Commit

Permalink
callers
Browse files Browse the repository at this point in the history
  • Loading branch information
abhigunj committed Sep 6, 2024
1 parent 8f30f04 commit 0b5b4bd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion stablehlo/integrations/c/StablehloApi.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ MlirLogicalResult stablehloDeserializePortableArtifact(
return mlirLogicalResultSuccess();
}

MlirModule stablehloDeserializePortableArtifact(MlirStringRef artifactStr,
MlirModule stablehloDeserializePortableArtifactNoError(MlirStringRef artifactStr,
MlirContext ctx) {
return wrap(mlir::stablehlo::deserializePortableArtifact(unwrap(artifactStr),
unwrap(ctx))
Expand Down
4 changes: 2 additions & 2 deletions stablehlo/integrations/python/StablehloApi.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ void AddStablehloApi(py::module &m) {
"serialize_portable_artifact",
[](MlirModule module, std::string_view target) -> py::bytes {
StringWriterHelper accumulator;
if (mlirLogicalResultIsFailure(stablehloSerializePortableArtifact(
if (mlirLogicalResultIsFailure(stablehloSerializePortableArtifactFromModule(
module, toMlirStringRef(target),
accumulator.getMlirStringCallback(),
accumulator.getUserData()))) {
Expand Down Expand Up @@ -197,7 +197,7 @@ void AddPortableApi(py::module &m) {
[](std::string_view moduleStrOrBytecode,
std::string_view targetVersion) -> py::bytes {
StringWriterHelper accumulator;
if (mlirLogicalResultIsFailure(stablehloSerializePortableArtifact(
if (mlirLogicalResultIsFailure(stablehloSerializePortableArtifactFromString(
toMlirStringRef(moduleStrOrBytecode),
toMlirStringRef(targetVersion),
accumulator.getMlirStringCallback(),
Expand Down

0 comments on commit 0b5b4bd

Please sign in to comment.