Sionnx:用于ONNX连接器的自动单元测试生成器
Sionnx: Automatic Unit Test Generator for ONNX Conformance
摘要:
开放神经网络交换(ONNX)是一种表示AI模型的开放格式,并得到许多机器学习框架的支持。虽然ONNX定义了跨各种框架的统一和可移植计算运算符,但这些运算符的一致性测试不足,这使得很难验证ONNX后端实现中的运算符行为是否符合ONNX标准。在本文中,我们提出了第一个自动单元测试生成器名为Sionnx的ONNX实现的合规性验证。首先,我们提出了一个紧凑而完整的规则集来描述操作符的属性和操作数的属性。其次,我们设计了一个操作符规约语言(OSL),为操作符的语法提供一个高层次的描述。最后,通过这种易于使用的规约语言,我们能够构建一个完整的测试规范,该规范利用LLVM TableGen自动为覆盖范围更大的ONNX运营商生成单元测试。Sionnx是轻量级和灵活的,以支持跨框架验证。Sionnx框架在github存储库(https://github.com/alibaba/Sionnx)中是开源的。
英文摘要:
Open Neural Network Exchange (ONNX) is an open format to represent AI models and is supported by many machine learning frameworks. While ONNX defines unified and portable computation operators across various frameworks, the conformance tests for those operators are insufficient, which makes it difficult to verify if an operator's behavior in an ONNX backend implementation complies with the ONNX standard. In this paper, we present the first automatic unit test generator named Sionnx for verifying the compliance of ONNX implementation. First, we propose a compact yet complete set of rules to describe the operator's attributes and the properties of its operands. Second, we design an Operator Specification Language (OSL) to provide a high-level description for the operator's syntax. Finally, through this easy-to-use specification language, we are able to build a full testing specification which leverages LLVM TableGen to automatically generate unit tests for ONNX operators with much large coverage. Sionnx is lightweight and flexible to support cross-framework verification. The Sionnx framework is open-sourced in the github repository (https://github.com/alibaba/Sionnx).
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。