[Apache TVM Discuss] [Development/RFC] [RFC] CSE Optimization

2020-10-16 Thread Jack Zheng via Apache TVM Discuss
- The user API looks like the following: ```C++ /*! * \brief Eliminate common subexpressions among \p in_args and between them and \p output . * * \param output The output tensor. * \param input_grads The gradients of input tensors. */ std::pair > CSE(const Tensor& output,

[Apache TVM Discuss] [Development/RFC] [RFC] CSE Optimization

2020-10-09 Thread Jack Zheng via Apache TVM Discuss
# [RFC] CSE ## Motivation **C**ommon **S**ubexpression **E**limination is a compiler optimization that effectively avoids repeated computation of the same expression. It is needed in the AutoDiff submodule to improve its performance. As an example, consider a compute definition that is as simpl