When computing the output of a model with
KerasModel::compute_output(keras::DataChunk *dc)
the input DataChunk (dc) is deleted. Since this DataChunk is created somewhere else, I think it is better to let the code that created the object to free it. To do this, a single line should be added to the code to prevent this first input to be deleted, here.
Add a condition to
delete inp;
like
if( inp != dc ) delete inp;
When computing the output of a model with
KerasModel::compute_output(keras::DataChunk *dc)
the input DataChunk (dc) is deleted. Since this DataChunk is created somewhere else, I think it is better to let the code that created the object to free it. To do this, a single line should be added to the code to prevent this first input to be deleted, here.Add a condition to
delete inp;
likeif( inp != dc ) delete inp;