Neural Network Processor Instruction Generation for Channel Mismatch

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Neural network processors experience resource wastage due to the mismatch between the number of channels they support for parallel processing and the number of channels in the input feature data, leading to suboptimal utilization of computational resources.

Innovation Solution

An instruction generating method that determines target splicing information based on hardware parameters and input feature data parameters, allowing for efficient splicing of input feature data to match the number of channels supported by the neural network processor for parallel processing.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Productivity

If the neural network processor supports a large number of channels for parallel processing, then computational efficiency is improved, but computational resources are wasted when the input feature data has fewer channels

Engineering Contradiction:
Improvecomputational efficiencyVSAvoidcomputational resource waste
Core Design Contradiction:
ProductivityVSLoss of energy

Solution Approach 1:

The input feature data with fewer channels is segmented and spliced with other data to form a complete data set that matches the processor's channel capacity. This allows the processor to operate at full capacity without wasting computational resources on unused channels.

Inventive Principle:
Principle #1Segmentation

Solution Approach 2:

Multiple input feature data sets are merged or spliced together to create a combined data set whose channel count matches the neural network processor's supported channel capacity. This ensures full utilization of the processor's parallel processing capabilities.

Inventive Principle:
Principle #5Merging (Combining)

2Adaptability or versatility

If the number of channels in input feature data is increased to match processor capacity, then resource utilization is improved, but data preprocessing complexity increases

Engineering Contradiction:
Improveresource utilizationVSAvoiddata preprocessing complexity
Core Design Contradiction:
Adaptability or versatilityVSDevice complexity

Solution Approach 1:

The splicing operation is performed in advance during the instruction generation phase, before the actual neural network processing. This preliminary preparation ensures that the data is properly formatted for full processor utilization without adding complexity during the critical processing phase.

Inventive Principle:
Principle #10Preliminary action

Solution Approach 2:

The instruction generating apparatus acts as an intermediary that automatically performs the splicing operation and generates appropriate processing instructions. This mediator handles the preprocessing complexity, shielding the main processing system from the complexity of data alignment.

Inventive Principle:
Principle #24Intermediary (Mediator)

Data Source

PatentUS20250021806A1Instruction generating method, apparatus and electronic device
Publication Date: 2025.01.16 BEIJING HORIZON INFORMATION TECH CO LTD
  • US20250021806A1 patent drawing
  • US20250021806A1 patent drawing
  • US20250021806A1 patent drawing

AI summary

Disclosed are an instruction generating method, an apparatus and an electronic device. The present disclosure relates to the technical field of integrated circuits. The method comprises determining parameter information about input feature data to be processed by a function operator in a neural network model; determining hardware parameters supported by the neural network processor; determining target splicing information corresponding to the parameter information about the input feature data based on the hardware parameters and the parameter information about the input feature data; and generating instructions executable by the neural network processor based on the target splicing information. The technical solution of the present disclosure may avoid the problem of waste of computational resources due to the number of channels supported by the neural network processor for parallel processing is greater than the number of channels of input feature data, thereby fully utilizing the computational resources of the neural network processor.