"git@developer.sourcefind.cn:renzhc/diffusers_dcu.git" did not exist on "53748217e692792cd1f96c25777e02628b557061"
Unverified Commit a2498dc4 authored by stoperro's avatar stoperro Committed by GitHub
Browse files

Additional documentation for failed dlib::layer<> use. (#2118)

parent 71b303d8
......@@ -2684,6 +2684,9 @@ namespace dlib
{
static_assert(i < T::num_layers, "Call to layer() attempted to access non-existing layer in neural network.");
static T& makeT();
// If you get error here mentioning lack of member "subnet" in "dlib::input<...>",
// then likely your "dlib::layer<...>" invocation wasn't able to find requested layer.
// This could happen for instance when trying to use skip layer for non-existing tag.
using next_type = typename std::remove_reference<decltype(makeT().subnet())>::type;
using type = typename layer_helper<i-1,next_type>::type;
static type& layer(T& n)
......
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