def GetTensorOpName(x):
 t = x.name.rsplit(':', 1)
 if (len(t) == 1):
  return x.name
 else:
  return t[0]

def GetTensorOpName ( x ) : t = x . name . rsplit ( ':' , 1 ) if ( len ( t ) == 1 ) : return x . name else : return t [ 0 ]
get the name of the op that created a tensor .