├── samples └── .gitkeep ├── archive_nbs ├── .gitkeep ├── single_profile.py ├── CollaboratoryFilteringGPU.ipynb └── TabularTrainingGPU.ipynb ├── docs ├── _data │ ├── terms.yml │ ├── glossary.yml │ ├── definitions.yml │ ├── tags.yml │ ├── topnav.yml │ ├── alerts.yml │ └── sidebars │ │ └── home_sidebar.yml ├── .gitignore ├── _layouts │ ├── none.html │ ├── page_print.html │ ├── default_print.html │ ├── page.html │ └── default.html ├── _includes │ ├── inline_image.html │ ├── callout.html │ ├── note.html │ ├── tip.html │ ├── important.html │ ├── warning.html │ ├── archive.html │ ├── image.html │ ├── search_google_custom.html │ ├── footer.html │ ├── google_analytics.html │ ├── toc.html │ ├── search_simple_jekyll.html │ ├── links.html │ ├── head_print.html │ ├── sidebar.html │ ├── topnav.html │ ├── initialize_shuffle.html │ └── head.html ├── images │ ├── favicon.ico │ ├── company_logo.png │ ├── doc_example.png │ ├── output_20_0.png │ ├── output_21_0.png │ ├── output_22_0.png │ ├── output_23_0.png │ ├── output_24_0.png │ ├── output_25_2.png │ ├── output_26_2.png │ ├── output_27_0.png │ ├── output_27_2.png │ ├── output_28_2.png │ ├── output_29_2.png │ ├── output_30_2.png │ ├── output_31_2.png │ ├── output_32_1.png │ ├── output_32_2.png │ ├── output_32_3.png │ ├── output_33_0.png │ ├── output_33_1.png │ ├── output_33_2.png │ ├── output_34_2.png │ ├── output_35_0.png │ ├── output_36_0.png │ ├── output_37_0.png │ ├── output_38_0.png │ ├── output_39_0.png │ ├── output_40_0.png │ ├── output_41_0.png │ ├── output_42_0.png │ ├── output_43_0.png │ ├── output_49_0.png │ ├── output_56_2.png │ ├── output_64_0.png │ ├── output_66_0.png │ ├── export_example.png │ ├── workflowarrow.png │ └── company_logo_big.png ├── fonts │ ├── FontAwesome.otf │ ├── fontawesome-webfont.eot │ ├── fontawesome-webfont.ttf │ ├── fontawesome-webfont.woff │ ├── glyphicons-halflings-regular.eot │ ├── glyphicons-halflings-regular.ttf │ ├── glyphicons-halflings-regular.woff │ └── glyphicons-halflings-regular.woff2 ├── css │ ├── fonts │ │ ├── FontAwesome.otf │ │ ├── fontawesome-webfont.eot │ │ ├── fontawesome-webfont.ttf │ │ ├── fontawesome-webfont.woff │ │ └── fontawesome-webfont.woff2 │ ├── boxshadowproperties.css │ ├── modern-business.css │ ├── theme-green.css │ ├── theme-blue.css │ ├── printstyles.css │ └── syntax.css ├── Gemfile ├── tooltips.json ├── sitemap.xml ├── sidebar.json ├── js │ ├── jquery.ba-throttle-debounce.min.js │ ├── customscripts.js │ ├── jquery.navgoco.min.js │ ├── toc.js │ └── jekyll-search.js ├── licenses │ ├── LICENSE │ └── LICENSE-BSD-NAVGOCO.txt ├── feed.xml ├── _config.yml ├── misc_utils.html ├── utils.html └── Gemfile.lock ├── fastai_xla_extensions ├── multi_core │ ├── __init__.py │ ├── callback.py │ ├── torch_compat.py │ ├── inference.py │ └── lr_find.py ├── __init__.py ├── dev_setup.py ├── all.py ├── misc_utils.py ├── utils.py ├── core.py ├── _nbdev.py └── cifar_loader.py ├── .github ├── FUNDING.yml └── workflows │ └── main.yml ├── MANIFEST.in ├── docker-compose.yml ├── Makefile ├── settings.ini ├── setup.py ├── .gitignore ├── CONTRIBUTING.md ├── nbs ├── 02b_misc_utils.ipynb ├── 01_utils.ipynb └── 99_dev_setup.ipynb └── LICENSE /samples/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /archive_nbs/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /docs/_data/terms.yml: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /docs/.gitignore: -------------------------------------------------------------------------------- 1 | _site/ 2 | -------------------------------------------------------------------------------- /docs/_data/glossary.yml: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /docs/_data/definitions.yml: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /fastai_xla_extensions/multi_core/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /docs/_layouts/none.html: -------------------------------------------------------------------------------- 1 | --- 2 | --- 3 | {{content}} -------------------------------------------------------------------------------- /fastai_xla_extensions/__init__.py: -------------------------------------------------------------------------------- 1 | __version__ = "0.0.12" 2 | -------------------------------------------------------------------------------- /docs/_data/tags.yml: -------------------------------------------------------------------------------- 1 | allowed-tags: 2 | - getting_started 3 | - navigation 4 | -------------------------------------------------------------------------------- /.github/FUNDING.yml: -------------------------------------------------------------------------------- 1 | # These are supported funding model platforms 2 | 3 | github: butchland 4 | -------------------------------------------------------------------------------- /docs/_includes/inline_image.html: -------------------------------------------------------------------------------- 1 | {{include.alt}} 2 | -------------------------------------------------------------------------------- /docs/images/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/butchland/fastai_xla_extensions/HEAD/docs/images/favicon.ico -------------------------------------------------------------------------------- /docs/fonts/FontAwesome.otf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/butchland/fastai_xla_extensions/HEAD/docs/fonts/FontAwesome.otf -------------------------------------------------------------------------------- /docs/images/company_logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/butchland/fastai_xla_extensions/HEAD/docs/images/company_logo.png -------------------------------------------------------------------------------- /docs/images/doc_example.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/butchland/fastai_xla_extensions/HEAD/docs/images/doc_example.png -------------------------------------------------------------------------------- /docs/images/output_20_0.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/butchland/fastai_xla_extensions/HEAD/docs/images/output_20_0.png -------------------------------------------------------------------------------- /docs/images/output_21_0.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/butchland/fastai_xla_extensions/HEAD/docs/images/output_21_0.png -------------------------------------------------------------------------------- /docs/images/output_22_0.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/butchland/fastai_xla_extensions/HEAD/docs/images/output_22_0.png -------------------------------------------------------------------------------- /docs/images/output_23_0.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/butchland/fastai_xla_extensions/HEAD/docs/images/output_23_0.png -------------------------------------------------------------------------------- /docs/images/output_24_0.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/butchland/fastai_xla_extensions/HEAD/docs/images/output_24_0.png -------------------------------------------------------------------------------- /docs/images/output_25_2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/butchland/fastai_xla_extensions/HEAD/docs/images/output_25_2.png -------------------------------------------------------------------------------- /docs/images/output_26_2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/butchland/fastai_xla_extensions/HEAD/docs/images/output_26_2.png -------------------------------------------------------------------------------- /docs/images/output_27_0.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/butchland/fastai_xla_extensions/HEAD/docs/images/output_27_0.png -------------------------------------------------------------------------------- /docs/images/output_27_2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/butchland/fastai_xla_extensions/HEAD/docs/images/output_27_2.png -------------------------------------------------------------------------------- /docs/images/output_28_2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/butchland/fastai_xla_extensions/HEAD/docs/images/output_28_2.png -------------------------------------------------------------------------------- /docs/images/output_29_2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/butchland/fastai_xla_extensions/HEAD/docs/images/output_29_2.png -------------------------------------------------------------------------------- /docs/images/output_30_2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/butchland/fastai_xla_extensions/HEAD/docs/images/output_30_2.png -------------------------------------------------------------------------------- /docs/images/output_31_2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/butchland/fastai_xla_extensions/HEAD/docs/images/output_31_2.png -------------------------------------------------------------------------------- /docs/images/output_32_1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/butchland/fastai_xla_extensions/HEAD/docs/images/output_32_1.png -------------------------------------------------------------------------------- /docs/images/output_32_2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/butchland/fastai_xla_extensions/HEAD/docs/images/output_32_2.png -------------------------------------------------------------------------------- /docs/images/output_32_3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/butchland/fastai_xla_extensions/HEAD/docs/images/output_32_3.png -------------------------------------------------------------------------------- /docs/images/output_33_0.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/butchland/fastai_xla_extensions/HEAD/docs/images/output_33_0.png -------------------------------------------------------------------------------- /docs/images/output_33_1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/butchland/fastai_xla_extensions/HEAD/docs/images/output_33_1.png -------------------------------------------------------------------------------- /docs/images/output_33_2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/butchland/fastai_xla_extensions/HEAD/docs/images/output_33_2.png -------------------------------------------------------------------------------- /docs/images/output_34_2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/butchland/fastai_xla_extensions/HEAD/docs/images/output_34_2.png -------------------------------------------------------------------------------- /docs/images/output_35_0.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/butchland/fastai_xla_extensions/HEAD/docs/images/output_35_0.png -------------------------------------------------------------------------------- /docs/images/output_36_0.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/butchland/fastai_xla_extensions/HEAD/docs/images/output_36_0.png -------------------------------------------------------------------------------- /docs/images/output_37_0.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/butchland/fastai_xla_extensions/HEAD/docs/images/output_37_0.png -------------------------------------------------------------------------------- /docs/images/output_38_0.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/butchland/fastai_xla_extensions/HEAD/docs/images/output_38_0.png -------------------------------------------------------------------------------- /docs/images/output_39_0.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/butchland/fastai_xla_extensions/HEAD/docs/images/output_39_0.png -------------------------------------------------------------------------------- /docs/images/output_40_0.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/butchland/fastai_xla_extensions/HEAD/docs/images/output_40_0.png -------------------------------------------------------------------------------- /docs/images/output_41_0.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/butchland/fastai_xla_extensions/HEAD/docs/images/output_41_0.png -------------------------------------------------------------------------------- /docs/images/output_42_0.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/butchland/fastai_xla_extensions/HEAD/docs/images/output_42_0.png -------------------------------------------------------------------------------- /docs/images/output_43_0.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/butchland/fastai_xla_extensions/HEAD/docs/images/output_43_0.png -------------------------------------------------------------------------------- /docs/images/output_49_0.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/butchland/fastai_xla_extensions/HEAD/docs/images/output_49_0.png -------------------------------------------------------------------------------- /docs/images/output_56_2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/butchland/fastai_xla_extensions/HEAD/docs/images/output_56_2.png -------------------------------------------------------------------------------- /docs/images/output_64_0.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/butchland/fastai_xla_extensions/HEAD/docs/images/output_64_0.png -------------------------------------------------------------------------------- /docs/images/output_66_0.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/butchland/fastai_xla_extensions/HEAD/docs/images/output_66_0.png -------------------------------------------------------------------------------- /docs/_includes/callout.html: -------------------------------------------------------------------------------- 1 |
{{include.content}}
2 | -------------------------------------------------------------------------------- /docs/css/fonts/FontAwesome.otf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/butchland/fastai_xla_extensions/HEAD/docs/css/fonts/FontAwesome.otf -------------------------------------------------------------------------------- /docs/images/export_example.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/butchland/fastai_xla_extensions/HEAD/docs/images/export_example.png -------------------------------------------------------------------------------- /docs/images/workflowarrow.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/butchland/fastai_xla_extensions/HEAD/docs/images/workflowarrow.png -------------------------------------------------------------------------------- /docs/images/company_logo_big.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/butchland/fastai_xla_extensions/HEAD/docs/images/company_logo_big.png -------------------------------------------------------------------------------- /docs/fonts/fontawesome-webfont.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/butchland/fastai_xla_extensions/HEAD/docs/fonts/fontawesome-webfont.eot -------------------------------------------------------------------------------- /docs/fonts/fontawesome-webfont.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/butchland/fastai_xla_extensions/HEAD/docs/fonts/fontawesome-webfont.ttf -------------------------------------------------------------------------------- /docs/fonts/fontawesome-webfont.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/butchland/fastai_xla_extensions/HEAD/docs/fonts/fontawesome-webfont.woff -------------------------------------------------------------------------------- /MANIFEST.in: -------------------------------------------------------------------------------- 1 | include settings.ini 2 | include LICENSE 3 | include CONTRIBUTING.md 4 | include README.md 5 | recursive-exclude * __pycache__ 6 | -------------------------------------------------------------------------------- /docs/css/fonts/fontawesome-webfont.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/butchland/fastai_xla_extensions/HEAD/docs/css/fonts/fontawesome-webfont.eot -------------------------------------------------------------------------------- /docs/css/fonts/fontawesome-webfont.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/butchland/fastai_xla_extensions/HEAD/docs/css/fonts/fontawesome-webfont.ttf -------------------------------------------------------------------------------- /docs/css/fonts/fontawesome-webfont.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/butchland/fastai_xla_extensions/HEAD/docs/css/fonts/fontawesome-webfont.woff -------------------------------------------------------------------------------- /docs/css/fonts/fontawesome-webfont.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/butchland/fastai_xla_extensions/HEAD/docs/css/fonts/fontawesome-webfont.woff2 -------------------------------------------------------------------------------- /docs/fonts/glyphicons-halflings-regular.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/butchland/fastai_xla_extensions/HEAD/docs/fonts/glyphicons-halflings-regular.eot -------------------------------------------------------------------------------- /docs/fonts/glyphicons-halflings-regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/butchland/fastai_xla_extensions/HEAD/docs/fonts/glyphicons-halflings-regular.ttf -------------------------------------------------------------------------------- /fastai_xla_extensions/dev_setup.py: -------------------------------------------------------------------------------- 1 | # AUTOGENERATED! DO NOT EDIT! File to edit: nbs/99_dev_setup.ipynb (unless otherwise specified). 2 | 3 | __all__ = [] -------------------------------------------------------------------------------- /docs/fonts/glyphicons-halflings-regular.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/butchland/fastai_xla_extensions/HEAD/docs/fonts/glyphicons-halflings-regular.woff -------------------------------------------------------------------------------- /docs/fonts/glyphicons-halflings-regular.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/butchland/fastai_xla_extensions/HEAD/docs/fonts/glyphicons-halflings-regular.woff2 -------------------------------------------------------------------------------- /docs/_includes/note.html: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /docs/_includes/tip.html: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /docs/_includes/important.html: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /docs/_includes/warning.html: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /docs/Gemfile: -------------------------------------------------------------------------------- 1 | source "https://rubygems.org" 2 | 3 | gem 'github-pages', group: :jekyll_plugins 4 | 5 | 6 | # Added at 2019-11-25 10:11:40 -0800 by jhoward: 7 | gem "jekyll", "~> 3.9" 8 | -------------------------------------------------------------------------------- /docs/_data/topnav.yml: -------------------------------------------------------------------------------- 1 | topnav: 2 | - title: Topnav 3 | items: 4 | - title: github 5 | external_url: https://github.com/butchland/fastai_xla_extensions/tree/master/ 6 | 7 | #Topnav dropdowns 8 | topnav_dropdowns: 9 | - title: Topnav dropdowns 10 | folders: -------------------------------------------------------------------------------- /docs/_includes/archive.html: -------------------------------------------------------------------------------- 1 | --- 2 | layout: default 3 | type: archive 4 | --- 5 | 6 |
7 |

{{ page.title }}

8 |
9 |
10 | 11 | {{ content }} 12 |
13 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /fastai_xla_extensions/all.py: -------------------------------------------------------------------------------- 1 | from .utils import * 2 | from .misc_utils import * 3 | from .multi_core.base import * 4 | from .multi_core.torch_compat import * 5 | from .multi_core.learner import * 6 | from .multi_core.callback import * 7 | from .multi_core.lr_find import * 8 | from .multi_core.inference import * 9 | 10 | 11 | -------------------------------------------------------------------------------- /docs/tooltips.json: -------------------------------------------------------------------------------- 1 | --- 2 | layout: null 3 | search: exclude 4 | --- 5 | 6 | { 7 | "entries": 8 | [ 9 | {% for page in site.tooltips %} 10 | { 11 | "doc_id": "{{ page.doc_id }}", 12 | "body": "{{ page.content | strip_newlines | replace: '\', '\\\\' | replace: '"', '\\"' }}" 13 | } {% unless forloop.last %},{% endunless %} 14 | {% endfor %} 15 | ] 16 | } 17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /docker-compose.yml: -------------------------------------------------------------------------------- 1 | version: "3" 2 | services: 3 | 4 | butch-jekyll-run: 5 | working_dir: /data 6 | image: fastpages-jekyll-butch-run 7 | restart: unless-stopped 8 | ports: 9 | - "4000:4000" 10 | volumes: 11 | - ./docs:/data/ 12 | command: > 13 | bash -c "jekyll serve --trace --strict_front_matter" 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | -------------------------------------------------------------------------------- /docs/_includes/image.html: -------------------------------------------------------------------------------- 1 |
{% if {{include.url}} %}{% endif %}{{include.alt}}{% if {{include.url}} %}{% endif %}{% if {{include.caption}} %}
{{include.caption}}
{% endif %}
2 | -------------------------------------------------------------------------------- /docs/_layouts/page_print.html: -------------------------------------------------------------------------------- 1 | --- 2 | layout: default_print 3 | comments: true 4 | --- 5 |
6 |

{{ page.title }}

7 |
8 | 9 |
10 | 11 | {% if page.summary %} 12 |
{{page.summary}}
13 | {% endif %} 14 | {{ content }} 15 |
16 | -------------------------------------------------------------------------------- /docs/_includes/search_google_custom.html: -------------------------------------------------------------------------------- 1 | 12 | 13 |
14 | 15 |
16 | 17 | -------------------------------------------------------------------------------- /docs/_includes/footer.html: -------------------------------------------------------------------------------- 1 | 10 | -------------------------------------------------------------------------------- /docs/_layouts/default_print.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | {% include head_print.html %} 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 |
14 | 15 |
16 | 17 | {{content}} 18 |
19 | 20 |
21 | 22 | 23 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /docs/_includes/google_analytics.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | {% if site.google_analytics %} 4 | 5 | 6 | {% endif %} -------------------------------------------------------------------------------- /docs/sitemap.xml: -------------------------------------------------------------------------------- 1 | --- 2 | layout: none 3 | search: exclude 4 | --- 5 | 6 | 7 | 8 | {% for post in site.posts %} 9 | {% unless post.search == "exclude" %} 10 | 11 | {{site.url}}{{post.url}} 12 | 13 | {% endunless %} 14 | {% endfor %} 15 | 16 | 17 | {% for page in site.pages %} 18 | {% unless page.search == "exclude" %} 19 | 20 | {{site.url}}{{ page.url}} 21 | 22 | {% endunless %} 23 | {% endfor %} 24 | -------------------------------------------------------------------------------- /docs/css/boxshadowproperties.css: -------------------------------------------------------------------------------- 1 | /* box-shadow fonts return errors with prince, so extracting here to put in web output only */ 2 | 3 | #search-demo-container ul#results-container { 4 | box-shadow: 2px 3px 2px #dedede; 5 | } 6 | 7 | 8 | hr.shaded { 9 | box-shadow: inset 0 6px 6px -6px rgba(0,0,0,0.5); 10 | } 11 | 12 | .videoThumbs img { 13 | box-shadow: 2px 2px 1px #f0f0f0; 14 | } 15 | 16 | .box { 17 | box-shadow: 2px 2px 4px #dedede; 18 | } 19 | 20 | @media (max-width: 1200px) { 21 | .navbar-collapse { 22 | box-shadow: inset 0 1px 0 rgba(255,255,255,0.1); 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /docs/sidebar.json: -------------------------------------------------------------------------------- 1 | { 2 | "fastai_xla_extensions": { 3 | "Overview": "/", 4 | "Core XLA extensions": "core", 5 | "Utils": "utils", 6 | "CIFAR Loader": "cifar_loader", 7 | "Miscellaneous Utilities": "misc_utils", 8 | "Multi Core XLA Base ": "multi_core.base", 9 | "Torch Compatible Utilities": "multi_core.torch_compat", 10 | "Multi Core XLA Learner extensions": "multi_core.learner", 11 | "Multi Core Callback XLA Extensions": "multi_core.callback", 12 | "Multi Core LR Find XLA Extensions": "multi_core.lr_find", 13 | "Multi Core XLA Inference ": "multi_core.inference", 14 | "Development Setup": "dev_setup" 15 | } 16 | } -------------------------------------------------------------------------------- /Makefile: -------------------------------------------------------------------------------- 1 | SRC = $(wildcard nbs/*.ipynb) 2 | 3 | all: fastai_xla_extensions docs 4 | 5 | fastai_xla_extensions: $(SRC) 6 | nbdev_build_lib 7 | touch fastai_xla_extensions 8 | 9 | docs_serve: docs 10 | cd docs && bundle exec jekyll serve 11 | 12 | butch-run: .FORCE 13 | docker-compose down --remove-orphans || true; 14 | docker-compose up butch-jekyll-run 15 | docs: $(SRC) 16 | nbdev_build_docs 17 | touch docs 18 | 19 | test: 20 | nbdev_test_nbs 21 | 22 | release: pypi 23 | nbdev_bump_version 24 | 25 | pypi: dist 26 | twine upload --repository pypi dist/* 27 | 28 | dist: clean 29 | python setup.py sdist bdist_wheel 30 | 31 | clean: 32 | rm -rf dist 33 | 34 | .FORCE: -------------------------------------------------------------------------------- /docs/js/jquery.ba-throttle-debounce.min.js: -------------------------------------------------------------------------------- 1 | /* 2 | * jQuery throttle / debounce - v1.1 - 3/7/2010 3 | * http://benalman.com/projects/jquery-throttle-debounce-plugin/ 4 | * 5 | * Copyright (c) 2010 "Cowboy" Ben Alman 6 | * Dual licensed under the MIT and GPL licenses. 7 | * http://benalman.com/about/license/ 8 | */ 9 | (function(b,c){var $=b.jQuery||b.Cowboy||(b.Cowboy={}),a;$.throttle=a=function(e,f,j,i){var h,d=0;if(typeof f!=="boolean"){i=j;j=f;f=c}function g(){var o=this,m=+new Date()-d,n=arguments;function l(){d=+new Date();j.apply(o,n)}function k(){h=c}if(i&&!h){l()}h&&clearTimeout(h);if(i===c&&m>e){l()}else{if(f!==true){h=setTimeout(i?k:l,i===c?e-m:e)}}}if($.guid){g.guid=j.guid=j.guid||$.guid++}return g};$.debounce=function(d,e,f){return f===c?a(d,e,false):a(d,f,e!==false)}})(this); -------------------------------------------------------------------------------- /docs/_includes/toc.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 20 | 21 |
22 | -------------------------------------------------------------------------------- /docs/_includes/search_simple_jekyll.html: -------------------------------------------------------------------------------- 1 |
2 | 3 | 4 |
5 | 6 | 17 | -------------------------------------------------------------------------------- /settings.ini: -------------------------------------------------------------------------------- 1 | [DEFAULT] 2 | host = github 3 | lib_name = fastai_xla_extensions 4 | user = butchland 5 | description = A library to extend fastai to run on TPUs using pytorch-xla 6 | keywords = fastai pytorch pytorch-xla tpu 7 | author = Butch Landingin 8 | author_email = butchland@gmail.com 9 | copyright = Butch Landingin 10 | branch = master 11 | version = 0.0.12 12 | min_python = 3.6 13 | audience = Developers 14 | language = English 15 | custom_sidebar = False 16 | license = apache2 17 | status = 2 18 | requirements = fastai==2.3.0 19 | nbs_path = nbs 20 | doc_path = docs 21 | doc_host = https://butchland.github.io 22 | doc_baseurl = /fastai_xla_extensions/ 23 | git_url = https://github.com/butchland/fastai_xla_extensions/tree/master/ 24 | lib_path = fastai_xla_extensions 25 | title = fastai_xla_extensions 26 | tst_flags = colab|ci|local 27 | 28 | -------------------------------------------------------------------------------- /.github/workflows/main.yml: -------------------------------------------------------------------------------- 1 | name: CI 2 | on: [push, pull_request] 3 | jobs: 4 | build: 5 | runs-on: ubuntu-latest 6 | steps: 7 | - uses: actions/checkout@v1 8 | - uses: actions/setup-python@v1 9 | with: 10 | python-version: '3.6' 11 | architecture: 'x64' 12 | - name: Install the library 13 | run: | 14 | pip install nbdev jupyter 15 | pip install -e . 16 | - name: Install git hooks 17 | run: | 18 | nbdev_install_git_hooks 19 | - name: Read all notebooks 20 | run: | 21 | nbdev_read_nbs 22 | - name: Check if there is no diff library/notebooks 23 | run: | 24 | if [ -n "$(nbdev_diff_nbs)" ]; then echo -e "!!! Detected difference between the notebooks and the library"; false; fi 25 | - name: Run tests 26 | run: | 27 | nbdev_test_nbs --flags local 28 | -------------------------------------------------------------------------------- /fastai_xla_extensions/misc_utils.py: -------------------------------------------------------------------------------- 1 | # AUTOGENERATED! DO NOT EDIT! File to edit: nbs/02b_misc_utils.ipynb (unless otherwise specified). 2 | 3 | __all__ = [] 4 | 5 | # Cell 6 | from fastai.optimizer import _BaseOptimizer 7 | from fastcore.basics import patch 8 | 9 | @patch 10 | def __getstate__(self:_BaseOptimizer): 11 | "Pickling opt state should include `param_groups` and `defaults` " 12 | d = { 13 | 'state': self.state_dict(), 14 | 'param_groups': self.param_groups, 15 | } 16 | if hasattr(self,'defaults'): 17 | d['defaults'] = self.defaults 18 | return d 19 | 20 | @patch 21 | def __setstate__(self:_BaseOptimizer, data): 22 | "Pickling opt state should include `param_groups` and `defaults` " 23 | 24 | if 'defaults' in data: 25 | self.defaults = data['defaults'] 26 | self.load_state_dict(data['state']) 27 | self.param_groups = data['param_groups'] -------------------------------------------------------------------------------- /docs/_data/alerts.yml: -------------------------------------------------------------------------------- 1 | tip: '