31-12-2020 дата публикации
Номер: US20200410354A1
Принадлежит:
Techniques are disclosed for debugging a neural network execution on a target processor. A reference processor may generate a plurality of first reference tensors for the neural network. The neural network may be repeatedly reduced to produce a plurality of lengths. For each of the lengths, a compiler converts the neural network into first machine instructions, the target processor executes the first machine instructions to generate a first device tensor, and the debugger program determines whether the first device tensor matches a first reference tensor. A shortest length is identified for which the first device tensor does not match the first reference tensor. Tensor output is enabled for a lower-level intermediate representation of the shortest neural network, and the neural network is converted into second machine instructions, which are executed by the target processor to generate a second device tensor. 1. A method of debugging a neural network execution on a target processor , the method comprising:receiving, by a debugger program operating on a host system, a request to debug an execution of a neural network on the target processor, the neural network comprising a plurality of layers;generating, using a reference processor on the host system and based on a first sample input, a plurality of first reference tensors for the neural network; converting, by a compiler operating on the host system, the neural network having the particular length into first machine instructions;', 'executing, using the target processor and based on the first sample input or on one of the plurality of first reference tensors, the first machine instructions to generate a first device tensor; and', 'determining, by the debugger program, whether the first device tensor matches a first reference tensor of the plurality of first reference tensors;, 'repeatedly reducing the plurality of layers of the neural network to produce a plurality of lengths, and for each particular length of a ...
Подробнее