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

Restructured and modularized code #5

Merged
merged 3 commits into from Oct 20, 2021
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.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion setup.cfg
@@ -1,2 +1,2 @@
[metadata]
license_file = LICENSE
license_file = LICENSE
2 changes: 1 addition & 1 deletion setup.py
Expand Up @@ -8,7 +8,7 @@
author="Sidney Radcliffe",
author_email="sidneyradcliffe@gmail.com",
description="Minimal automatic differentiation implementation in Python, NumPy.",
long_description=pathlib.Path('README.md').read_text(),
long_description=pathlib.Path("README.md").read_text(),
long_description_content_type="text/markdown",
url="https://github.com/sradc/smallpebble",
license="Apache License 2.0",
Expand Down
18 changes: 17 additions & 1 deletion smallpebble/__init__.py
@@ -1,5 +1,21 @@
# Copyright 2021 The SmallPebble 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.

from smallpebble.array_library import use
from smallpebble.smallpebble import *
from smallpebble.core import *
from smallpebble.nn import *
from smallpebble.version import version


__version__ = version
14 changes: 14 additions & 0 deletions smallpebble/array_library.py
@@ -1,3 +1,17 @@
# Copyright 2021 The SmallPebble 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.

"""This module acts as a proxy, allowing NumPy/CuPy to be switched dynamically.
The default library is NumPy.

Expand Down
15 changes: 15 additions & 0 deletions smallpebble/core/__init__.py
@@ -0,0 +1,15 @@
# Copyright 2021 The SmallPebble 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.

from smallpebble.core.ops import *