def __str__(self):
        if self.name is None:
            if self.inplace_pattern:
                items = list(self.inplace_pattern.items())
                items.sort()
                return self.__class__.__name__ + "{%s}%s" % (self.scalar_op,
                                                             str(items))
            else:
                return self.__class__.__name__ + "{%s}" % (self.scalar_op)
        else:
            return self.name
dataset/ETHPy150Open rizar/attention-lvcsr/libs/Theano/theano/misc/pycuda_example.py/PycudaElemwiseSourceModuleOp.__str__/original