-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
asyms
committed
Sep 22, 2023
1 parent
cdf0de8
commit 49ecbac
Showing
2 changed files
with
24 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# Test the zigzag api call | ||
import pytest | ||
|
||
from zigzag.api import get_hardware_performance_zigzag | ||
|
||
|
||
@pytest.fixture | ||
def workload(): | ||
return "zigzag/inputs/examples/workload/mobilenetv2.onnx" | ||
|
||
|
||
@pytest.fixture | ||
def mapping(): | ||
return "zigzag.inputs.examples.mapping.tpu_like" | ||
|
||
|
||
@pytest.fixture | ||
def accelerator(): | ||
return "zigzag.inputs.examples.hardware.TPU_like" | ||
|
||
|
||
def test_api(workload, mapping, accelerator): | ||
answer = get_hardware_performance_zigzag(workload, accelerator, mapping) | ||
assert answer |
This file was deleted.
Oops, something went wrong.