pytorch/test/cpp
Mikhail Zolotukhin 688e350725 [TensorExpr] Nuke DepTracker and findAllNeededTensors. (#54997)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/54997

DepTracker was used to automatically pull in dependent computations from
output ones. While it seems quite convenient, it's led to several
architectural issues, which are fixed in this stack.

DepTracker worked on Tensors, which is a pair of Buf and Stmt. However,
Stmt could become stale and there was no way to reliably update the
corresponding tensor. We're now using Bufs and Stmts directly and moving
away from using Tensors to avoid these problems.

Removing DepTracker allowed to unify Loads and FunctionCalls, which
essentially were duplicates of each other.

Test Plan: Imported from OSS

Reviewed By: navahgar

Differential Revision: D27446414

Pulled By: ZolotukhinM

fbshipit-source-id: a2a32749d5b28beed92a601da33d126c0a2cf399
2021-04-01 19:46:26 -07:00
..
api Implement public API InferenceMode and its error handling (#55008) 2021-03-31 10:48:00 -07:00
common Trim libshm deps, move tempfile.h to c10 (#17019) 2019-02-13 19:38:35 -08:00
dist_autograd Forbid trailing whitespace (#53406) 2021-03-05 17:22:55 -08:00
jit Back out "[pytorch][PR] Merge CUDA Streams and Events" (#54996) 2021-03-31 10:21:35 -07:00
lite_interpreter_runtime [PyTorch] Enable test_lite_interpreter_runtime running in android (#54579) 2021-03-24 14:45:27 -07:00
rpc Avoid aggregate initialization for tensorpipe::{Cpu,Cuda}Buffer and tensorpipe::Message::Tensor. (#55136) 2021-04-01 06:55:02 -07:00
tensorexpr [TensorExpr] Nuke DepTracker and findAllNeededTensors. (#54997) 2021-04-01 19:46:26 -07:00
__init__.py remediation of S205607 2020-07-17 17:19:47 -07:00