Skip to content

Commit

Permalink
Rename legacy analyze to analyze_v1 (#460)
Browse files Browse the repository at this point in the history
  • Loading branch information
rahul-tuli committed Feb 21, 2024
1 parent 64681fe commit 44b7972
Show file tree
Hide file tree
Showing 13 changed files with 11 additions and 11 deletions.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@
from pydantic import BaseModel, Field, PositiveFloat, PositiveInt

from sparsezoo import Model
from sparsezoo.analyze.utils.helpers import numpy_array_representer
from sparsezoo.analyze.utils.models import (
from sparsezoo.analyze_v1.utils.helpers import numpy_array_representer
from sparsezoo.analyze_v1.utils.models import (
DenseSparseOps,
Entry,
ModelEntry,
Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
plt = None
matplotlib_available = False

from sparsezoo.analyze.analysis import ModelAnalysis, NodeAnalysis
from sparsezoo.analyze_v1.analysis import ModelAnalysis, NodeAnalysis


__all__ = [
Expand Down
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion tests/sparsezoo/analyze/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
import pytest

from sparsezoo import Model
from sparsezoo.analyze import ModelAnalysis
from sparsezoo.analyze_v1 import ModelAnalysis
from sparsezoo.utils.graph_editor import ONNXGraph


Expand Down
2 changes: 1 addition & 1 deletion tests/sparsezoo/analyze/test_analysis.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

import pytest

from sparsezoo.analyze import ModelAnalysis
from sparsezoo.analyze_v1 import ModelAnalysis
from tests.sparsezoo.analyze.helpers import (
get_expected_analysis,
get_generated_analysis,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
import pytest
import yaml

from sparsezoo.analyze import (
from sparsezoo.analyze_v1 import (
BenchmarkResult,
BenchmarkScenario,
ImposedSparsificationInfo,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@

import pytest

from sparsezoo.analyze import ModelAnalysis
from sparsezoo.analyze.analysis import ModelAnalysisSummary
from sparsezoo.analyze.utils.models import ModelEntry, Section, SizedModelEntry
from sparsezoo.analyze_v1 import ModelAnalysis
from sparsezoo.analyze_v1.analysis import ModelAnalysisSummary
from sparsezoo.analyze_v1.utils.models import ModelEntry, Section, SizedModelEntry


@pytest.fixture
Expand Down
2 changes: 1 addition & 1 deletion tests/sparsezoo/analyze/test_model_analysis_creation.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
import pytest

from sparsezoo import Model
from sparsezoo.analyze import ModelAnalysis
from sparsezoo.analyze_v1 import ModelAnalysis


def onnx_stub():
Expand Down
2 changes: 1 addition & 1 deletion tests/sparsezoo/analyze/utils/test_chart.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

import pytest

from sparsezoo.analyze import (
from sparsezoo.analyze_v1 import (
ModelAnalysis,
draw_operation_chart,
draw_parameter_chart,
Expand Down

0 comments on commit 44b7972

Please sign in to comment.