Skip to content

Commit

Permalink
undo lgi changes
Browse files Browse the repository at this point in the history
  • Loading branch information
hypercubestart committed Jun 21, 2020
1 parent 9453d4c commit 38558f1
Show file tree
Hide file tree
Showing 6 changed files with 96 additions and 762 deletions.
2 changes: 0 additions & 2 deletions include/tvm/node/structural_equal.h
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,6 @@ class StructuralEqual : public BaseValueEqual {
* \return The comparison result.
*/
TVM_DLL bool operator()(const ObjectRef& lhs, const ObjectRef& rhs) const;

TVM_DLL bool operator()(const ObjectRef& lhs, const ObjectRef& rhs, bool map_free_vars) const;
};

/*!
Expand Down
5 changes: 0 additions & 5 deletions src/node/structural_equal.cc
Original file line number Diff line number Diff line change
Expand Up @@ -231,9 +231,4 @@ bool StructuralEqual::operator()(const ObjectRef& lhs, const ObjectRef& rhs) con
return RemapVarSEqualHandler(false).Equal(lhs, rhs, false);
}

bool StructuralEqual::operator()(const ObjectRef& lhs, const ObjectRef& rhs,
bool map_free_vars) const {
return RemapVarSEqualHandler(false).Equal(lhs, rhs, map_free_vars);
}

} // namespace tvm
3 changes: 0 additions & 3 deletions src/relay/op/tensor/transform.cc
Original file line number Diff line number Diff line change
Expand Up @@ -182,9 +182,6 @@ bool ExpandDimsRel(const Array<Type>& types, int num_inputs, const Attrs& attrs,
return false;
}
const auto* param = attrs.as<ExpandDimsAttrs>();
if (param == nullptr) {
return false;
}
const int ndim = static_cast<int>(data->shape.size());
const int axis = param->axis;
const int num_newaxis = param->num_newaxis;
Expand Down
3 changes: 0 additions & 3 deletions src/relay/op/tensor/transform.h
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,6 @@ bool ConcatenateRel(const Array<Type>& types, int num_inputs, const Attrs& attrs
}

const auto* param = attrs.as<AttrType>();
if (param == nullptr) {
return false;
}
if (tensor_tuple->fields[0].as<IncompleteTypeNode>()) {
return false;
}
Expand Down
Loading

0 comments on commit 38558f1

Please sign in to comment.