pytorch/tools
Lu Fang d73e6cb59d Automatic update of fbcode/onnx to 4c091e048ca42682d63ccd3c1811560bc12b732d (#17264)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/17264

Previous import was 822d8df0a2a32233c6022f50a158817a0f19bdc7

Included changes:
- **[4c091e0](https://github.com/onnx/onnx/commit/4c091e0)**: Support defined ONNX_ML in parent cmake files (#1821) <Lu Fang>
- **[57372f3](https://github.com/onnx/onnx/commit/57372f3)**: Delete OpsetVersionConverter.md which is a duplicate of VersionConverter.md (#1818) <Prasanth Pulavarthi>
- **[ab1c57e](https://github.com/onnx/onnx/commit/ab1c57e)**: [ONNXIFI]Add extension to be implementable (#1796) <Rui Zhu>
- **[b92eee8](https://github.com/onnx/onnx/commit/b92eee8)**: Revert "Implement Op Annotation's for ONNX (#1648)" (#1812) <Ke Zhang>
- **[61f1e9e](https://github.com/onnx/onnx/commit/61f1e9e)**: Enable ONNX_ML by default (#1810) <Shinichiro Hamaji>
- **[4f064a1](https://github.com/onnx/onnx/commit/4f064a1)**: fix Greater and Less doc (#1811) <Guoliang Hua>
- **[0628582](https://github.com/onnx/onnx/commit/0628582)**: Implement Op Annotation's for ONNX (#1648) <Armen>
- **[ad9d2f7](https://github.com/onnx/onnx/commit/ad9d2f7)**: Versioning doc update for Opset 9 (#1805) <Vinitra Swamy>
- **[e71e3be](https://github.com/onnx/onnx/commit/e71e3be)**: add dilation case for ConvTranspose op (#1797) <Randy>

Reviewed By: yinghai

Differential Revision: D14135024

fbshipit-source-id: 1e4f9dda89abf48994798d080dd5d58207a6e4b6
2019-02-19 14:54:34 -08:00
..
amd_build Remove static_cast insertion/kernel argument extration. (#17055) 2019-02-15 01:54:31 -08:00
autograd Make tril_ and triu_ actually in-place (#17031) 2019-02-19 14:47:17 -08:00
cwrap Get rid of unused THPStorage defines related to accreal. 2019-02-12 12:48:48 -08:00
docker clean up runtime dockerfile, use cuda 9 package (#7230) 2018-05-02 23:54:05 -07:00
jit Support named tuple return from operators on JIT (#16253) 2019-02-10 18:15:56 -08:00
nnwrap try to get rid of tmp_install (#16414) 2019-01-29 17:29:40 -08:00
pyi Rename IntList to IntArrayRef. (#16751) 2019-02-05 14:54:34 -08:00
setup_helpers try to get rid of tmp_install (#16414) 2019-01-29 17:29:40 -08:00
shared Fixes #6386, Use copies instead of symbolic files (#6396) 2018-04-09 13:54:10 -04:00
__init__.py python 2 support 2016-06-08 19:14:57 -04:00
aten_mirror.sh Temporarily remove TBB (#8255) 2018-06-18 19:31:57 -04:00
build_libtorch.py Remove bash from build (#16289) 2019-01-25 16:03:53 -08:00
build_pytorch_libs.py Automatic update of fbcode/onnx to 4c091e048ca42682d63ccd3c1811560bc12b732d (#17264) 2019-02-19 14:54:34 -08:00
build_variables.py Lightweight String check Utility (#16858) 2019-02-19 12:31:57 -08:00
clang_format.py Add min/max on numbers to JIT 2019-01-02 20:10:38 -08:00
clang_tidy.py fix clang-tidy script for python 3 2018-12-18 15:06:14 -08:00
download_mnist.py Update C++ API tests to use Catch2 (#7108) 2018-04-30 21:36:35 -04:00
flake8_hook.py flake8 hook fix (#15693) 2019-01-03 13:55:20 -08:00
generated_dirs.txt Add simple scripts for checking if generated code changed. (#12835) 2018-10-22 07:33:32 -07:00
git_add_generated_dirs.sh Add simple scripts for checking if generated code changed. (#12835) 2018-10-22 07:33:32 -07:00
git_reset_generated_dirs.sh Add simple scripts for checking if generated code changed. (#12835) 2018-10-22 07:33:32 -07:00
git-pre-commit flake8 hook fix (#15693) 2019-01-03 13:55:20 -08:00
pytorch.version move flags to c10 (#12144) 2018-10-04 02:09:56 -07:00
README.md Unify build_caffe2_amd.py and build_pytorch_amd.py (#14769) 2018-12-05 09:26:12 -08:00
run-clang-tidy-in-ci.sh Implement NetDef <--> JIT IR converters. Try 2. (#17123) 2019-02-15 20:39:30 -08:00

This folder contains a number of scripts which are used as part of the PyTorch build process. This directory also doubles as a Python module hierarchy (thus the __init__.py).

Overview

Modern infrastructure:

  • autograd - Code generation for autograd. This includes definitions of all our derivatives.
  • jit - Code generation for JIT
  • shared - Generic infrastructure that scripts in tools may find useful.
    • module_loader.py - Makes it easier to import arbitrary Python files in a script, without having to add them to the PYTHONPATH first.

Legacy infrastructure (we should kill this):

  • nnwrap - Generates the THNN/THCUNN wrappers which make legacy functionality available. (TODO: What exactly does this implement?)
  • cwrap - Implementation of legacy code generation for THNN/THCUNN. This is used by nnwrap.

Build system pieces:

  • setup_helpers - Helper code for searching for third-party dependencies on the user system.
  • build_pytorch_libs.sh - Script that builds all of the constituent libraries of PyTorch, but not the PyTorch Python extension itself. We are working on eliminating this script in favor of a unified cmake build.
  • build_pytorch_libs.bat - Same as above, but for Windows.
  • build_libtorch.py - Script for building libtorch, a standalone C++ library without Python support. This build script is tested in CI.

Developer tools which you might find useful:

Important if you want to run on AMD GPU:

  • amd_build - HIPify scripts, for transpiling CUDA into AMD HIP. Right now, PyTorch and Caffe2 share logic for how to do this transpilation, but have separate entry-points for transpiling either PyTorch or Caffe2 code.
    • build_amd.py - Top-level entry point for HIPifying our codebase.

Tools which are only situationally useful: