public String getNodeName ( String name ) { //tensorflow adds colons to the end of variables representing input index, this strips those off String ret = name ; if ( ret . startsWith ( "^" ) ) ret = ret . substring ( 1 ) ; if ( ret . endsWith ( "/read" ) ) { ret = ret . replace ( "/read" , "" ) ; } return ret ; }
Map a tensorflow node name to the samediff equivalent for import