def shared_iobuf_size(self, shape, parallelism):
        """
        Computes the backend specific size needed for an iobuf with a specified
        shape that is meant to be shared between layers.

        Arguments:
            shape (tuple): Requested iobuf shape
            parallelism (string): Parallelism of layer requesting this iobuf

        Returns:
            int: Size of required iobuf
        """
        num_dev = 1 if ('Data', 'Model') in parallelism else getattr(self, 'num_dev', 1)
        return num_dev * np.prod(shape)
dataset/ETHPy150Open NervanaSystems/neon/neon/backends/backend.py/Backend.shared_iobuf_size/swapped operands of `in`