Skip to content

Commit

Permalink
Merge branch 'main' into paddle_max_pool2d
Browse files Browse the repository at this point in the history
  • Loading branch information
aibenStunner authored Nov 1, 2023
2 parents 80462ec + 6e1f438 commit 7f637c1
Show file tree
Hide file tree
Showing 905 changed files with 43,308 additions and 14,904 deletions.
1 change: 0 additions & 1 deletion .devcontainer/build/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,4 +59,3 @@
}
}
}

61 changes: 61 additions & 0 deletions .devcontainer/build_apple_silicon/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
// For format details, see https://aka.ms/devcontainer.json. For config options, see the README at:
// https://github.com/microsoft/vscode-dev-containers/tree/v0.236.0/containers/docker-existing-dockerfile
{
"name": "Ivy Apple Silicon Development Environment (build)",

"build": {
"dockerfile": "../../docker/DockerfileAppleSilicon",
"context": "../..",
"args": {
"pycon": ["3.10"]
}
},

"customizations": {
"vscode": {
"extensions": [
"ms-python.python"
],
"settings": {
"python.defaultInterpreterPath": "/opt/miniconda/envs/multienv/bin/python3"
}
}
},

"postCreateCommand": {
"post_create": "bash .devcontainer/post_create_commands.sh",
"bashrc": "echo \"alias python=python3\" >> ~/.bashrc"
},

// Use 'forwardPorts' to make a list of ports inside the container available locally.
// "forwardPorts": [],

// Uncomment the next line to run commands after the container is created - for example installing curl.

// Uncomment when using a ptrace-based debugger like C++, Go, and Rust
// "runArgs": [ "--cap-add=SYS_PTRACE", "--security-opt", "seccomp=unconfined" ],

// Uncomment to use the Docker CLI from inside the container. See https://aka.ms/vscode-remote/samples/docker-from-docker.
// "mounts": [ "source=/var/run/docker.sock,target=/var/run/docker.sock,type=bind" ],

// Uncomment to connect as a non-root user if you've added one. See https://aka.ms/vscode-remote/containers/non-root.
// "remoteUser": "vscode",
"features": {
"ghcr.io/devcontainers/features/common-utils:2": {
"installZsh": true,
"configureZshAsDefaultShell": true,
"installOhMyZsh": true,
"upgradePackages": false
},
"ghcr.io/devcontainers/features/docker-outside-of-docker:1": {
"moby": true,
"installDockerBuildx": true,
"version": "20.10",
"dockerDashComposeVersion": "v2"
},
"ghcr.io/devcontainers/features/github-cli:1": {
"installDirectlyFromGitHubRelease": true,
"version": "latest"
}
}
}
8 changes: 4 additions & 4 deletions .devcontainer/build_gpu/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
"name": "Ivy GPU Development Environment (build)",

"build": {
"dockerfile": "../../docker/DockerfileGPUMultiCuda",
"dockerfile": "../../docker/DockerfileGPU",
"context": "../..",
"args": {
"IMAGE_NAME": "unifyai/multicuda",
"IMAGE_TAG": "base_and_requirements"
"IMAGE_NAME": "unifyai/ivy",
"IMAGE_TAG": "latest-gpu"
}
},

Expand Down Expand Up @@ -59,4 +59,4 @@
"version": "latest"
}
}
}
}
1 change: 0 additions & 1 deletion .devcontainer/build_multiversion/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,4 +62,3 @@
}
}
}

Original file line number Diff line number Diff line change
Expand Up @@ -48,4 +48,4 @@
"version": "latest"
}
}
}
}
4 changes: 2 additions & 2 deletions .devcontainer/image_gpu/devcontainer.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "Ivy GPU Development Environment (image)",

"image": "unifyai/multicuda:base_and_requirements",
"image": "unifyai/ivy:latest-gpu",
"customizations": {
"vscode": {
"extensions": [
Expand Down Expand Up @@ -50,4 +50,4 @@
"version": "latest"
}
}
}
}
2 changes: 1 addition & 1 deletion .devcontainer/post_create_commands.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ python3 -m pip install pre-commit

git config --global --add safe.directory /workspaces/ivy

( cd /workspaces/ivy/ && pre-commit install)
( cd /workspaces/ivy/ && pre-commit install)
11 changes: 2 additions & 9 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
Expand Up @@ -5,24 +5,17 @@ ivy/utils/backend @VedPatwardhan @CatB1t
ivy/utils/backend/ast_helpers.py @CatB1t

# Ivy Testing
ivy_tests/test_ivy/helpers/ @sherry30 @CatB1t
ivy_tests/array_api_testing/ @aarsh2001 @hirwa-nshuti
ivy_tests/test_ivy/helpers/ @CatB1t

# Docs builder
docs/index.rst @KareemMAX
docs/make_docs.sh @KareemMAX
docs/partial_conf.py @KareemMAX
docs/prebuild.sh @KareemMAX
docs/overview/contributing/building_the_docs.rst @KareemMAX
docs/overview/deep_dive/building_the_docs_pipline.rst @KareemMAX
docs/overview/deep_dive/building_the_docs_pipeline.rst @KareemMAX
docs/_templates @KareemMAX
docs/demos @KareemMAX

# Docker
docker/* @ricksanchezstoic

# Idea files
.idea/* @Aarsh2001 @zaeemansari70

# README
README.md @guillesanbri
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/sub-task.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name: 🍰 Sub-Task
about: Reserve a sub-task from a ToDo list issue
title: "<Function_Name>"
labels: Sub Task
labels: Sub Task, hacktoberfest
assignees: ''

---
17 changes: 15 additions & 2 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,28 @@ Please use this format to link other issues with their numbers: Close #123
https://docs.github.com/en/issues/tracking-your-work-with-issues/linking-a-pull-request-to-an-issue#linking-a-pull-request-to-an-issue-using-a-keyword
-->

Close #
Closes #

## Checklist

- [ ] Did you add a function?
- [ ] Did you add the tests?
- [ ] Did you run your tests and are your tests passing?
- [ ] Did pre-commit not fail on any check?
- [ ] Did you follow the steps we provided?

### Socials:
<!--
Please mark your PR as a draft if you realise after the fact that your tests are not passing or
that your pre-commit check has some failures.
Here are some relevant resources regarding tests and pre-commit:
https://unify.ai/docs/ivy/overview/deep_dive/ivy_tests.html
https://unify.ai/docs/ivy/overview/deep_dive/formatting.html#pre-commit
-->

### Socials

<!--
If you have Twitter, please provide it here otherwise just ignore this.
Expand Down
7 changes: 5 additions & 2 deletions .github/workflows/array-api-det-coverage.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
name: array-api-determine-test-coverage
on:
workflow_dispatch:
schedule:
- cron: "30 20 * * 6"

permissions:
actions: read
jobs:
Expand All @@ -19,7 +22,7 @@ jobs:
run: |
pip install pydriller tqdm
cd ivy
python run_tests_CLI/array_api_det_coverage.py
python scripts/determine_tests/array_api_det_coverage.py
cd ..
mkdir tests
cp ivy/tests.pbz2 tests/
Expand All @@ -32,6 +35,6 @@ jobs:
source-directory: tests/
destination-github-username: 'unifyai'
destination-repository-name: 'Mapping'
user-email: [email protected]
user-email: [email protected]
commit-message: Update Array API Tests Mapping
target-branch: main
4 changes: 2 additions & 2 deletions .github/workflows/array-api-intelligent-tests-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,14 @@ jobs:
pip install pydriller
cp Mapping/tests.pbz2 ivy/
cd ivy
python run_tests_CLI/array_api_determine_tests.py
python scripts/determine_tests/array_api_determine_tests.py
continue-on-error: true

- name: Run Tests
id: tests
run: |
cd ivy
python run_tests_CLI/array_api_run_tests_pr.py
python scripts/run_tests/array_api_run_tests_pr.py
continue-on-error: true

- name: Check on failures
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/array-api-intelligent-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,11 @@ jobs:
env:
SSH_DEPLOY_KEY: ${{ secrets.SSH_DEPLOY_KEY }}
run: |
source ./ivy/clone_mapping.sh main
source ./ivy/scripts/shell/clone_mapping.sh main
pip install pydriller pymongo
cp Mapping/tests.pbz2 ivy/
cd ivy
python run_tests_CLI/array_api_determine_tests.py
python scripts/determine_tests/array_api_determine_tests.py
cd ..
cp ivy/tests.pbz2 Mapping/
cd Mapping
Expand All @@ -46,7 +46,7 @@ jobs:
id: tests
run: |
cd ivy
python run_tests_CLI/array_api_run_tests.py ${{ secrets.REDIS_CONNECTION_URL }} ${{ secrets.REDIS_PASSWORD }} ${{ secrets.MONGODB_PASSWORD }} ${{ github.run_id }} ${{ steps.jobs.outputs.html_url }}
python scripts/run_tests/array_api_run_tests.py ${{ secrets.REDIS_CONNECTION_URL }} ${{ secrets.REDIS_PASSWORD }} ${{ secrets.MONGODB_PASSWORD }} ${{ github.run_id }} ${{ steps.jobs.outputs.html_url }}
continue-on-error: true

- name: Check on failures
Expand Down
28 changes: 0 additions & 28 deletions .github/workflows/auto-comment.yml

This file was deleted.

19 changes: 19 additions & 0 deletions .github/workflows/binaries.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: release-binaries
on:
workflow_call:
jobs:
release-binaries:
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️Binaries
uses: actions/checkout@v2
with:
repository: unifyai/binaries
path: binaries
persist-credentials: false

- name: Add Tag to Binaries
run: |
cd binaries
git tag ${{ github.ref_name }}
git push origin ${{ github.ref_name }}
4 changes: 2 additions & 2 deletions .github/workflows/det-test-coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ jobs:
run: |
pip install pydriller tqdm
cd ivy
python determine_test_coverage.py ${{ matrix.branch }}
python scripts/determine_tests/determine_test_coverage.py ${{ matrix.branch }}
cd ..
mkdir tests
cp ivy/tests.pbz2 tests/
Expand All @@ -51,6 +51,6 @@ jobs:
source-directory: tests/
destination-github-username: 'unifyai'
destination-repository-name: 'Mapping'
user-email: [email protected]
user-email: [email protected]
commit-message: Update Mapping
target-branch: master${{ matrix.branch }}
26 changes: 26 additions & 0 deletions .github/workflows/dockerfile-gpu-push.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: GPU Dockerfile Push

on:
schedule:
- cron: '0 0 * * *'
workflow_dispatch:

jobs:

build:
runs-on: ubuntu-latest-4-cores

steps:
- name: Checkout 🛎 Ivy
uses: actions/checkout@v3

- name: Login to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Build and push GPU image
run: |
docker build --progress=plain --no-cache -t unifyai/ivy:latest-gpu -f docker/DockerfileGPU .
docker push unifyai/ivy:latest-gpu
2 changes: 1 addition & 1 deletion .github/workflows/dockerfile-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:

build:
if: ${{(github.event_name == 'push') || contains(github.event.pull_request.labels.*.name, 'Exhaustive CI') || contains(github.event.pull_request.labels.*.name, 'Build Docker Files')}}
runs-on: ubuntu-20.04
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Dockerfile MultiCUDA Push
name: Dockerfile Mutiversion Push

on:
schedule:
Expand All @@ -8,10 +8,10 @@ on:
jobs:

build:
runs-on: ubuntu-latest-4-cores
runs-on: ubuntu-latest

steps:
- name: Checkout 🛎 Ivy
- name: Checkout Ivy 🛎
uses: actions/checkout@v3

- name: Login to Docker Hub
Expand All @@ -20,8 +20,7 @@ jobs:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}


- name: Build and push Dockerfile
run: |
docker build --progress=plain --no-cache -t unifyai/multicuda:base_and_requirements -f docker/DockerfileGPUMultiCuda .
docker push unifyai/multicuda:base_and_requirements
docker build --progress=plain --no-cache -t unifyai/multiversion:latest -f docker/DockerfileMultiversion .
docker push unifyai/multiversion:latest
2 changes: 1 addition & 1 deletion .github/workflows/dockerfile-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:

build:

runs-on: ubuntu-20.04
runs-on: ubuntu-latest

steps:
-
Expand Down
Loading

0 comments on commit 7f637c1

Please sign in to comment.