MCPcopy Create free account
hub / github.com/Xilinx/CHaiDNN / generateGraphLayerType

Function generateGraphLayerType

software/xtract/xgraph.cpp:743–764  ·  view source on GitHub ↗

Routine to representational layer type based on actual layer type and opcode

Source from the content-addressed store, hash-verified

741
742// Routine to representational layer type based on actual layer type and opcode
743string generateGraphLayerType(const string& layerType, int opcode)
744{
745 string graphLayerType = "";
746 if(layerType == "Convolution") {
747 switch (opcode) {
748 case 10: graphLayerType = "BN [+ Scale]"; break;
749 case 11: graphLayerType = "Eltwise"; break;
750 case 12: graphLayerType = "BN + Conv"; break;
751 case 18: graphLayerType = "CReLU"; break;
752 case 19: graphLayerType = "3DS-Conv + Conv"; break;
753 default: graphLayerType = "Convolution"; break;
754 }
755 }
756 else if(layerType == "Pooling") {
757 graphLayerType = opcode == 40 ? graphLayerType = "3DS-Conv" : "Pooling";
758 }
759 else {
760 graphLayerType = layerType;
761 }
762
763 return graphLayerType;
764}
765
766
767void XGraph::drawGraph(const string& filename, const string& rankdir)

Callers 1

drawGraphMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected