THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
...
Proposed Solution
- In Gluon, update the Export API to accept input/output signature, pre-processing/post-processing transformations (Hybrid Sequential Block) from the users.
- If user provides the transformations, a fused graph (Transformations + Batchify_Connector_Node + Network + NoOpNo_Op_Connector_Node + Transformations) is prepared. Connector No Op Nodes are Batchify_Connector_Node and No_Op_Connector_Node are MXNet internal identifier operators to help in identifying transformations and network graphs separately. This identifier nodes will be helpful, if when loading the model, user prefers to not load the transformations.
- Input/Output signature are added to the symbol file.
Example symbol file after proposed update update. "inputs" and "outputs" are the new parameters proposed in this work.
Code Block |
---|
{ "nodes": [..........] "arg_nodes": [0, 1, 2, 4, 5], "node_row_ptr": [0, 1, 2, 3, 4, 5, 6, 7, 8], "heads": [[7, 0, 0]], "attrs": {"mxnet_version": ["int", 10301] "inputs": {"data":[1,3,224,224]}, "outputs" : {"softmax_label":[1,10] } } |
...