ct2rs 0.9.19

Rust bindings for OpenNMT/CTranslate2
Documentation
#include "ctranslate2/ops/flash_attention.h"

#include "dispatch.h"

namespace ctranslate2 {
  namespace ops {
    template<>
    void FlashAttention::compute<Device::CPU>(StorageView&,
                                               StorageView&,
                                               StorageView&,
                                               StorageView&,
                                               StorageView*,
                                               StorageView*,
                                               StorageView*,
                                               bool,
                                               StorageView*,
                                               StorageView*,
                                               const bool,
                                               StorageView*,
                                               dim_t) const {
      throw std::runtime_error("FlashAttention do not support for CPU");
    }
  }
}