Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Cherry Pick] Rename legacy analyze to analyze_v1 #460

Merged
merged 1 commit into from
Feb 21, 2024
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
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.
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
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
Loading