Class GenerationOptimizer::AbstractOperation

Nested Relationships

This class is a nested type of Template Class GenerationOptimizer.

Class Documentation

class AbstractOperation

Public Functions

inline AbstractOperation(Object obj)
inline void execute(MainGenerator &generator, const MainContext &ctx)
virtual void execute(const Tensor &tensor, MainGenerator &generator, const MainContext &ctx) = 0
virtual void execute(const Variable &variable, MainGenerator &generator, const MainContext &ctx) = 0
virtual OperationType type() const = 0
inline bool cancels(const AbstractOperation &other) const
Returns:

Whether this operation cancels the provided operation. That is, executing them both in sequence will result in a no-op

inline bool pairs_with(const AbstractOperation &operation) const
Returns:

Whether this operation forms a semantic pair with the provided one

inline MemoryAction memory_action() const
inline std::string to_string() const
inline bool operator==(const AbstractOperation &other) const