Skip to content

Commit

Permalink
[bug] Remove operator ! for Expr (#5062)
Browse files Browse the repository at this point in the history
  • Loading branch information
strongoier authored May 30, 2022
1 parent 0f4c950 commit 2197fad
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 6 deletions.
4 changes: 0 additions & 4 deletions taichi/ir/expr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,6 @@ SNode *Expr::snode() const {
return cast<GlobalVariableExpression>()->snode;
}

Expr Expr::operator!() {
return Expr::make<UnaryOpExpression>(UnaryOpType::logic_not, expr);
}

void Expr::set_grad(const Expr &o) {
this->cast<GlobalVariableExpression>()->adjoint.set(o);
}
Expand Down
2 changes: 0 additions & 2 deletions taichi/ir/expr.h
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,6 @@ class Expr {

Expr operator[](const ExprGroup &indices) const;

Expr operator!();

template <typename T, typename... Args>
static Expr make(Args &&...args) {
return Expr(std::make_shared<T>(std::forward<Args>(args)...));
Expand Down

0 comments on commit 2197fad

Please sign in to comment.