ai-techsystems / deepC

vendor independent TinyML deep learning library, compiler and inference framework microcomputers and micro-controllers
https://cainvas.ai-tech.systems/
Apache License 2.0
565 stars 86 forks source link

Make TEST fails swig tests #124

Open robinvanemden opened 4 years ago

robinvanemden commented 4 years ago

Probably a known issue, but I thought I'd report it here anyway. make TEST produces the following SWIG related errors:

Running tests in ===|swig|===
----------------------------------------------------------------------
Ran 726 tests in 0.194s

OK

Running tests in ===|parser|===
ERROR (GRAPH): some of graph RNN_graph's node dnnc___1's
               inputs are not connected to other nodes in the graph.
ERROR (TYPE INFER): cound not find all nodes for dnnc___1,
ERROR (CODEGEN): cound not find all nodes for dnnc___1,
                 an instance of RNN.
                 Please check model's sanity and try again.
ERROR (GRAPH): some of graph Loop_graph's node dnnc___1's
               outputs are not connected to other nodes in the graph.
ERROR (CODEGEN): cound not find all nodes for dnnc___1,
                 an instance of Loop.
                 Please check model's sanity and try again.
ERROR (GRAPH): some of graph If_graph's node 2's
               inputs are not connected to other nodes in the graph.
ERROR (GRAPH): some of graph BatchNormalization_graph's node dnnc___1's
               inputs are not connected to other nodes in the graph.
ERROR (GRAPH): some of graph BatchNormalization_graph's node 1's
               outputs are not connected to other nodes in the graph.
ERROR (TYPE INFER): cound not find all nodes for dnnc___1,
ERROR (CODEGEN): cound not find all nodes for dnnc___1,
                 an instance of BatchNormalization.
                 Please check model's sanity and try again.
ERROR (GRAPH): some of graph GRU_graph's node dnnc___1's
               inputs are not connected to other nodes in the graph.
ERROR (TYPE INFER): cound not find all nodes for dnnc___1,
ERROR (CODEGEN): cound not find all nodes for dnnc___1,
                 an instance of GRU.
                 Please check model's sanity and try again.
read 130 files.
----------------------------------------------------------------------
Ran 1 test in 0.042s
srohit0 commented 4 years ago

Yes, all these failing tests are valid errors thrown by sanity check on a graph created by a single operator.

Need to find a cleaner way to rearrange tests into positive and negative tests.

robinvanemden commented 4 years ago

That makes sense - thanks!