Skip to content

Commit

Permalink
Merge pull request #262 from VukManojlovic/hotfix-onnx-inference-init
Browse files Browse the repository at this point in the history
Hotfix: Add runOnnxInference to zkml init file
  • Loading branch information
dule1322 authored Aug 30, 2024
2 parents 9b924df + a9bf76d commit ed59b10
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions coretex/zkml/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,5 @@

# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>.

from .inference import runOnnxInference
2 changes: 1 addition & 1 deletion coretex/zkml/inference.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ def runOnnxInference(
return result

if compiledModelPath is None or proveKey is None or settingsPath is None:
raise ValueError(f">> [Coretex] Parameters compiledModelPath, proveKey and settingsPath have to either all be passed (for verified inference) or none of them (for regula inference)")
raise ValueError(f">> [Coretex] Parameters compiledModelPath, proveKey and settingsPath have to either all be passed (for verified inference) or none of them (for regular inference)")

inferenceDir = folder_manager.createTempFolder(inferenceId)
witnessPath = inferenceDir / "witness.json"
Expand Down

0 comments on commit ed59b10

Please sign in to comment.