---
title: 功能说明
description: 基于传统flash attention按照layerId管理kvcache的机制计算attention score。
url: "https://www.hiascend.com/document/detail/zh/canncommercial/900/API/ascendtb/ascendtb_01_0257.html"
---

# 功能说明

基于传统flash attention按照layerId管理kvcache的机制计算attention score。
