Skip to content

Commit

Permalink
Removed std::unary_function because it is deprecated and removed in n…
Browse files Browse the repository at this point in the history
  • Loading branch information
higumachan authored and wweic committed Apr 8, 2019
1 parent 777e961 commit cdf9e55
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/relay/pass/alter_op_layout.cc
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ class TransformMemorizerNode : public Node {
public:
// map from (Expr, src_layout, dst_layout) to transformed Expr
using TransformKey = std::tuple<const Node*, std::string, std::string>;
struct key_hash : public std::unary_function<TransformKey , std::size_t> {
struct key_hash : public std::function<std::size_t(TransformKey)> {
std::size_t operator()(const TransformKey& k) const {
return dmlc::HashCombine<std::string>(dmlc::HashCombine<std::string>(
std::hash<const Node*>()(std::get<0>(k)), std::get<1>(k)), (std::get<2>(k)));
Expand Down

0 comments on commit cdf9e55

Please sign in to comment.