Fixed a bug in the repeat layer that caused it to throw exceptions

in some cases.
This commit is contained in:
Davis King 2016-10-18 22:54:34 -04:00
parent 85d421c356
commit 4a2f0192e7

View File

@ -81,7 +81,6 @@ namespace dlib
resizable_tensor&
) const
{
DLIB_CASSERT(false,"This function should never be called");
}
friend void serialize(const repeat_input_layer&, std::ostream&){}
@ -1681,6 +1680,11 @@ namespace dlib
) const
{
subnetwork.to_tensor(ibegin,iend,data);
// call to_tensor on the networks in details just to populate the
// _sample_expansion_factor values in those networks. Other than that this
// call is a noop.
for (auto& d : details)
d.to_tensor(ibegin, iend, data);
}
template <typename forward_iterator>