5e92d8c1d0 | ||
---|---|---|
.. | ||
backprop | ||
README.md |
README.md
backprop benchmark
The source code is slightly changed to make mlir-clang -memref-fullrank
work:
RELU
function is duplicated toRELU_output
andRELU_hidden
.add_bias_to_activations
function is duplicated toadd_bias_to_activations_output
andadd_bias_to_activations_hidden
.
$ mlir-clang backprop.c -function=backprop -S -memref-fullrank -raise-scf-to-affine -I /usr/lib/clang/10.0.0/include -O0 -subindex-to-subview > backprop.mlir
$ scalehls-opt backprop.mlir -scalehls-materialize-reduction -scalehls-func-duplication -fold-memref-subview-ops -canonicalize -scalehls-func-preprocess="top-func=backprop" > tmp.mlir