(self)
return (1, 1)
Return the shape of the OpTreeNode.
Return the shape of the OpTreeNode.
Return the shape of the OpTreeNode .
def shape(self):
        """
        Return the shape of the OpTreeNode.
        """

        if isinstance(self, OpTreeNode):
            return self[0]['shape']

        if isinstance(self, Tensor):
            return self.shape

        # scalar
        return (1, 1)
def shape ( self ) : if isinstance ( self , OpTreeNode ) : return self [ 0 ] [ 'shape' ] if isinstance ( self , Tensor ) : return self . shape # scalar return ( 1 , 1 )