Apparatus and Methods for Comparing Vectors
AssigneeCambricon Technologies Corporation Limited
InventorsDong Han, Xiao Zhang, Shaoli Liu, Tianshi Chen, Yunji Chen
Life of this patent
Estimating the term…
Abstract
Aspects for vector comparison in neural network are described herein. The aspects may include a direct memory access unit configured to receive a first vector and a second vector from a storage device. The first vector may include one or more first elements and the second vector may include one or more second elements. The aspects may further include a computation module that includes one or more comparers respectively configured to generate a comparison result by comparing one of the one or more first elements to a corresponding one of the one or more second elements in accordance with an instruction.
Claims20
An apparatus for vector comparison in a neural network, comprising:
- a controller unit configured to receive a vector comparison instruction;
- a direct memory access unit configured to receive a first vector and a second vector from a storage device, wherein the first vector includes one or more first elements and the second vector includes one or more second elements;
- and
- a computation module that includes one or more comparers respectively configured to generate a comparison result by comparing one of the one or more first elements to a corresponding one of the one or more second elements in accordance with the vector comparison instruction.
A method for vector comparison in a neural network, comprising:
- receiving, by a controller unit, a vector comparison instruction;
- receiving, by a direct memory access unit, a first vector and a second vector from a storage device, wherein the first vector includes one or more first elements and the second vector includes one or more second elements;
- and
- respectively generating, by one or more comparers of a computation module, a comparison result by comparing one of the one or more first elements to a corresponding one of the one or more second elements in accordance with the vector comparison instruction.
An apparatus for vector comparison in a neural network, comprising:
- a controller unit configured to receive a vector comparison instruction;
- a direct memory access unit configured to receive a first vector and a second vector from a storage device, wherein the first vector includes one or more first elements and the second vector includes one or more second elements;
- and
- a computation module that includes one or more comparers respectively configured to generate a comparison result by comparing one of the one or more first elements to a corresponding one of the one or more second elements in accordance with the vector comparison instruction, wherein the vector comparison instruction includes a bit length of the first vector and the second vector.
Dependencies are inferred from the claim text.