[mlpack-git] [mlpack/mlpack] Inception layer (#757)
Marcus Edel
notifications at github.com
Mon Aug 8 20:16:50 EDT 2016
> + {
> + ForwardTail(layers, output);
> + }
> +
> + template<size_t I = 0, typename DataType, typename... Tp>
> + typename std::enable_if<I == sizeof...(Tp), void>::type
> + ForwardTail(std::tuple<Tp...>& layers, DataType& output)
> + {
> + /* Nothing to do. */
> + }
> +
> + template<size_t I = 0, typename DataType, typename... Tp>
> + typename std::enable_if<I < sizeof...(Tp), void>::type
> + ForwardTail(std::tuple<Tp...>& layers, DataType& output)
> + {
> + output = arma::join_slices(output, std::get<I>(layers).OutputParameter());
The problem I see here is, that it only works if we use cubes as output type. We could use template specializations to distinguish between arma::mat and arma::cube what do you think?
---
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/mlpack/mlpack/pull/757/files/06d923321f246f2c6ead9ad56e99309fe24a6f5c#r73979743
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.cc.gatech.edu/pipermail/mlpack-git/attachments/20160808/a9ee74ac/attachment.html>
More information about the mlpack-git
mailing list