Skip to content

Commit

Permalink
save
Browse files Browse the repository at this point in the history
  • Loading branch information
MarisaKirisame committed Nov 1, 2019
1 parent b4a93f5 commit b5d54fe
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions include/tvm/relay/op.h
Original file line number Diff line number Diff line change
Expand Up @@ -543,10 +543,6 @@ inline const TVMRetValue& GenericOpMap::operator[](const Op& op) const {
template <typename ValueType>
inline ValueType GenericOpMap::get(const Op& op, ValueType value) const {
CHECK(op.defined());
if (count(op) == 0) {
std::cout << "Attribute " << attr_name_ << " has not been registered for Operator "
<< op->name << std::endl;
}
const uint32_t idx = op->index_;
if (idx < data_.size() && data_[idx].second != 0) {
return data_[idx].first;
Expand All @@ -558,10 +554,6 @@ inline ValueType GenericOpMap::get(const Op& op, ValueType value) const {
template <typename ValueType>
inline ValueType GenericOpMap::get(const Expr& expr, ValueType value) const {
CHECK(expr.defined());
if (expr.as<OpNode>() && count(Downcast<Op>(expr)) == 0) {
std::cout << "Attribute " << attr_name_ << " has not been registered for Operator "
<< Downcast<Op>(expr)->name << std::endl;
}
if (const OpNode* op = expr.as<OpNode>()) {
const uint32_t idx = op->index_;
if (idx < data_.size() && data_[idx].second != 0) {
Expand Down

0 comments on commit b5d54fe

Please sign in to comment.