FreeTensor
Loading...
Searching...
No Matches
Public Member Functions | List of all members
freetensor::Derivative::LazyFullDerivative Class Reference

#include <derivative.h>

Public Member Functions

void addPartial (const Load &x, const LazyPartialDerivative &partial)
 
void setError (const std::exception_ptr &error)
 
bool usingStore ()
 
const std::unordered_set< std::string > & reads ()
 
std::vector< StmtgenGrads (const std::unordered_map< ID, std::string > &intermediatesMap, const std::unordered_map< StmtOrExprID, Expr > &versions, const std::unordered_map< std::string, std::string > &gradNames, const Expr &gradY)
 

Detailed Description

Lazy full derivative dy/dx_i for all x_i that continuously infuences y

Notes on non-differential cases:

Member Function Documentation

◆ addPartial()

void freetensor::Derivative::LazyFullDerivative::addPartial ( const Load x,
const LazyPartialDerivative partial 
)

◆ genGrads()

std::vector< Stmt > freetensor::Derivative::LazyFullDerivative::genGrads ( const std::unordered_map< ID, std::string > &  intermediatesMap,
const std::unordered_map< StmtOrExprID, Expr > &  versions,
const std::unordered_map< std::string, std::string > &  gradNames,
const Expr gradY 
)

◆ reads()

const std::unordered_set< std::string > & freetensor::Derivative::LazyFullDerivative::reads ( )

◆ setError()

void freetensor::Derivative::LazyFullDerivative::setError ( const std::exception_ptr &  error)
inline

◆ usingStore()

bool freetensor::Derivative::LazyFullDerivative::usingStore ( )

The documentation for this class was generated from the following files: