CROSS REFERENCE TO RELATED APPLICATIONS

This application claims priority and benefits to Chinese Application No. 201910677739.9, filed on Jul. 25, 2019, the entire content of which is incorporated herein by reference.

TECHNICAL FIELD

The present disclosure relates to a computer field, and more particularly, to a method for configuring vector operation executed by a computing device, a vector operation method executed by a computing device, an apparatus, a device, and a computer-readable storage medium.

BACKGROUND

With the development of artificial intelligence (AI) technology, a field of deep learning becomes a hotspot of current research. In the deep learning, a large number of vector operations are used. Hardware (for example, graphics processors (CPUs) or some application-specific custom integrated circuits (ASICs)) related to the deep learning have been developed.

SUMMARY

Embodiments of the present disclosure provide a method, executed by a computing device, for configuring vector operations. The method includes: obtaining information indicating at least one configurable vector operation parameter, in which the information indicating the at least one configurable vector operation parameter indicates a type and value of the configurable vector operation parameter; and based on the type and value of the configurable vector operation parameter, configuring a plurality of vector operation units to enable each of the vector operation units to execute a target vector operation comprising two or more basic vector operations defined based on the type and value of the configurable vector operation parameter.

Embodiments of the present disclosure provide a device, executed by a computing device, for configuring vector operation. The device includes: a controller, configured to obtain information indicating at least one configurable vector operation parameter, wherein the information indicating the at least one configurable vector operation parameter indicates a type and value of the configurable vector operation parameter; and a computing unit configured to configure a plurality of the vector operation units based on the type and value of the configurable vector operation parameter to enable each of the vector operation units to execute a target vector operation comprising two or more basic vector operations defined based on the type and value of the configurable vector operation parameter.

Embodiments of the present disclosure provide a computer readable storage medium having a computing program stored thereon. When the program is executed by a processor, a method for configuring a vector operation is implemented. The method includes: obtaining information indicating at least one configurable vector operation parameter, in which the information indicating the at least one configurable vector operation parameter indicates a type and value of the configurable vector operation parameter; and based on the type and value of the configurable vector operation parameter, configuring a plurality of vector operation units to enable each of the vector operation units to execute a target vector operation comprising two or more basic vector operations defined based on the type and value of the configurable vector operation parameter.

It should be understood that the content described in the summary section is not intended to limit key or important features of embodiments of the present disclosure, nor is it intended to limit the scope of the present disclosure. Additional features of the present disclosure will become readily understood from the following description.

