FreeTensor
Loading...
Searching...
No Matches
find_tape_or_recomp_stmts.h
Go to the documentation of this file.
1#ifndef FREE_TENSOR_FIND_TAPE_OR_RECOMP_STMTS_H
2#define FREE_TENSOR_FIND_TAPE_OR_RECOMP_STMTS_H
3
4#include <unordered_set>
5
7
8namespace freetensor {
9
17std::pair<std::unordered_map<ID, std::unordered_set<ID>>,
18 std::unordered_map<ID, std::unordered_set<ID>>>
20 const Stmt &op, const std::unordered_set<ID> &defsToTape,
21 const std::unordered_set<ID> defsNeedGrad,
22 std::unordered_map<StmtOrExprID, Derivative::LazyFullDerivative>
23 &derivatives);
24
25} // namespace freetensor
26
27#endif // FREE_TENSOR_FIND_TAPE_OR_RECOMP_STMTS_H
Definition: allocator.h:9
Ref< StmtNode > Stmt
Definition: ast.h:152
std::pair< std::unordered_map< ID, std::unordered_set< ID > >, std::unordered_map< ID, std::unordered_set< ID > > > findTapeOrRecompStmts(const Stmt &op, const std::unordered_set< ID > &defsToTape, const std::unordered_set< ID > defsNeedGrad, std::unordered_map< StmtOrExprID, Derivative::LazyFullDerivative > &derivatives)
Definition: find_tape_or_recomp_stmts.cc:103