Data Processing Method and Data Processing Apparatus
AssigneeHuawei Technologies Co., Ltd.
InventorsYuanyong Luo, Hongxi Dong
Life of this patent
Estimating the term…
Abstract
A processor core obtains input data of an objective function through an input interface. The processor core determines, based on a first index and a second index, a polynomial coefficient corresponding to the input data. The processor core performs polynomial calculation based on a data bit and the polynomial coefficient to obtain output data of the objective function, and outputs the output data of the objective function through an output interface.
Claims20
A method comprising:
- obtaining input data of an objective function, wherein the objective function comprises first segment ranges, wherein each of the first segment ranges comprises a plurality of second segment ranges, wherein the plurality of second segment ranges are in a one-to-one correspondence with a plurality of polynomial coefficients, wherein the input data comprises a first index, a second index, and a data bit, wherein the first index corresponds to a first segment range to which the data bit belongs, wherein the second index corresponds to a second segment range to which the data bit belongs, and wherein a first bit width of the second index is related to a slope of the objective function in the first segment range;
- determining based on the first index and the second index, a polynomial coefficient corresponding to the data bit;
- performing polynomial calculation based on the data bit and the polynomial coefficient to obtain output data of the objective function;
- and
- outputting the output data.
The method 7, wherein performing the polynomial calculation comprises:
- performing the polynomial calculation based on the data bit and the polynomial coefficient to obtain a calculation result of the objective function;
- and
- processing the calculation result, the sign bit, and the exponential value based on the feature to obtain the output data.
An apparatus comprising:
- an input interface configured to obtain input data of an objective function, wherein the objective function comprises first segment ranges, wherein each of the first segment ranges comprises a plurality of second segment ranges, wherein the plurality of second segment ranges are in a one-to-one correspondence with a plurality of polynomial coefficients, wherein the input data comprises a first index, a second index, and a data bit, wherein the first index corresponds to a first segment range to which the data bit belongs, wherein the second index corresponds to a second segment range to which the data bit belongs, and wherein a first bit width of the second index is related to a slope of the objective function in the first segment range;
- one or more processor cores configured to:
- determine, based on the first index and the second index, a polynomial coefficient corresponding to the data bit;
- and
- perform polynomial calculation based on the data bit and the polynomial coefficient to obtain output data of the objective function;
- and
- an output interface configured to output the output data.
A computer program product comprising computer-executable instructions that are stored on a non-transitory computer-readable storage medium and that, when executed by one or more processor cores of an apparatus, cause the apparatus to:
- obtain input data of an objective function, wherein the objective function comprises first segment ranges, wherein each of the first segment ranges comprises a plurality of second segment ranges, wherein the plurality of second segment ranges are in a one-to-one correspondence with a plurality of polynomial coefficients, wherein the input data comprises a first index, a second index, and a data bit, wherein the first index corresponds to a first segment range to which the data bit belongs, wherein the second index corresponds to a second segment range to which the data bit belongs, and wherein a first bit width of the second index is related to a slope of the objective function in the first segment range;
- determine, based on the first index and the second index, a polynomial coefficient corresponding to the data bit;
- perform polynomial calculation based on the data bit and the polynomial coefficient to obtain output data of the objective function;
- and
- output the output data.
Dependencies are inferred from the claim text.