[mlpack-git] [mlpack/mlpack] Inception layer (#757)
Nilay Jain
notifications at github.com
Sun Aug 14 03:38:40 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());
I couldn't write 2 conditions using std::enable_if (one for I < sizeof...(Tp) and one for output::value = arma::cube), but i can write 2 overloads for output type arma::cube and arma::mat. Is there a better way ?
--
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#r74697303
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.cc.gatech.edu/pipermail/mlpack-git/attachments/20160814/12b80b1d/attachment-0001.html>
More information about the mlpack-git
mailing list