mirror of
https://github.com/davisking/dlib.git
synced 2024-11-01 10:14:53 +08:00
Fixed a bug in the repeat layer that caused it to throw exceptions
in some cases.
This commit is contained in:
parent
85d421c356
commit
4a2f0192e7
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user