Skip to content

Commit

Permalink
ensure compatibility with workload_metrics.py
Browse files Browse the repository at this point in the history
  • Loading branch information
ben9809 committed Mar 17, 2024
1 parent fd6cc4b commit 6cd039c
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/python-style-check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,4 @@ jobs:
- name: Run Flake8
run: |
flake8 --count --ignore=E501,E203,W291,W503,F403,F401 --max-line-length=88 --statistics --show-source --exclude=neurobench/examples/ .
flake8 --count --ignore=E501,E203,W291,W503,F403,F401,F821 --max-line-length=88 --statistics --show-source --exclude=neurobench/examples/ .
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,5 @@ repos:
types: [ python ]
args:
- --max-line-length=88
- --ignore=E501, E203, W291, W503, F403, F401
- --ignore=E501, E203, W291, W503, F403, F401, F821
#- E203, W503, F401, F403, C901
2 changes: 0 additions & 2 deletions neurobench/benchmarks/workload_metrics.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
import numpy as np
from ..utils import check_shape, make_binary_copy, single_layer_MACs
from .hooks import ActivationHook, LayerHook
from collections import defaultdict
from metavision_ml.metrics.coco_eval import CocoEvaluator


class AccumulatedMetric:
Expand Down

0 comments on commit 6cd039c

Please sign in to comment.