Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
… into dist
  • Loading branch information
BigBalloon8 committed Aug 10, 2023
2 parents 65004f5 + e4cbfe5 commit e08cbfb
Show file tree
Hide file tree
Showing 147 changed files with 4,954 additions and 485 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/intelligent-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ jobs:
run: |
cd ivy
set -o pipefail
python run_tests.py ${{ secrets.REDIS_CONNECTION_URL }} ${{ secrets.REDIS_PASSWORD }} ${{ secrets.MONGODB_PASSWORD }} 'false' 'false' ${{ github.run_id }} ${{ steps.jobs.outputs.html_url }} | tee test_results_${{ matrix.branch }}.txt
python run_tests.py ${{ secrets.REDIS_CONNECTION_URL }} ${{ secrets.REDIS_PASSWORD }} ${{ secrets.MONGODB_PASSWORD }} 'false' 'false' ${{ github.run_id }} 'false' ${{ steps.jobs.outputs.html_url }} | tee test_results_${{ matrix.branch }}.txt
continue-on-error: true

- name: Upload test results
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/manual-tests-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
touch .ivy/key.pem
echo -n ${{ secrets.USER_API_KEY }} > .ivy/key.pem
python setup_tests.py ${{ github.event.inputs.test }}
python run_tests_pr.py
python run_tests_pr.py new_failures.txt
continue-on-error: true

- name: Check on failures
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/manual-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ jobs:
touch .ivy/key.pem
echo -n ${{ secrets.USER_API_KEY }} > .ivy/key.pem
python3 setup_tests.py ${{ github.event.inputs.test }}
python3 run_tests.py ${{ secrets.REDIS_CONNECTION_URL }} ${{ secrets.REDIS_PASSWORD }} ${{ secrets.MONGODB_PASSWORD }} 'false' ${{ github.event.inputs.gpu }} ${{ github.run_id }} ${{ steps.jobs.outputs.html_url }}
python3 run_tests.py ${{ secrets.REDIS_CONNECTION_URL }} ${{ secrets.REDIS_PASSWORD }} ${{ secrets.MONGODB_PASSWORD }} 'false' ${{ github.event.inputs.gpu }} ${{ github.run_id }} 'false' ${{ steps.jobs.outputs.html_url }}
continue-on-error: true

- name: Check on failures
Expand Down Expand Up @@ -87,7 +87,7 @@ jobs:
touch .ivy/key.pem
echo -n ${{ secrets.USER_API_KEY }} > .ivy/key.pem
python setup_tests.py "${{ github.event.inputs.test }}"
python run_tests.py ${{ secrets.REDIS_CONNECTION_URL }} ${{ secrets.REDIS_PASSWORD }} ${{ secrets.MONGODB_PASSWORD }} ${{ github.event.inputs.version}} 'false' ${{ github.run_id }} ${{ steps.jobs.outputs.html_url }}
python run_tests.py ${{ secrets.REDIS_CONNECTION_URL }} ${{ secrets.REDIS_PASSWORD }} ${{ secrets.MONGODB_PASSWORD }} ${{ github.event.inputs.version}} 'false' ${{ github.run_id }} 'false' ${{ steps.jobs.outputs.html_url }}
continue-on-error: true

- name: Check on failures
Expand Down
38 changes: 38 additions & 0 deletions .github/workflows/pre-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Pre-release Testing Workflow
on:
workflow_dispatch:

permissions:
actions: read
jobs:
run_tests:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
file: [ivy.txt, torch.txt]
steps:
- name: Checkout Ivy 🛎
uses: actions/checkout@v3
with:
path: ivy
persist-credentials: false
submodules: "recursive"
fetch-depth: 1

- name: Get Job URL
uses: Tiryoh/gha-jobid-action@v0
id: jobs
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
job_name: ${{ github.job }}

- name: Run Tests
run: |
pip3 install pymongo
cd ivy
mkdir .ivy
touch .ivy/key.pem
echo -n ${{ secrets.USER_API_KEY }} > .ivy/key.pem
python run_tests_CLI/setup_priority_tests.py priority_tests/${{ matrix.file }}
python run_tests.py ${{ secrets.REDIS_CONNECTION_URL }} ${{ secrets.REDIS_PASSWORD }} ${{ secrets.MONGODB_PASSWORD }} 'false' 'false' ${{ github.run_id }} 'true' ${{ steps.jobs.outputs.html_url }}
2 changes: 1 addition & 1 deletion .github/workflows/run-all-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ jobs:
echo -n ${{ secrets.USER_API_KEY }} > .ivy/key.pem
python run_tests_CLI/filter_tests.py ${{ matrix.branch }}
set -o pipefail
python run_tests.py ${{ secrets.REDIS_CONNECTION_URL }} ${{ secrets.REDIS_PASSWORD }} ${{ secrets.MONGODB_PASSWORD }} 'false' 'false' ${{ github.run_id }} ${{ steps.jobs.outputs.html_url }} | tee test_results_${{ matrix.branch }}.txt
python run_tests.py ${{ secrets.REDIS_CONNECTION_URL }} ${{ secrets.REDIS_PASSWORD }} ${{ secrets.MONGODB_PASSWORD }} 'false' 'false' ${{ github.run_id }} 'false' ${{ steps.jobs.outputs.html_url }} | tee test_results_${{ matrix.branch }}.txt
continue-on-error: true

- name: Upload test results
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-ivy-cron-gpu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
touch .ivy/key.pem
echo -n ${{ secrets.USER_API_KEY }} > .ivy/key.pem
python3 run_tests_CLI/cron_tests.py ${{ github.run_number }}
python3 run_tests.py ${{ secrets.REDIS_CONNECTION_URL }} ${{ secrets.REDIS_PASSWORD }} ${{ secrets.MONGODB_PASSWORD }} 'false' 'true' ${{ github.run_id }} ${{ steps.jobs.outputs.html_url }}
python3 run_tests.py ${{ secrets.REDIS_CONNECTION_URL }} ${{ secrets.REDIS_PASSWORD }} ${{ secrets.MONGODB_PASSWORD }} 'false' 'true' ${{ github.run_id }} 'false' ${{ steps.jobs.outputs.html_url }}
continue-on-error: true

- name: Check on failures
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-ivy-cron-multi-version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
cd ivy
pip3 install pymongo
python run_tests_CLI/cron_tests_multi_version.py ${{ github.run_number }}
python run_tests.py ${{ secrets.REDIS_CONNECTION_URL }} ${{ secrets.REDIS_PASSWORD }} ${{ secrets.MONGODB_PASSWORD }} 'true' 'false' ${{ github.run_id }} ${{ steps.jobs.outputs.html_url }}
python run_tests.py ${{ secrets.REDIS_CONNECTION_URL }} ${{ secrets.REDIS_PASSWORD }} ${{ secrets.MONGODB_PASSWORD }} 'true' 'false' ${{ github.run_id }} 'false' ${{ steps.jobs.outputs.html_url }}
continue-on-error: true

- name: Check on failures
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-ivy-cron.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
echo -n ${{ secrets.USER_API_KEY }} > .ivy/key.pem
pip3 install pymongo
python run_tests_CLI/cron_tests.py ${{ github.run_number }}
python run_tests.py ${{ secrets.REDIS_CONNECTION_URL }} ${{ secrets.REDIS_PASSWORD }} ${{ secrets.MONGODB_PASSWORD }} 'false' 'false' ${{ github.run_id }} ${{ steps.jobs.outputs.html_url }}
python run_tests.py ${{ secrets.REDIS_CONNECTION_URL }} ${{ secrets.REDIS_PASSWORD }} ${{ secrets.MONGODB_PASSWORD }} 'false' 'false' ${{ github.run_id }} 'false' ${{ steps.jobs.outputs.html_url }}
continue-on-error: true

- name: Check on failures
Expand Down
76 changes: 38 additions & 38 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
> to some users, [join the waitlist](https://console.unify.ai/) if you
> want to test them out!
<img class="only-dark" width="100%" src="https://github.com/unifyai/unifyai.github.io/blob/master/img/externally_linked/logo_dark.png?raw=true#gh-dark-mode-only"/>
<img class="only-dark" width="100%" src="https://raw.githubusercontent.com/unifyai/unifyai.github.io/master/img/externally_linked/logo_dark.png#gh-dark-mode-only"/>

<img class="only-light" width="100%" src="https://github.com/unifyai/unifyai.github.io/blob/master/img/externally_linked/logo.png?raw=true#gh-light-mode-only"/>
<img class="only-light" width="100%" src="https://raw.githubusercontent.com/unifyai/unifyai.github.io/master/img/externally_linked/logo.png?raw=true#gh-light-mode-only"/>

------------------------------------------------------------------------

Expand Down Expand Up @@ -335,47 +335,47 @@ and more!

<br/>
<div align="center">
<a href="https://github.com/unifyai/mech">
<picture>
<source class="dark-light" width="12.5%" style="padding-right: 4px; padding-bottom: 4px;" media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/unifyai/unifyai.github.io/master/img/externally_linked/logos/ivy_mech_dark.png">
<img class="dark-light" width="12.5%" style="padding-right: 4px; padding-bottom: 4px;" src="https://raw.githubusercontent.com/unifyai/unifyai.github.io/master/img/externally_linked/logos/ivy_mech.png">
</picture>
<a class="only-dark" href="https://github.com/unifyai/mech#gh-dark-mode-only">
<img class="only-dark" width="12.5%" style="padding-right: 4px; padding-bottom: 4px;" src="https://raw.githubusercontent.com/unifyai/unifyai.github.io/master/img/externally_linked/logos/ivy_mech_dark.png#gh-dark-mode-only">
</a>
<a href="https://github.com/unifyai/vision">
<picture>
<source class="dark-light" width="12.5%" style="padding-right: 4px; padding-bottom: 4px;" media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/unifyai/unifyai.github.io/master/img/externally_linked/logos/ivy_vision_dark.png">
<img class="dark-light" width="12.5%" style="padding-right: 4px; padding-bottom: 4px;" src="https://raw.githubusercontent.com/unifyai/unifyai.github.io/master/img/externally_linked/logos/ivy_vision.png">
</picture>
<a class="only-light" href="https://github.com/unifyai/mech#gh-light-mode-only">
<img class="only-dark" width="12.5%" style="padding-right: 4px; padding-bottom: 4px;" src="https://raw.githubusercontent.com/unifyai/unifyai.github.io/master/img/externally_linked/logos/ivy_mech.png#gh-light-mode-only">
</a>
<a href="https://github.com/unifyai/robot">
<picture>
<source class="dark-light" width="12.5%" style="padding-right: 4px; padding-bottom: 4px;" media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/unifyai/unifyai.github.io/master/img/externally_linked/logos/ivy_robot_dark.png">
<img class="dark-light" width="12.5%" style="padding-right: 4px; padding-bottom: 4px;" src="https://raw.githubusercontent.com/unifyai/unifyai.github.io/master/img/externally_linked/logos/ivy_robot.png">
</picture>
<a class="only-dark" href="https://github.com/unifyai/vision#gh-dark-mode-only">
<img class="only-dark" width="12.5%" style="padding-right: 4px; padding-bottom: 4px;" src="https://raw.githubusercontent.com/unifyai/unifyai.github.io/master/img/externally_linked/logos/ivy_vision_dark.png#gh-dark-mode-only">
</a>
<a href="https://github.com/unifyai/gym">
<picture>
<source class="dark-light" width="12.5%" style="padding-right: 4px; padding-bottom: 4px;" media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/unifyai/unifyai.github.io/master/img/externally_linked/logos/ivy_gym_dark.png">
<img class="dark-light" width="12.5%" style="padding-right: 4px; padding-bottom: 4px;" src="https://raw.githubusercontent.com/unifyai/unifyai.github.io/master/img/externally_linked/logos/ivy_gym.png">
</picture>
<a class="only-light" href="https://github.com/unifyai/vision#gh-light-mode-only">
<img class="only-dark" width="12.5%" style="padding-right: 4px; padding-bottom: 4px;" src="https://raw.githubusercontent.com/unifyai/unifyai.github.io/master/img/externally_linked/logos/ivy_vision.png#gh-light-mode-only">
</a>
<a href="https://github.com/unifyai/memory">
<picture>
<source class="dark-light" width="12.5%" style="padding-right: 4px; padding-bottom: 4px;" media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/unifyai/unifyai.github.io/master/img/externally_linked/logos/ivy_memory_dark.png">
<img class="dark-light" width="12.5%" style="padding-right: 4px; padding-bottom: 4px;" src="https://raw.githubusercontent.com/unifyai/unifyai.github.io/master/img/externally_linked/logos/ivy_memory.png">
</picture>
<a class="only-dark" href="https://github.com/unifyai/robot#gh-dark-mode-only">
<img class="only-dark" width="12.5%" style="padding-right: 4px; padding-bottom: 4px;" src="https://raw.githubusercontent.com/unifyai/unifyai.github.io/master/img/externally_linked/logos/ivy_robot_dark.png#gh-dark-mode-only">
</a>
<a href="https://github.com/unifyai/builder">
<picture>
<source class="dark-light" width="12.5%" style="padding-right: 4px; padding-bottom: 4px;" media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/unifyai/unifyai.github.io/master/img/externally_linked/logos/ivy_builder_dark.png">
<img class="dark-light" width="12.5%" style="padding-right: 4px; padding-bottom: 4px;" src="https://raw.githubusercontent.com/unifyai/unifyai.github.io/master/img/externally_linked/logos/ivy_builder.png">
</picture>
<a class="only-light" href="https://github.com/unifyai/robot#gh-light-mode-only">
<img class="only-dark" width="12.5%" style="padding-right: 4px; padding-bottom: 4px;" src="https://raw.githubusercontent.com/unifyai/unifyai.github.io/master/img/externally_linked/logos/ivy_robot.png#gh-light-mode-only">
</a>
<a href="https://github.com/unifyai/models">
<picture>
<source class="dark-light" width="12.5%" style="padding-right: 4px; padding-bottom: 4px;" media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/unifyai/unifyai.github.io/master/img/externally_linked/logos/ivy_models_dark.png">
<img class="dark-light" width="12.5%" style="padding-right: 4px; padding-bottom: 4px;" src="https://raw.githubusercontent.com/unifyai/unifyai.github.io/master/img/externally_linked/logos/ivy_models.png">
</picture>
<a class="only-dark" href="https://github.com/unifyai/gym#gh-dark-mode-only">
<img class="only-dark" width="12.5%" style="padding-right: 4px; padding-bottom: 4px;" src="https://raw.githubusercontent.com/unifyai/unifyai.github.io/master/img/externally_linked/logos/ivy_gym_dark.png#gh-dark-mode-only">
</a>
<a class="only-light" href="https://github.com/unifyai/gym#gh-light-mode-only">
<img class="only-dark" width="12.5%" style="padding-right: 4px; padding-bottom: 4px;" src="https://raw.githubusercontent.com/unifyai/unifyai.github.io/master/img/externally_linked/logos/ivy_gym.png#gh-light-mode-only">
</a>
<a class="only-dark" href="https://github.com/unifyai/memory#gh-dark-mode-only">
<img class="only-dark" width="12.5%" style="padding-right: 4px; padding-bottom: 4px;" src="https://raw.githubusercontent.com/unifyai/unifyai.github.io/master/img/externally_linked/logos/ivy_memory_dark.png#gh-dark-mode-only">
</a>
<a class="only-light" href="https://github.com/unifyai/memory#gh-light-mode-only">
<img class="only-dark" width="12.5%" style="padding-right: 4px; padding-bottom: 4px;" src="https://raw.githubusercontent.com/unifyai/unifyai.github.io/master/img/externally_linked/logos/ivy_memory.png#gh-light-mode-only">
</a>
<a class="only-dark" href="https://github.com/unifyai/builder#gh-dark-mode-only">
<img class="only-dark" width="12.5%" style="padding-right: 4px; padding-bottom: 4px;" src="https://raw.githubusercontent.com/unifyai/unifyai.github.io/master/img/externally_linked/logos/ivy_builder_dark.png#gh-dark-mode-only">
</a>
<a class="only-light" href="https://github.com/unifyai/builder#gh-light-mode-only">
<img class="only-dark" width="12.5%" style="padding-right: 4px; padding-bottom: 4px;" src="https://raw.githubusercontent.com/unifyai/unifyai.github.io/master/img/externally_linked/logos/ivy_builder.png#gh-light-mode-only">
</a>
<a class="only-dark" href="https://github.com/unifyai/models#gh-dark-mode-only">
<img class="only-dark" width="12.5%" style="padding-right: 4px; padding-bottom: 4px;" src="https://raw.githubusercontent.com/unifyai/unifyai.github.io/master/img/externally_linked/logos/ivy_models_dark.png#gh-dark-mode-only">
</a>
<a class="only-light" href="https://github.com/unifyai/models#gh-light-mode-only">
<img class="only-dark" width="12.5%" style="padding-right: 4px; padding-bottom: 4px;" src="https://raw.githubusercontent.com/unifyai/unifyai.github.io/master/img/externally_linked/logos/ivy_models.png#gh-light-mode-only">
</a>
</div>
<br clear="all" />
Expand Down Expand Up @@ -1399,7 +1399,7 @@ out = np_loss(p, t)
</blockquote>
</details>

<h3>I'm using Ivy&ensp;<img class="dark-light" style="height: 1.75em; vertical-align:-40%" src="https://raw.githubusercontent.com/unifyai/unifyai.github.io/master/img/externally_linked/ivy_logo_only_small.png"></h3>
<h3>I'm using Ivy&ensp;<img class="dark-light" style="height: 1.75em; vertical-align:-40%" src="https://raw.githubusercontent.com/unifyai/unifyai.github.io/master/img/logos/ivy_logo_only.svg"></h3>

Or you can use Ivy as a framework, breaking yourself (and your code)
free from deciding which community to support, allowing anyone to run
Expand Down
2 changes: 1 addition & 1 deletion docs/compiler/compiler.rst
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ From the graph, we can observe that:
b = ivy.array([[2., 3.]])
# New set of inputs
out = compiled_fn(x, y)
out = compiled_fn(a, b)
Eager vs lazy Compilation
~~~~~~~~~~~~~~~~~~~~~~~~~
Expand Down
2 changes: 1 addition & 1 deletion docs/overview/deep_dive/data_types.rst
Original file line number Diff line number Diff line change
Expand Up @@ -569,7 +569,7 @@ Example of Downcasting mode :
ivy.set_backend('torch')
try:
ret = ivy.expm1(ivy.array([1], dtype='float16')) # raises exception
ivy.upcast_data_types()
ivy.downcast_data_types()
ret = ivy.expm1(ivy.array([1], dtype='float16')) # doesn't raise exception
Expand Down
18 changes: 9 additions & 9 deletions docs/overview/deep_dive/operating_modes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -20,31 +20,31 @@ Operating Modes
Global Parameter Properties
---------------------------

There are a variety of global settings in ivy, each of which comes with: `ivy.<setting>` (getter), `ivy.set_<setting>` (setter), and `ivy.unset_<setting>` (unsetter).
There are a variety of global settings in ivy, each of which comes with: ``ivy.<setting>`` (getter), ``ivy.set_<setting>`` (setter), and ``ivy.unset_<setting>`` (unsetter).
Some of them are:

#. `array_significant_figures`_: Determines the number of significant figures to be shown when printing.
#. `array_decimal_values`_: Determines the number of decimal values to be shown when printing.
#. `warning_level`_: Determines the warning level to be shown when one occurs.
#. `nan_policy`_: Determines the policy of handling related to `nan`.
#. `nan_policy`_: Determines the policy of handling related to ``nan``.
#. `dynamic_backend`_: Determines if the global dynamic backend setting is active or not.
#. `precise_mode`_: Determines whether to use a promotion table that avoids any precision loss or a compute effecient table that avoids most wider-than-necessary promotions.
#. `array_mode`_: Determines the mode of whether to convert inputs to `ivy.NativeArray`, then convert the outputs back to `ivy.Array`.
#. `nestable_mode`_: Determines the mode of whether to check if function inputs are `ivy.Container`.
#. `array_mode`_: Determines the mode of whether to convert inputs to ``ivy.NativeArray``, then convert the outputs back to ``ivy.Array``.
#. `nestable_mode`_: Determines the mode of whether to check if function inputs are ``ivy.Container``.
#. `exception_trace_mode`_: Determines how much details of the ivy exception traces to be shown in the log.
#. `show_func_wrapper_trace_mode`_: Determines whether to show `func_wrapper` related traces in the log.
#. `show_func_wrapper_trace_mode`_: Determines whether to show ``func_wrapper`` related traces in the log.
#. `min_denominator`_: Determines the global global minimum denominator used by ivy for numerically stable division.
#. `min_base`_: Determines the global global minimum base used by ivy for numerically stablestable power raising.
#. `queue_timeout`_: Determines the timeout value (in seconds) for the global queue.
#. `tmp_dir`_: Determines the name for the temporary folder if it is used.
#. `shape_array_mode`_: Determines whether to return shape as `ivy.Array`.
#. `shape_array_mode`_: Determines whether to return shape as ``ivy.Array``.

Let's look into more details about getter and setter below!

Getter: `ivy.<setting>` attribute
Getter: ``ivy.<setting>`` attribute
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

`ivy.<setting>` is a read-only static attribute. It acts as a getter and it will change internally whenever its related setter is used.
``ivy.<setting>`` is a read-only static attribute. It acts as a getter and it will change internally whenever its related setter is used.

Should a user attempts to set the attribute directly, an error will be raised, suggesting them to change its value through the respective setter or unsetter.

Expand All @@ -58,7 +58,7 @@ Should a user attempts to set the attribute directly, an error will be raised, s
IvyException: Property: array_mode is read only! Please use the setter: set_array_mode() for setting its value!
Setter: `ivy.set_<setting>` and `ivy.unset_<setting>` functions
Setter: ``ivy.set_<setting>`` and ``ivy.unset_<setting>`` functions
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
In order to change the value of a property, setter functions must be used.
Expand Down
Loading

0 comments on commit e08cbfb

Please sign in to comment.