(self)
Check if all queries have the same batch size.

        Returns
        -------
        result: bool
            Whether all the states have the same batch size.
Check if all queries have the same batch size.
Check if all queries have the same batch size .
def check_batch_size(self):
        """Check if all queries have the same batch size.

        Returns
        -------
        result: bool
            Whether all the states have the same batch size.
        """
        ind_uni = np.unique(
            [self.__state_list[i].batch_size for i in range(len(self.__state_list) - 1)], axis=0)
        if len(ind_uni) == 1:
            self.batch_size = ind_uni[0]
            return True
        else:
            return False
def check_batch_size ( self ) : ind_uni = np . unique ( [ self . __state_list [ i ] . batch_size for i in range ( len ( self . __state_list ) - 1 ) ] , axis = 0 ) if len ( ind_uni ) == 1 : self . batch_size = ind_uni [ 0 ] return True else : return False