Skip to content

Commit

Permalink
[Move] logger into it's own package (#1924)
Browse files Browse the repository at this point in the history
improves structure and separation of concerns
  • Loading branch information
rahul-tuli authored Dec 21, 2023
1 parent 996ace3 commit e5a58be
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 1 deletion.
15 changes: 15 additions & 0 deletions src/sparseml/core/logger/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Copyright (c) 2021 - present / Neuralmagic, Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# flake8: noqa
from .logger import *
File renamed without changes.
13 changes: 13 additions & 0 deletions tests/sparseml/core/logger/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Copyright (c) 2021 - present / Neuralmagic, Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

import pytest

from sparseml.core.logger import (
from sparseml.core import (
LambdaLogger,
LoggerManager,
PythonLogger,
Expand Down

0 comments on commit e5a58be

Please sign in to comment.