# US 2020/0394095 A1 · System and method for handling errors in a vehicle neural network processor

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2020/0394095 A1
- Document ID: US20200394095A1
- Status: Published application
- Kind: A1
- Application number: 16/834,104
- Filed: 2020-03-30
- Published: 2020-12-17
- Earliest claimed: 2017-11-17
- Assignees: Tesla, Inc.
- Applicants: Tesla, Inc.
- Inventors: Christopher Hsiong; Emil Talpes; Debjlt Das Sarma; Peter Bannon; Kevin Hurd; Benjamin Floering
- Web page: https://patentgrep.com/patent/US20200394095A1

## CPC

- G06F 11/0772: {Means for error signaling, e.g. using interrupts, exception flags, dedicated error registers}
- G06F 11/0793: {Remedial or corrective actions (recovery from an exception in an instruction pipeline G06F9/3861; by retry G06F11/1402; for recovering from a failure of a protocol instance or entity H04L69/40)}
- G06F 11/0721: {within a central processing unit [CPU]}
- G06F 11/0739: {in a data processing system embedded in automotive or aircraft systems}
- G06F 11/0751: {Error or fault detection not based on redundancy (power supply failures G06F1/30; network fault management H04L41/06)}
- G06F 11/0757: {by exceeding a time limit, i.e. time-out, e.g. watchdogs}
- G06F 11/1438: {Restarting or rejuvenating}
- G06F 11/3006: {where the computing system is distributed, e.g. networked systems, clusters, multiprocessor systems (multiprogramming arrangements G06F9/46; allocation of resources G06F9/50)}
- G06F 11/3055: {Monitoring arrangements for monitoring the status of the computing system or of the computing system component, e.g. monitoring if the computing system is on, off, available, not available (error or fault processing without redundancy G06F11/0703; error detection or correction by redundancy in data representation G06F11/08; error detection or correction of the data by redundancy in operations G06F11/14; error detection or correction by redundancy in hardware G06F11/16)}
- G06F 11/327: {Alarm or error message display}
- G06N 3/02: Neural networks
- G06N 3/045: Combinations of networks
- G06N 3/0464: Convolutional networks [CNN, ConvNet]
- G06N 3/08: Learning methods
- G05B 23/0289: {Reconfiguration to prevent failure, e.g. usually as a reaction to incipient failure detection}
- G06N 3/044: Recurrent networks, e.g. Hopfield networks
- G06N 3/048: Activation functions
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G05B: CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS (systems for controlling or regulating non-electric variables G05D; systems for regulating electric or magnetic variables G05F; control devices or systems insofar as characterised by mechanical features only G05G)

## Abstract

A system for handling errors in a neural network includes a neural network processor for executing a neural network associated with use of a vehicle. The neural network processor includes an error detector configured to detect a data error associated with execution of the neural network and a neural network controller configured to receive a report of the data error from the error detector. In response to receiving the report, the neural network controller is further configured to signal that a pending result of the neural network is tainted without terminating execution of the neural network.

## Claims

### Claim at position 1

-20. (canceled)

### Claim 21

A method implemented by a neural network processor executing a neural network during operation of a vehicle, the neural network analyzing information obtained from one or more sensors located about the vehicle for use in autonomous operation of the vehicle, and the method comprising:
receiving an error report indicating a detected error of the neural network processor, the error disrupting functionality of the neural network processor;
determining a type of the error based on the error report; and
modifying operation of the neural network processor based on the determined type.

### Claim 22 (depends on 21)

The method of claim 21, wherein the type of the error is indicative of a data error, and wherein modifying operation of the neural network processor comprises:
identifying a pending computation of the neural network as being tainted; and
causing the identified pending computation to be ignored by the neural network processor.

### Claim 23 (depends on 22)

The method of claim 22, wherein the data error is characterized as at least one of a response error, an integrity error, a parity error, or a computational error.

### Claim 24 (depends on 22)

The method of claim 22, wherein subsequent to identifying the pending computation as being tainted, the method further comprises:
allowing operation of the neural network processor to proceed following the data error.

### Claim 25 (depends on 21)

The method of claim 21, wherein modifying the operation of the neural network processor comprises:
performing one or more remedial actions based on the indicated detected error, the one or more remedial actions including at least one of retrying execution of the neural network, executing the neural network with respect to subsequent input data, or rebooting the neural network processor.

### Claim 26 (depends on 21)

The method of claim 21, wherein the type of the error is indicative of a program error, the program error reflecting a protocol error or an instruction error, and wherein modifying operation of the neural network processor comprises retrying execution of the neural network.

### Claim 27 (depends on 21)

The method of claim 21, wherein the type of the error is indicative of a timeout error, and wherein modifying operation of the neural network comprises rebooting the neural network processor.

### Claim 28 (depends on 27)

The method of claim 27, wherein determining a type of the error based on the error report comprises:
monitoring, via a plurality of timers, idle cycles associated with different aspects of execution of the neural network processor, wherein the primary timers monitor respective elapsed times associated with the idle cycles; and
determining that the type of error is indicative of the timeout error based on at least one of the elapsed times exceeding a threshold time.

### Claim 29 (depends on 28)

The method of claim 28, wherein at least one of the plurality of timers represents a layer timer which monitors an elapsed time associated with execution of a layer of the neural network.

### Claim 30

A vehicle comprising:
one or more sensors positioned about the vehicle, the sensors collecting information reflective of a real-world environment surrounding the vehicle; and
a neural network processor for executing a neural network associated with autonomous operation of the vehicle, the neural network analyzing at least a portion of the collected information; and
a controller configured to:
receive an error report indicating a detected error of the neural network processor, the error disrupting functionality of the neural network processor;
determine a type of the error based on the error report; and
modify operation of the neural network processor based on the determined type.

### Claim 31 (depends on 30)

The vehicle of claim 30, wherein the type of the error is indicative of a data error, and wherein to modify operation of the neural network processor, the controller is further configured to:
identify a pending computation of the neural network as being tainted, wherein a result of the pending computation is ignored by the neural network processor.

### Claim 32 (depends on 31)

The vehicle of claim 31, wherein the neural network processor further comprises:
an error interrupt pin for communication with an interrupt controller, wherein the controller signals to the interrupt controller that the pending computation of the neural network is tainted via the error interrupt pin.

### Claim 33 (depends on 30)

The vehicle of claim 30, wherein the data error reflects one or more of a response error, an integrity error, a parity error, and/or a computational error.

### Claim 34 (depends on 30)

The vehicle of claim 30, wherein to modify operation of the neural network processor, the controller is further configured to:
perform one or more remedial actions based on the detected error, the remedial actions comprising (1) retrying execution of the neural network, (2) executing the neural network with respect to subsequent input data, or (3) rebooting the neural network processor.

### Claim 35 (depends on 34)

The vehicle of claim 34, wherein the neural network processor further comprises:
one or more error interrupt pins communicatively coupled to an interrupt handler, wherein the controller is further configured to set levels of the respective error interrupt pins, and wherein the interrupt handler is configured to cause performance of the remedial actions based on the set levels.

### Claim 36 (depends on 35)

The vehicle of claim 35, wherein the neural network processor further comprises:
status registers which store values indicative of the type of the error, wherein the controller is configured to identify the type of the error based on the stored values.

### Claim 37 (depends on 30)

The vehicle of claim 30, wherein the sensors comprise one or more of an imaging sensor, a microphone, or a LIDAR.

### Claim 38 (depends on 30)

The vehicle of claim 30, wherein the controller is included in the neural network processor.

### Claim 39

Non-transitory machine readable media storing instructions configured for execution by a neural network processor included in a vehicle, the vehicle including one or more sensors positioned about the vehicle, the neural network analyzing information obtained from one or more sensors located about the vehicle for use in autonomous operation of the vehicle and the neural network processor configured to:
characterize a type of the error based on information identifying a detected error associated with the execution of instructions on the neural network processor, the detected error disrupting functionality of the neural network processor; and
modify operation of the neural network processor based on the determined type.

### Claim 40 (depends on 39)

The machine readable media of claim 39, wherein the type of the error is indicative of a data error, and wherein to modify operation of the neural network processor, the neural network processor is further configured to:
causing a result of a pending computation to be ignored by the neural network processor.

### Claim 41 (depends on 39)

The machine readable media of claim 39, wherein to modify operation of the neural network processor, the neural network processor is further configured to:
perform one or more remedial actions based on the detected error, the remedial actions comprising (1) retrying execution of the neural network, (2) executing the neural network with respect to subsequent input data, or (3) rebooting the neural network processor.
