1# READ THIS BEFORE YOU REFACTOR ME
2#
3# setup.py uses the list of patterns in this file to decide
4# what to delete, but it's not 100% sound.  So, for example,
5# if you delete aten/build/ because it's redundant with build/,
6# aten/build/ will stop being cleaned.  So be careful when
7# refactoring this file!
8
9## PyTorch
10
11.coverage
12coverage.xml
13.dmypy.json
14.gradle
15.hypothesis
16.mypy_cache
17.additional_ci_files
18/.extracted_scripts/
19**/.pytorch_specified_test_cases.csv
20**/.pytorch-disabled-tests.json
21*/*.pyc
22*/*.so*
23*/**/__pycache__
24*/**/*.dylib*
25*/**/*.pyc
26*/**/*.pyd
27*/**/*.so*
28*/**/**/*.pyc
29*/**/**/**/*.pyc
30*/**/**/**/**/*.pyc
31aten/build/
32aten/src/ATen/Config.h
33aten/src/ATen/cuda/CUDAConfig.h
34benchmarks/.data
35caffe2/cpp_test/
36dist/
37docs/build/
38docs/cpp/src
39docs/src/**/*
40docs/cpp/build
41docs/cpp/source/api
42docs/cpp/source/html/
43docs/cpp/source/latex/
44docs/source/compile/generated/
45docs/source/generated/
46docs/source/compile/generated/
47log
48usage_log.txt
49test-reports/
50test/*.bak
51test/**/*.bak
52test/.coverage
53test/.hypothesis/
54test/cpp/api/mnist
55test/custom_operator/model.pt
56test/debug/
57test/jit_hooks/*.pt
58test/data/legacy_modules.t7
59test/data/*.pt
60test/forward_backward_compatibility/nightly_schemas.txt
61dropout_model.pt
62test/generated_type_hints_smoketest.py
63test/htmlcov
64test/cpp_extensions/install/
65third_party/build/
66tools/coverage_plugins_package/pip-wheel-metadata/
67tools/shared/_utils_internal.py
68tools/fast_nvcc/wrap_nvcc.sh
69tools/fast_nvcc/wrap_nvcc.bat
70tools/fast_nvcc/tmp/
71torch.egg-info/
72torch/_C/__init__.pyi
73torch/_C/_nn.pyi
74torch/_C/_VariableFunctions.pyi
75torch/_VF.pyi
76torch/return_types.pyi
77torch/nn/functional.pyi
78torch/utils/data/datapipes/datapipe.pyi
79torch/csrc/autograd/generated/*
80torch/csrc/lazy/generated/*.[!m]*
81torch_compile_debug/
82# Listed manually because some files in this directory are not generated
83torch/testing/_internal/generated/annotated_fn_args.py
84torch/testing/_internal/data/*.pt
85torch/csrc/api/include/torch/version.h
86torch/csrc/cudnn/cuDNN.cpp
87torch/csrc/generated
88torch/csrc/generic/TensorMethods.cpp
89torch/csrc/inductor/aoti_torch/generated/*.cpp
90torch/csrc/jit/generated/*
91torch/csrc/jit/fuser/config.h
92torch/csrc/nn/THCUNN.cpp
93torch/csrc/nn/THCUNN.cwrap
94torch/bin/
95torch/cmake/
96torch/lib/*.a*
97torch/lib/*.dll*
98torch/lib/*.exe*
99torch/lib/*.dylib*
100torch/lib/*.h
101torch/lib/*.lib
102torch/lib/*.pdb
103torch/lib/*.so*
104torch/lib/protobuf*.pc
105torch/lib/build
106torch/lib/caffe2/
107torch/lib/cmake
108torch/lib/include
109torch/lib/pkgconfig
110torch/lib/protoc
111torch/lib/protobuf/
112torch/lib/tmp_install
113torch/lib/torch_shm_manager
114torch/lib/site-packages/
115torch/lib/python*
116torch/lib64
117torch/include/
118torch/share/
119torch/test/
120torch/utils/benchmark/utils/valgrind_wrapper/callgrind.h
121torch/utils/benchmark/utils/valgrind_wrapper/valgrind.h
122torch/version.py
123minifier_launcher.py
124# Root level file used in CI to specify certain env configs.
125# E.g., see .circleci/config.yaml
126env
127.circleci/scripts/COMMIT_MSG
128scripts/release_notes/*.json
129sccache-stats*.json
130lint.json
131merge_record.json
132
133# These files get copied over on invoking setup.py
134torchgen/packaged/*
135!torchgen/packaged/README.md
136
137# IPython notebook checkpoints
138.ipynb_checkpoints
139
140# Editor temporaries
141*.swa
142*.swb
143*.swc
144*.swd
145*.swe
146*.swf
147*.swg
148*.swh
149*.swi
150*.swj
151*.swk
152*.swl
153*.swm
154*.swn
155*.swo
156*.swp
157*~
158.~lock.*
159
160# macOS dir files
161.DS_Store
162
163# Ninja files
164.ninja_deps
165.ninja_log
166compile_commands.json
167*.egg-info/
168docs/source/scripts/activation_images/
169docs/source/scripts/quantization_backend_configs/
170
171## General
172
173# Compiled Object files
174*.slo
175*.lo
176*.o
177*.cuo
178*.obj
179
180# Compiled Dynamic libraries
181*.so
182*.dylib
183*.dll
184
185# Compiled Static libraries
186*.lai
187*.la
188*.a
189*.lib
190
191# Compiled protocol buffers
192*.pb.h
193*.pb.cc
194*_pb2.py
195
196# Compiled python
197*.pyc
198*.pyd
199
200# Compiled MATLAB
201*.mex*
202
203# IPython notebook checkpoints
204.ipynb_checkpoints
205
206# Editor temporaries
207*.swn
208*.swo
209*.swp
210*~
211
212# NFS handle files
213**/.nfs*
214
215# Sublime Text settings
216*.sublime-workspace
217*.sublime-project
218
219# Eclipse Project settings
220*.*project
221.settings
222
223# QtCreator files
224*.user
225
226# PyCharm files
227.idea
228
229# GDB history
230.gdb_history
231
232## Caffe2
233
234# build, distribute, and bins (+ python proto bindings)
235build/
236# Allow tools/build/ for build support.
237!tools/build/
238build_host_protoc
239build_android
240build_ios
241.build_debug/*
242.build_release/*
243.build_profile/*
244distribute/*
245*.testbin
246*.bin
247cmake_build
248.cmake_build
249gen
250.setuptools-cmake-build
251.pytest_cache
252aten/build/*
253
254# Bram
255plsdontbreak
256
257# Generated documentation
258docs/_site
259docs/gathered
260_site
261doxygen
262docs/dev
263
264# LevelDB files
265*.sst
266*.ldb
267LOCK
268CURRENT
269MANIFEST-*
270
271# generated version file
272caffe2/version.py
273
274# setup.py intermediates
275.eggs
276caffe2.egg-info
277MANIFEST
278
279# Atom/Watchman required file
280.watchmanconfig
281.watchman
282
283# Files generated by CLion
284cmake-build-debug
285
286# BEGIN NOT-CLEAN-FILES (setup.py handles this marker. Do not change.)
287#
288# Below files are not deleted by "setup.py clean".
289
290# Downloaded bazel
291tools/bazel
292
293# Visual Studio Code files
294.vs
295/.vscode/*
296!/.vscode/extensions.json
297!/.vscode/settings_recommended.json
298
299# YouCompleteMe config file
300.ycm_extra_conf.py
301
302# Files generated when a patch is rejected
303*.orig
304*.rej
305
306# Files generated by ctags
307CTAGS
308GTAGS
309GRTAGS
310GSYMS
311GPATH
312tags
313TAGS
314
315
316# ccls file
317.ccls-cache/
318
319# clang tooling storage location
320.clang-format-bin
321.clang-tidy-bin
322.lintbin
323
324# clangd background index
325.clangd/
326.cache/
327
328# bazel symlinks
329bazel-*
330
331# xla repo
332xla/
333
334# direnv, posh-direnv
335.env
336.envrc
337.psenvrc
338
339# generated shellcheck directories
340.shellcheck_generated*/
341
342# zip archives
343*.zip
344
345# core dump files
346**/core.[1-9]*
347
348# Generated if you use the pre-commit script for clang-tidy
349pr.diff
350
351# coverage files
352*/**/.coverage.*
353
354# buck generated files
355.buckd/
356.lsp-buck-out/
357.lsp.buckd/
358buck-out/
359
360# Downloaded libraries
361third_party/ruy/
362third_party/glog/
363
364# Virtualenv
365venv/
366
367# Log files
368*.log
369sweep/
370
371# Android build artifacts
372android/pytorch_android/.cxx
373android/pytorch_android_torchvision/.cxx
374
375# Pyre configs (for internal usage)
376.pyre_configuration
377.pyre_configuration.codenav
378.arcconfig
379.stable_pyre_client
380.pyre_client
381