diff --git a/slim/analysis/__init__.py b/paddleslim/__init__.py similarity index 100% rename from slim/analysis/__init__.py rename to paddleslim/__init__.py diff --git a/slim/common/__init__.py b/paddleslim/analysis/__init__.py similarity index 100% rename from slim/common/__init__.py rename to paddleslim/analysis/__init__.py diff --git a/slim/dist/__init__.py b/paddleslim/common/__init__.py similarity index 100% rename from slim/dist/__init__.py rename to paddleslim/common/__init__.py diff --git a/slim/nas/__init__.py b/paddleslim/dist/__init__.py similarity index 100% rename from slim/nas/__init__.py rename to paddleslim/dist/__init__.py diff --git a/slim/prune/__init__.py b/paddleslim/nas/__init__.py similarity index 100% rename from slim/prune/__init__.py rename to paddleslim/nas/__init__.py diff --git a/slim/quant/__init__.py b/paddleslim/prune/__init__.py similarity index 100% rename from slim/quant/__init__.py rename to paddleslim/prune/__init__.py diff --git a/paddleslim/quant/__init__.py b/paddleslim/quant/__init__.py new file mode 100644 index 0000000000000000000000000000000000000000..9d0531501ca43921438ee5b2fb58ac0ad2396d1b --- /dev/null +++ b/paddleslim/quant/__init__.py @@ -0,0 +1,13 @@ +# Copyright (c) 2019 PaddlePaddle Authors. 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. diff --git a/slim/search/__init__.py b/paddleslim/search/__init__.py similarity index 100% rename from slim/search/__init__.py rename to paddleslim/search/__init__.py diff --git a/slim/version.py b/paddleslim/version.py similarity index 100% rename from slim/version.py rename to paddleslim/version.py diff --git a/setup.py b/setup.py index ba4187dc687d7c4a236497322b9b1fe77f6d6e6b..d79620c5791c3a0144ca3aaa9f1d5d7b979dff31 100644 --- a/setup.py +++ b/setup.py @@ -20,7 +20,7 @@ import platform from setuptools import find_packages from setuptools import setup -from slim.version import slim_version +from paddleslim.version import slim_version def python_version(): @@ -33,12 +33,12 @@ with open('./requirements.txt') as f: setup_requires = f.read().splitlines() packages = [ - 'slim', 'slim.prune', 'slim.dist', 'slim.nas', 'slim.analysis', - 'slim.quant' + 'paddleslim', 'paddleslim.prune', 'paddleslim.dist', 'paddleslim.nas', + 'paddleslim.analysis', 'paddleslim.quant' ] setup( - name='slim', + name='paddleslim', version=slim_version, description=('A toolkit for generating small model.'), long_description='',