Patent ID: 11972238
Assignee: GOOGLE LLC
Field: Computer technology (Electrical engineering)
Classification: CPC G  Y | IPC G

Claim 0:
1. A method performed by one or more data processing apparatus, the method comprising:
receiving data for a program, the data including (i) a set of first operators that each represent a numerical operation performed on numerical values having a first level of precision and (ii) a set of second operators that each represent a numerical operation performed on numerical values having a second level of precision that is a different level of precision from the first level of precision;
identifying, for a first operator of the set of first operators, that a downstream operator of the first operator is a second operator of the set of second operators, the downstream operator being an operator that is performed after the first operator and using an output of the first operator;
adjusting a precision of numerical values output by the operation represented by the first operator to the second level of precision;
wherein whenever (i) the first operator is a precision pass-through operator for which an input precision of the precision pass-through operator matches an output precision of the precision pass-through operator and (ii) an output precision of an upstream operator for the first operator is determined to maintain the first level of precision, the upstream operator being an operator that is performed before the first operator and the output of the upstream operator is used as an input to the first operator, maintaining the precision of numerical values input to the first operator at the first level of precision;
generating a modified version of the program including the adjusted first operator; and
causing execution of the modified version of the program by one or more hardware processors.