Ecosyste.ms: OpenCollective
An open API service for software projects hosted on Open Collective.
github.com/llvm/torch-mlir
The Torch-MLIR project aims to provide first class support from the PyTorch ecosystem to the MLIR ecosystem.
https://github.com/llvm/torch-mlir
2c2286034b376b63c46b7ceed36a087f80564500 authored almost 4 years ago by Yi Zhang <[email protected]>
This is a much simpler representation than the ad-hoc initializer
function we had before. It is ...
With this, we can import BERT!
```
pt_util ~/tmp/bert.pt --import --exported-name=forward \
| n...
- `module_import -> ivalue_import`, as it mainly tests ivalue_importer.cpp
- `graph_import -> no...
Adds support for lowering a torch.nn.Conv2d module to the Torch Dialect through TorchScript impo...
27a4515de2a2e5e889c099479087c33b2094a87e authored almost 4 years ago by Bryce Arden <[email protected]>
The first use case is to annotate certain program constructs as either
exported or private. In t...
- dialect registration
- StringAttr::get: order of context arg
- math dialect
- LogicalResult no...
With this + manually setting private visibility on everything, a simple
classifier can be reduce...
cecf1fbba559d5cc6245a0b832cda199b671f9f7 authored almost 4 years ago by powderluv <[email protected]>
This happens in practice. With this, we can globalize slots for the
non-trivial classifier layer...
Signed-off-by: Bairen Yi <[email protected]>
b511158141a12ee73d1c84a76eb2f4efd801dbfe authored almost 4 years ago by Bairen Yi <[email protected]>
This required restructuring of how we model TorchScript on import. The
main difference is that n...
PyTorch added a Global variable `_is_full_backward_hook` recently.
See https://github.com/pytor...
99d1db18d28558c2940b405b9030940104fbdf25 authored almost 4 years ago by Bairen Yi <[email protected]>
Modify ACAP_Dispatch to work with latest pytorch
-Remove boxed from convolution's m.impl
-Use re...
This is needed so that output shows up properly in a Jupyter notebook.
498979ad2886398f35bef100280eff0ea6fa086b authored almost 4 years ago by Sean Silva <[email protected]>For now, we are treating strings as bytes.
7f7bf395512eb4de6f448c50f60cfcdb243c70a4 authored almost 4 years ago by Sean Silva <[email protected]>
This required some careful considerations when defining object identity
for tensors. See the com...
This required some invasive surgery to graph_importer.h/cpp,
specifically moving most of it into...
99b845411dca73d61670d9a627c3ab94f21abb50 authored almost 4 years ago by Sean Silva <[email protected]>
No changes needed.
786b56308589dbde6398dce193a6d22d025d4430 authored almost 4 years ago by Sean Silva <[email protected]>484fe0d9bdf1c6c0147b2c7432fccf7f7b2f5429 authored almost 4 years ago by Aaron J Arthurs <[email protected]>
63ee4f268a67ee9e568bf31bd9f4a404001ba05f authored almost 4 years ago by Aaron J Arthurs <[email protected]>
c0e14da8887691754ca178dd521c088fc43589e4 authored almost 4 years ago by Aaron J Arthurs <[email protected]>
fc650c944737dbff1d1cc2ba62788774b03ad16c authored almost 4 years ago by Aaron J Arthurs <[email protected]>
It turns out that this was easiest to structure as a general IValue
importer, since torch module...
This allows building NPCOMP as an external project of LLVM, similar to
how CIRCT can be built: ...
Fix more links
f96c05abd48e95920e0d659aaaddbd5eb1177554 authored almost 4 years ago by stephenneuendorffer <[email protected]>Links were broken
142de3bab347380dd438393da413e6a7b260bd3c authored almost 4 years ago by stephenneuendorffer <[email protected]>72f785c4b2953412e1f942f746dbee38bc2155ae authored almost 4 years ago by Stella Laurenzo <[email protected]>
These mainly exercise the `module_builder.import_function` function, so
it makes sense for the d...
This silences some warnings I was seeing locally.
1965ac4d67b8c388a7001c50c9adb36a1e54cf9c authored almost 4 years ago by Sean Silva <[email protected]>
- TensorFromElementsOp -> tensor::FromElementsOp
- `cmpi "eq", ...` -> `cmpi eq, ...`. Same for ...
Otherwise `MLIR_BINDINGS_PYTHON_ENABLED=ON` won't work.
2549d00d8ca5fda173a26073ebb760329dc327b8 authored almost 4 years ago by Sean Silva <[email protected]>
- `let typeDesription` -> `let description`
- LLVMIntegerType -> IntegerType
* It was only required with the old python APIs.
52240e056997865e6ba84a6b92bd15eceece06b3 authored about 4 years ago by Stella Laurenzo <[email protected]>
* Most updates are mechanical except:
* python/npcomp/__init__.py and python/NpcompModule.cpp:...
951d7ff42c0762dfa62ff2c356f3feffd904acb5 authored about 4 years ago by Stella Laurenzo <[email protected]>
Changes:
- linalg init tensor change (outs+init -> just outs)
- IntegerType::get and other built...
Also, touch up the docs.
d8261a06d56df47210dc67e6d3a4fd8a0400165f authored about 4 years ago by Sean Silva <[email protected]>Point to correct files instead of 404's.
46d3dd9ddd8f0add144a83e3ddc9b61b26e9424d authored about 4 years ago by Brennan Saeta <[email protected]>realpath is a GNUUtils package that is not available on recent OSX
TEST=Build on OSX systems ...
d35724ad0d2bf2edf3578a0349a72db754ced1e1 authored about 4 years ago by powderluv <[email protected]>
--version_script doesn't work on OSX.
Shared libs are .dylibs on OSX.
TEST=Build on iMac Pro...
4237172bbf3e761e85d29046593f42f84d0a4558 authored about 4 years ago by powderluv <[email protected]>85898aaf10ea30237ee1d66c977b966cf7fcf6d0 authored about 4 years ago by Aaron Arthurs <[email protected]>
Fixes:
- use `op->(method on Operation)`
- update for MlirIdentifier in signature of mlirNamedAt...
* This has been anticipated for a long time in that it is quite hard to keep C++ binary compatib...
f6d7ee06ef22d42ace603df6442d1c13c83a90a5 authored about 4 years ago by Stella Laurenzo <[email protected]>
Fixes:
- renames StandardTypes -> BuiltinTypes
- std.extract_element -> tensor.extract
Date: Mon Nov 30 15:20:30 2020 -0800
Changes:
- finalizing-bufferize is stricter now, and we ...
Date: Mon Nov 30 12:44:35 2020 -0800
Fixes:
- func-bufferize is no longer finalizing, so we n...
This code is really tricky, and was not commented.
955fd3eedae7c877264d4e497c58697f7a485b4d authored about 4 years ago by Sean Silva <[email protected]>
Best as I can tell (e.g. from LeakSanitizer), this fixes all the leaks
except for those due to b...
699bf5df45e7039acf2effa0e4492313f60fb242 authored about 4 years ago by Phoenix Meadowlark <[email protected]>
e2405e3ca864a58640aaf32a6ec5fbf13efa69cb authored about 4 years ago by Stella Laurenzo <[email protected]>
* Going through TODOs on the PyTorch side, this is a big cause of them (not being able to have c...
3937dd14cb41a3bfb6bbddbd056502d902ee2bac authored about 4 years ago by Stella Laurenzo <[email protected]>
* Organizes the BasicPyOps.td file by function.
* Renamed `to_boolean` -> `as_predicate_value` (...
* Incorporates changes around LLVM StringRef.
* Ports fix in upstream pybind11 detection.
* Disa...
959c0a79cb7363bc6ef8b441bdb59dd487ca4966 authored about 4 years ago by [email protected] <[email protected]>
Although `refCount` is initialized as `std::atomic<int> refCount{0};` in
the definition of Tenso...
f13994fdf706b559032660ec32f09fce2ac43b26 authored about 4 years ago by Stella Laurenzo <[email protected]>
9ffd2556ab51cd5f054a86e6a953111a6086549a authored about 4 years ago by Stella Laurenzo <[email protected]>
* Does not handle all features yet but should conservatively fail on unsupported things.
* Locat...
* Installs numpy as well.
2021d3609e9f5a9d0b0cde087cbce49c6be24e14 authored about 4 years ago by Stella Laurenzo <[email protected]>31d80064a9aca6138b3cd6ab2b3785e07d536440 authored about 4 years ago by Stella Laurenzo <[email protected]>
* Incorporates source fixes.
* Uses upstream pybind11 detection logic.
* Patches CI.
* This may ...
Also, update README.md to use the canonical .env file written by
`cmake_configure.sh`.
Note that unlike aten.matmul which has dynamic behavior
depending on the argument ranks (can do ...
- Print out initial PyTorch IR.
- Rename ambiguous "frontend IR" to "TCF IR".
- Add newlines to ...
This reverts commit c60d7b4aae606a99d75b219ae0d29715acb4185d.
It seems to have tickled some sor...
32b2dc6ce741f22409bce7d8f473fb37548ab547 authored about 4 years ago by Sean Silva <[email protected]>c60d7b4aae606a99d75b219ae0d29715acb4185d authored about 4 years ago by Sean Silva <[email protected]>
After the recent change of cmake variables
from PYTHON_INCLUDE_DIRS to Python3_INCLUDE_DIRS
an...
This allows invoking TCF to TCP-level conversion more easily, and starts
us towards a path of fa...
It was annoying that we were creating shape.get_extent in the middle of
the bufferization pipeli...
* Days since CMake-is-not-a-language failure: 0
4f9c9ecda07a7181804a0fbaf4934e49971463c9 authored about 4 years ago by Stella Laurenzo <[email protected]>* IREE doesn't have proper install support, so there is some temporary hoaky hacking in our CMak...
a7ff87a9221a12edc1474c5aaa00fdb214ba0794 authored about 4 years ago by Stella Laurenzo <[email protected]>
This vastly simplifies our code, allowing deleting multiple ops,
simplifying multiple passes, an...
* In most situations, this eliminates the need to explicitly set a path to the Torch cmake files...
6850295ec587977115c872f69741cce953958c23 authored about 4 years ago by Stella Laurenzo <[email protected]>32388d938bee77b3e676428ab33041421112dbe2 authored about 4 years ago by Sean Silva <[email protected]>
Date: Fri Nov 13 15:27:29 2020 -0800
482791fa4ac9751d741a684a54566362ff92a8ec authored about 4 years ago by Sean Silva <[email protected]>* We aren't quite at e2e parity, but we aren't going back and the old path is bit-rotted.
47ac80491cbe8ebc3215dd836ec986ec4dece4bf authored about 4 years ago by Stella Laurenzo <[email protected]>
* Fixes #107
* I wouldn't say I love what had to be done here. Worth a conversation with the PT ...
* A bit gross because I took the chance to upgrade all of the backend bits to the new MLIR Pytho...
b4c7ae1e0ce37551e9501d014f77f525b6c36fa6 authored about 4 years ago by Stella Laurenzo <[email protected]>
* Makes room for the pytorch compiler.
* Some common things can be hoisted from the numpy side b...
0427aacb0bdfc909acdf73427f59529769555973 authored about 4 years ago by Sean Silva <[email protected]>
This involved adding a `tcp.splatted` op to splat a dynamically sized
init tensor. See rationale...
Date: Wed Oct 28 13:25:48 2020 -0700
- fixup for func syntax change
ceab22cf90667f03b3f502f6967392fad8913716 authored about 4 years ago by Sean Silva <[email protected]>
* We're building libLLVM.so anyway. Saves a lot of time/space to link tools against it.
* MLIR t...
* Incorporates a dep on the new MLIRPublicAPI shared library.
* More work is needed to further s...
966253fb1145b2398f035363d8ed88f18f949bd8 authored about 4 years ago by Stella Laurenzo <[email protected]>
* Conversions are very simple, suporting mul, maximum and add (alpha=1 only).
* Example added wi...
* convolution, convolution_backward, _log_softmax, _log_softmax_backward_data, nll_loss_forward,...
6c702b149fdeb29670fb652996dfe60b22bd32e9 authored about 4 years ago by Stella Laurenzo <[email protected]>
Two changes:
- no more "verifyPasses" constructor arg for PassManager
- OpPassManager defaults t...
* Enables -gsplit-dwarf for both LLVM and NPCOMP, reducing the occurrence of the ~GB scale binar...
59b7c559f4782be9e1ea5f5e9eb365cf47565426 authored about 4 years ago by Stella Laurenzo <[email protected]>94bee9ec233d0ec178aaea26656515bcf3fad06f authored about 4 years ago by Sean Silva <[email protected]>
Now, the only bufferization we have left is lowering tensor constants to
memref, which will hope...
The current code was inserting all build_list ops
after the last constant op since it was assumi...
* This is sufficient to capture the forward and backward pass and gradients of a convolutional m...
0c73c535d6ce1ddfd96dd7439bed2ecfb2e18a0b authored about 4 years ago by Stella Laurenzo <[email protected]>
- Remove GreedyPatternRewriteDriver.h from files that don't need it
- fix typo shouldBeCloned ->...
f9c2f8eb0dd159618025a17b52f716197ed9614c authored about 4 years ago by Sean Silva <[email protected]>
- Fixup to OpBuilderDAG
- Update for affine map naming
29c715b6b1d41ce7f44a169ced214548b333c243 authored about 4 years ago by Aaron J Arthurs <[email protected]>
* None's out Device? args.
* Emits bool tensors if needed.
* Adds some stderr tracing to better ...