async sample(logits) {
        throw Error("sample should be implemented in subclasses.")
    }
Abstract method for sampling the logits.
@param {Tensor} logits
@throws {Error} If not implemented in subclass.
@returns {Promise<[bigint, number][]>}