pytorch/test
Taylor Robie 24bc3be146 [Profiler] Clean up profiler includes. (#69421)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/69421

I've hit a lot of build issues in D32671972, and I've come to realize that a lot of it boils down to header hygene. `function.h` includes `profiler.h` *solely* to transitively include `record_function.h` which winds up leaking the profiler symbols. Moreover several files are relying on transitive includes to get access to `getTime`. As long as I have to touch all the places that use `getTime`, I may as well also move them to the new namespace.

Test Plan: Unit tests and CI.

Reviewed By: aaronenyeshi, albanD

Differential Revision: D32865907

fbshipit-source-id: f87d6fd5afb784dca2146436e72c69e34623020e
2021-12-15 12:50:24 -08:00
..
ao/sparsity [sparsity] Convert function for sparse kernels without a context manager (#66778) 2021-12-09 02:58:57 -08:00
autograd
backward_compatibility Porting index_add to structured kernels, add an out variant (#65993) 2021-12-14 11:57:13 -08:00
benchmark_utils Add lint to ensure all test files have headers with ownership info (#66826) 2021-11-03 18:21:49 -07:00
bottleneck_test Set test owners for tests with unknown owners (#67552) 2021-10-29 12:42:01 -07:00
cpp [Profiler] Clean up profiler includes. (#69421) 2021-12-15 12:50:24 -08:00
cpp_api_parity
cpp_extensions Resubmit #67161 (#67735) 2021-11-04 09:59:30 -07:00
custom_backend [PyTorch] Adopt IValue::toTupleRef() where obvious (#65505) 2021-11-02 10:22:18 -07:00
custom_operator Set test owners for tests with unknown owners (#67552) 2021-10-29 12:42:01 -07:00
distributed [shard] add ShardedOptimizer (#68607) 2021-12-14 12:15:20 -08:00
distributions Add formulas for distributions (#69690) 2021-12-14 23:35:07 -08:00
error_messages
expect Fixed type checking errors in node.py (#68124) 2021-12-03 12:03:49 -08:00
fx [const_fold] Fix call_module const folding (#68614) 2021-11-18 20:56:06 -08:00
fx2trt Revert D33024528: [quant][fx][graphmode] Add support for conv add pattern in backend_config_dict 2021-12-15 05:45:29 -08:00
fx_acc [fx2trt] Add torch.nn.function.pad support for fx2trt (#67498) 2021-11-03 10:21:08 -07:00
jit Add test operator in upgrader entry (#69427) 2021-12-15 00:40:05 -08:00
jit_hooks
mobile [Operator Versioning][Edge] Add old models and unittest (#67726) 2021-12-01 18:46:30 -08:00
onnx [ONNX] Add BFloat16 type support when export to ONNX (#66788) 2021-12-14 12:23:32 -08:00
package [package] fix torchscript classes in package (#68028) 2021-11-16 10:01:40 -08:00
quantization Revert D32974907: [quant][graphmode][fx] Enable fuse handler for sequence of 3 ops 2021-12-15 05:46:49 -08:00
scripts
test_img
typing
delete.py
HowToWriteTestsUsingFileCheck.md
linear.py
run_test.py Revert D32498569: allow external backend codegen to toggle whether to generate out= and inplace kernels 2021-12-14 15:27:24 -08:00
simulate_nccl_errors.py
test_ao_sparsity.py [sparsity] Fix and enable the pruning tests (#66411) 2021-11-22 15:28:12 -08:00
test_autocast.py Set test owners for tests with unknown owners (#67552) 2021-10-29 12:42:01 -07:00
test_autograd.py Add forward AD layout check for storage numel (#68631) 2021-12-14 04:34:25 -08:00
test_binary_ufuncs.py Skips failing ROCm test (#69456) 2021-12-06 09:12:31 -08:00
test_bundled_images.py Add ownership to more edge tests (#67859) 2021-11-05 11:01:16 -07:00
test_bundled_inputs.py Add lint to ensure all test files have headers with ownership info (#66826) 2021-11-03 18:21:49 -07:00
test_complex.py
test_cpp_api_parity.py
test_cpp_extensions_aot.py Resubmit #67161 (#67735) 2021-11-04 09:59:30 -07:00
test_cpp_extensions_jit.py Remove remaining THC code (#69039) 2021-12-08 12:18:08 -08:00
test_cuda.py Fixes mem_get_info when querying on a device other than the current device (#69640) 2021-12-08 23:04:30 -08:00
test_cuda_primary_ctx.py
test_dataloader.py [DataPipe] Control shuffle settings from DataLoader2 (#65756) 2021-12-14 07:35:26 -08:00
test_datapipe.py [DataPipe] Control shuffle settings from DataLoader2 (#65756) 2021-12-14 07:35:26 -08:00
test_deploy.py
test_determination.py
test_dispatch.py
test_foreach.py Fix device type / dtype handling for parametrized test names (#65217) 2021-11-29 19:02:23 -08:00
test_function_schema.py Set test owners for tests with unknown owners (#67552) 2021-10-29 12:42:01 -07:00
test_functional_autograd_benchmark.py
test_functional_optim.py
test_functionalization.py functionalization: update is_aliased() logic (#68881) 2021-12-02 09:19:12 -08:00
test_futures.py Set test owners for tests with unknown owners (#67552) 2021-10-29 12:42:01 -07:00
test_fx.py OpInfos for: normal, bernoulli, multinomial (#66358) 2021-12-14 06:59:38 -08:00
test_fx_experimental.py OpInfos for: normal, bernoulli, multinomial (#66358) 2021-12-14 06:59:38 -08:00
test_gen_backend_stubs.py Revert D32498569: allow external backend codegen to toggle whether to generate out= and inplace kernels 2021-12-14 15:27:24 -08:00
test_import_stats.py
test_indexing.py Fixes CUDA vs CPU consistency for index_put_ when accumulating (part 2) (#67189) 2021-11-08 17:56:43 -08:00
test_jit.py [JIT] Enable freezing for sparse COO tensors (#69614) 2021-12-14 15:43:50 -08:00
test_jit_autocast.py [JIT] additional support for CallMethod with autocasting (#67925) 2021-11-08 14:37:09 -08:00
test_jit_cuda_fuser.py fixing removeProfilingNodes duplicated functions (#1282) (#68804) 2021-12-13 22:54:30 -08:00
test_jit_disabled.py
test_jit_fuser.py skip test_jit_legacy (#68129) 2021-11-10 23:08:32 -08:00
test_jit_fuser_legacy.py
test_jit_fuser_te.py [TensorExpr] Supress TracerWarnings in test_unsupported in test_jit_fuser_te.py. (#68757) 2021-11-30 00:06:36 -08:00
test_jit_legacy.py
test_jit_profiling.py
test_jit_simple.py
test_jit_string.py
test_kernel_launch_checks.py Set test owners for tests with unknown owners (#67552) 2021-10-29 12:42:01 -07:00
test_license.py Set test owners for tests with unknown owners (#67552) 2021-10-29 12:42:01 -07:00
test_linalg.py [Linalg] Add a runtime switch to let pytorch prefer a backend impl in linalg functions on GPU (#67980) 2021-12-03 19:06:30 -08:00
test_logging.py Set test owners for tests with unknown owners (#67552) 2021-10-29 12:42:01 -07:00
test_masked.py Strided masked var. (#68738) 2021-12-01 19:19:37 -08:00
test_metal.py
test_mkldnn.py Avoid the view for mkldnn case in 1D convolution (#68166) 2021-11-15 11:56:45 -08:00
test_mobile_optimizer.py
test_model_dump.py Add ownership to more edge tests (#67859) 2021-11-05 11:01:16 -07:00
test_module_init.py [quant][embedding qat] eager mode QAT for Embeddings (#66429) 2021-11-18 05:57:11 -08:00
test_modules.py [nn] mha : no-batch-dim support (python) (#67176) 2021-12-14 13:21:21 -08:00
test_multiprocessing.py
test_multiprocessing_spawn.py
test_namedtensor.py
test_namedtuple_return_api.py expose return_types in Python (#66614) 2021-12-06 09:05:29 -08:00
test_native_functions.py Set test owners for tests with unknown owners (#67552) 2021-10-29 12:42:01 -07:00
test_nn.py [nn] mha : no-batch-dim support (python) (#67176) 2021-12-14 13:21:21 -08:00
test_nnapi.py Add ownership to more edge tests (#67859) 2021-11-05 11:01:16 -07:00
test_numba_integration.py Set test owners for tests with unknown owners (#67552) 2021-10-29 12:42:01 -07:00
test_numpy_interop.py
test_openmp.py Set test owners for tests with unknown owners (#67552) 2021-10-29 12:42:01 -07:00
test_ops.py Add testing for forward over reverse gradgrad (#69740) 2021-12-14 23:35:10 -08:00
test_optim.py Adds a maximize flag to Adam (#68164) 2021-12-13 05:53:53 -08:00
test_overrides.py Add linalg.solve_triangular (#63568) 2021-11-22 12:41:06 -08:00
test_package.py
test_profiler.py record the datapipe for each pieces of Dataset (#67613) 2021-12-01 10:29:06 -08:00
test_pruning_op.py Set test owners for tests with unknown owners (#67552) 2021-10-29 12:42:01 -07:00
test_public_bindings.py
test_python_dispatch.py add python dispatch test back to CI and fix typo in test (#69565) 2021-12-08 08:44:49 -08:00
test_pytree.py
test_quantization.py [quant][graphmode][fx] Fork subgraph_rewriter from torch.fx to quantization (#68228) 2021-11-24 10:49:05 -08:00
test_reductions.py Updated searchsorted functionality (#66818) 2021-11-05 12:13:47 -07:00
test_segment_reductions.py Set test owners for tests with unknown owners (#67552) 2021-10-29 12:42:01 -07:00
test_serialization.py Avoid dtype mismatch error in torch.save if storages are unallocated (#68787) 2021-11-24 09:51:29 -08:00
test_set_default_mobile_cpu_allocator.py Add ownership to more edge tests (#67859) 2021-11-05 11:01:16 -07:00
test_shape_ops.py replace onlyOnCPUAndCUDA with onlyNativeDeviceTypes (#65201) 2021-11-01 09:22:34 -07:00
test_show_pickle.py Add ownership to more edge tests (#67859) 2021-11-05 11:01:16 -07:00
test_sort_and_select.py Implement topk with sort for some cases (#68632) 2021-11-19 17:18:20 -08:00
test_sparse.py OpInfo: Allow sample_inputs_func to be any iterable (#69256) 2021-12-09 08:37:26 -08:00
test_sparse_csr.py OpInfo: Allow sample_inputs_func to be any iterable (#69256) 2021-12-09 08:37:26 -08:00
test_spectral_ops.py replace onlyOnCPUAndCUDA with onlyNativeDeviceTypes (#65201) 2021-11-01 09:22:34 -07:00
test_stateless.py
test_static_runtime.py [static runtime][dper] multi_env tests for static runtime: selective enable (#67467) 2021-11-18 01:04:12 -08:00
test_tensor_creation_ops.py Add meta support to tensor range factories (#67032) 2021-11-05 15:36:29 -07:00
test_tensorboard.py Set test owners for tests with unknown owners (#67552) 2021-10-29 12:42:01 -07:00
test_tensorexpr.py
test_tensorexpr_pybind.py
test_testing.py Fix device type / dtype handling for parametrized test names (#65217) 2021-11-29 19:02:23 -08:00
test_throughput_benchmark.py Set test owners for tests with unknown owners (#67552) 2021-10-29 12:42:01 -07:00
test_torch.py Porting index_add to structured kernels, add an out variant (#65993) 2021-12-14 11:57:13 -08:00
test_type_hints.py
test_type_info.py
test_type_promotion.py replace onlyOnCPUAndCUDA with onlyNativeDeviceTypes (#65201) 2021-11-01 09:22:34 -07:00
test_typing.py
test_unary_ufuncs.py The Jiterator (#69439) 2021-12-06 07:32:48 -08:00
test_utils.py Add support for C++ frontend wrapper on Linux (#69094) 2021-12-02 16:47:00 -08:00
test_view_ops.py Add forward AD support for as_strided (#68629) 2021-12-14 04:33:05 -08:00
test_vmap.py Add OpInfo test and fix a couple cases (#66294) 2021-11-19 14:31:03 -08:00
test_vulkan.py
test_xnnpack_integration.py Add ownership to more edge tests (#67859) 2021-11-05 11:01:16 -07:00