"src/vscode:/vscode.git/clone" did not exist on "e76bd7293eb27828cab07c35395d898d7cec8eeb"
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())
} // namespace operation_stream
template <class T>
auto
compute_op(rank<1>, const T& x, context& ctx, const shape& output_shape, const std::vector<argument>& input)
-> decltype(x.compute(auto_any_cast(ctx), output_shape, input))
auto compute_op(rank<1>,
const T& x,
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);
}
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());
}
......
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