Skip to content
This repository has been archived by the owner on Sep 18, 2024. It is now read-only.

refine nn-Meter API and add nn-meter in README.md #4001

Merged
merged 4 commits into from
Aug 3, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -356,6 +356,7 @@ Targeting at openness and advancing state-of-art technology, [Microsoft Research
* [FrameworkController](https://github.com/Microsoft/frameworkcontroller) : an open source general-purpose Kubernetes Pod Controller that orchestrate all kinds of applications on Kubernetes by a single controller.
* [MMdnn](https://github.com/Microsoft/MMdnn) : A comprehensive, cross-framework solution to convert, visualize and diagnose deep neural network models. The "MM" in MMdnn stands for model management and "dnn" is an acronym for deep neural network.
* [SPTAG](https://github.com/Microsoft/SPTAG) : Space Partition Tree And Graph (SPTAG) is an open source library for large scale vector approximate nearest neighbor search scenario.
* [nn-Meter](https://github.com/microsoft/nn-Meter) : An accurate inference latency predictor for DNN models on diverse edge devices.

We encourage researchers and students leverage these projects to accelerate the AI development and research.

Expand Down
4 changes: 2 additions & 2 deletions examples/nas/oneshot/spos/multi_trial.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

from blocks import ShuffleNetBlock, ShuffleXceptionBlock

from nn_meter import get_default_config, load_latency_predictors
from nn_meter import load_latency_predictors


class ShuffleNetV2(nn.Module):
Expand Down Expand Up @@ -146,7 +146,7 @@ def __init__(self, threshold, predictor, predictor_version=None, reverse=False):
self.threshold = threshold

def __call__(self, ir_model):
latency = self.predictors.predict(ir_model, 'nni')
latency = self.predictors.predict(ir_model, 'nni-ir')
return latency < self.threshold


Expand Down