Commit aac188df authored by Paul's avatar Paul
Browse files

Fix problem with dependent exception

parent 061f3803
...@@ -70,7 +70,8 @@ auto compute_op(rank<1>, ...@@ -70,7 +70,8 @@ auto compute_op(rank<1>,
template <class T> template <class T>
argument compute_op(rank<0>, const T& x, context&, const shape&, const std::vector<argument>&) argument compute_op(rank<0>, const T& x, context&, const shape&, const std::vector<argument>&)
{ {
MIGRAPH_THROW("Not computable: " + x.name()); std::string name = x.name();
MIGRAPH_THROW("Not computable: " + name);
} }
template <class T> template <class T>
......
...@@ -70,7 +70,8 @@ auto compute_op(rank<1>, ...@@ -70,7 +70,8 @@ auto compute_op(rank<1>,
template <class T> template <class T>
argument compute_op(rank<0>, const T& x, context&, const shape&, const std::vector<argument>&) argument compute_op(rank<0>, const T& x, context&, const shape&, const std::vector<argument>&)
{ {
MIGRAPH_THROW("Not computable: " + x.name()); std::string name = x.name();
MIGRAPH_THROW("Not computable: " + name);
} }
template <class T> template <class T>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment