Skip to content

Commit

Permalink
Add Automatic SParsity Utilities (#32995)
Browse files Browse the repository at this point in the history
  • Loading branch information
mingxu1067 authored May 25, 2021
1 parent 1bb73c6 commit f91e0f4
Show file tree
Hide file tree
Showing 5 changed files with 802 additions and 0 deletions.
4 changes: 4 additions & 0 deletions python/paddle/fluid/contrib/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# Copyright (c) 2018 PaddlePaddle Authors. All Rights Reserve.
# Copyright (c) 2021 NVIDIA Corporation. 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.
Expand Down Expand Up @@ -32,6 +33,8 @@
from . import layers
from .layers import *
from . import optimizer
from . import sparsity
from .sparsity import *

__all__ = []
__all__ += decoder.__all__
Expand All @@ -42,3 +45,4 @@
__all__ += ['mixed_precision']
__all__ += layers.__all__
__all__ += optimizer.__all__
__all__ += sparsity.__all__
21 changes: 21 additions & 0 deletions python/paddle/fluid/contrib/sparsity/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Copyright (c) 2021 PaddlePaddle Authors. All Rights Reserved.
# Copyright (c) 2021 NVIDIA Corporation. 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.

from __future__ import print_function

from . import utils
from .utils import *

__all__ = utils.__all__
Loading

0 comments on commit f91e0f4

Please sign in to comment.