torch-mlir/include/npcomp
Sean Silva 0b7c443256 [RefBackend] Properly initialize refbackrt::Tensor refcount.
Although `refCount` is initialized as `std::atomic<int> refCount{0};` in
the definition of Tensor, our tail-allocating malloc would ignore it,
resulting in bogus values that led to leaks.

Caught with LeakSanitizer, but I added an assertion that the refcount is
non-negative to begin with, which should catch this bug in the future
fairly consistently (assuming the garbage refcount is negative half the
time).
2020-11-24 12:01:35 -08:00
..
Backend/RefJIT Sever C++ level depend on IREE and rebase on exe and python interface. 2020-11-16 21:32:56 -08:00
Conversion Sever C++ level depend on IREE and rebase on exe and python interface. 2020-11-16 21:32:56 -08:00
Dialect Add aten.mm op and "test" it e2e. 2020-11-20 17:21:24 -08:00
Python Repurpose numpy-compiler compiler/runtime flow for PyTorch. 2020-11-11 10:38:13 -08:00
RefBackend [RefBackend] Properly initialize refbackrt::Tensor refcount. 2020-11-24 12:01:35 -08:00
Typing Bump submodule versions. 2020-09-08 13:26:42 -07:00
CMakeLists.txt [RefBackend] Rename "E2E" to RefBackend. 2020-10-07 10:29:48 -07:00
InitAll.h Bump submodule versions. 2020-09-08 13:26:42 -07:00