Sparsity control based on hardware for deep-neural networks
AssigneeIntel Corporation
InventorsSofiane Yous, Hamza Yous
Life of this patent
Estimating the term…
Abstract
Systems, methods, computer program products, and apparatuses to transform a weight space of an inference model to increase the compute efficiency of a target inference platform. A density of a weight space can be determined, and a transformation parameter derived based on the determined density. The weight space can be re-ordered based on the transformation parameter to balance the compute load between the processing elements (PEs) of the target platform, and as such, reduce the idle time and/or stalls of the PEs.
Claims21
1-20. (canceled)
One or more non-transitory computer-readable media storing instructions executable to perform operations, the operations comprising:
- determining, based on the one or more features of a hardware device, a transformation parameter for a neural network model, the one or more features of the hardware device comprising a number of processing elements in the hardware device;
- transforming a weight tensor of a first layer in the neural network model based on the transformation parameter, the transformed weight tensor of the first layer having same weights as the weight tensor of the first layer and having a different shape from the weight tensor of the first layer;
- transforming a weight tensor of a second layer in the neural network model based on the transformation parameter, the second layer arranged after the first layer in the neural network model, the transformed weight tensor of the first layer having same weights as the weight tensor of the second layer and having a different shape from the weight tensor of the second layer;
- and
- executing, by the hardware device, the first layer and second layer of the neural network model,
- wherein a total number of processing elements used for executing the first layer or the second layer is reduced by transforming the weight tensor of the first layer and the weight tensor of the first layer.
An apparatus, comprising:
- a computer processor for executing computer program instructions;
- and
- a non-transitory computer-readable memory storing computer program instructions executable by the computer processor to perform operations, the operations comprising:
- determining, based on the one or more features of a hardware device, a transformation parameter for a neural network model, the one or more features of the hardware device comprising a number of processing elements in the hardware device,
- transforming a weight tensor of a first layer in the neural network model based on the transformation parameter, the transformed weight tensor of the first layer having same weights as the weight tensor of the first layer and having a different shape from the weight tensor of the first layer,
- transforming a weight tensor of a second layer in the neural network model based on the transformation parameter, the second layer arranged after the first layer in the neural network model, the transformed weight tensor of the first layer having same weights as the weight tensor of the second layer and having a different shape from the weight tensor of the second layer, and
- executing, by the hardware device, the first layer and second layer of the neural network model,
- wherein a total number of processing elements used for executing the first layer or the second layer is reduced by transforming the weight tensor of the first layer and the weight tensor of the first layer.
A method, comprising:
- determining, based on the one or more features of a hardware device, a transformation parameter for a neural network model, the one or more features of the hardware device comprising a number of processing elements in the hardware device;
- transforming a weight tensor of a first layer in the neural network model based on the transformation parameter, the transformed weight tensor of the first layer having same weights as the weight tensor of the first layer and having a different shape from the weight tensor of the first layer;
- transforming a weight tensor of a second layer in the neural network model based on the transformation parameter, the second layer arranged after the first layer in the neural network model, the transformed weight tensor of the first layer having same weights as the weight tensor of the second layer and having a different shape from the weight tensor of the second layer;
- and
- executing, by the hardware device, the first layer and second layer of the neural network model,
- wherein a total number of processing elements used for executing the first layer or the second layer is reduced by transforming the weight tensor of the first layer and the weight tensor of the first layer.
Dependencies are inferred from the claim text.