While I'm implementing an example app. I faced an issue of the order mismatch between addLayer( ) and input tensor (multi-input layer case). Here're some descriptions on this issue.
I added some layers to my model, named proto_net:
// TODO: [Bugfix] sequence of addLayer does not match with the input order.
proto_net->addLayer(input_major_label);
proto_net->addLayer(input_feature);
proto_net->addLayer(l2); /** input_feature is input of l2 **/
proto_net->addLayer(proto); /** input_major_label and l2 are inputs of protonet **/
where the protonet consits of four layers; the last layer proto takes two input l2norm and input_major_label:
Different with my expectation, however, the actual graph's inputs do not follow the order. The input tensors' order does not matched with the addLayer order (protonet.cpp):
This bugfix burden is passed to a user, which is required to be resolved.
(+) The order of input tensors of the layer is only affected by the order of addLayer. But it is not coherent with the order (affected but randomly decided).
(+) I tested with various combinations to boil down the isuse; I changed input_layers option in layer creation as well. The input_layers is irrelevant with the actual input tensors' order. The following code change works in the same situation:
While I'm implementing an example app. I faced an issue of the order mismatch between
addLayer( )
and input tensor (multi-input layer case). Here're some descriptions on this issue.proto_net
:where the protonet consits of four layers; the last layer
proto
takes two inputl2norm
andinput_major_label
:protonet.cpp
):This bugfix burden is passed to a user, which is required to be resolved.
(+) The order of input tensors of the layer is only affected by the order of
addLayer
. But it is not coherent with the order (affected but randomly decided).(+) I tested with various combinations to boil down the isuse; I changed
input_layers
option in layer creation as well. Theinput_layers
is irrelevant with the actual input tensors' order. The following code change works in the same situation:Summary of Issue
addLayer
when a model is created.input_layers
property does not match with the actual order.Candidate to resolve
input_layers
, not the order ofaddLayer
.