Commit 061f3803 authored by Paul's avatar Paul
Browse files

Formatting

parent a1952a8d
...@@ -57,16 +57,18 @@ auto operator<<(std::ostream& os, const T& x) -> decltype(os << x.name()) ...@@ -57,16 +57,18 @@ auto operator<<(std::ostream& os, const T& x) -> decltype(os << x.name())
} // namespace operation_stream } // namespace operation_stream
template <class T> template <class T>
auto auto compute_op(rank<1>,
compute_op(rank<1>, const T& x, context& ctx, const shape& output_shape, const std::vector<argument>& input) const T& x,
-> decltype(x.compute(auto_any_cast(ctx), output_shape, input)) context& ctx,
const shape& output_shape,
const std::vector<argument>& input)
-> decltype(x.compute(auto_any_cast(ctx), output_shape, input))
{ {
return x.compute(auto_any_cast(ctx), output_shape, input); return x.compute(auto_any_cast(ctx), output_shape, input);
} }
template <class T> template <class T>
argument argument compute_op(rank<0>, const T& x, context&, const shape&, const std::vector<argument>&)
compute_op(rank<0>, const T& x, context&, const shape&, const std::vector<argument>&)
{ {
MIGRAPH_THROW("Not computable: " + x.name()); MIGRAPH_THROW("Not computable: " + x.name());
} }
......
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