Introduction

Overview

TBE provides a TVM-based DSL operator verification framework, which is used to test the DSL operators on the CPU to verify the algorithm logic implementation of the operator.

You can use NumPy to construct input golden data, compare the DSL output result with the expected result, and print the intermediate tensor to help developers locate the logic errors during DSL calculation.

You can obtain the definition of the testing API from the python/site-packages/tbe/common/testing/testing.py file in the CANN software installation directory.

API Usage

Configure the basic CANN environment variables by referring to Environment Setup before using TBE DSL APIs.