'Return the shape of the OpTreeNode.'

@property
def shape(self):

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