WO2023245823A1 - Compute-in-memory chip and control method - Google Patents

Compute-in-memory chip and control method Download PDF

Info

Publication number
WO2023245823A1
WO2023245823A1 PCT/CN2022/109925 CN2022109925W WO2023245823A1 WO 2023245823 A1 WO2023245823 A1 WO 2023245823A1 CN 2022109925 W CN2022109925 W CN 2022109925W WO 2023245823 A1 WO2023245823 A1 WO 2023245823A1
Authority
WO
WIPO (PCT)
Prior art keywords
neural network
data
layer
neuron nodes
input
Prior art date
Application number
PCT/CN2022/109925
Other languages
French (fr)
Chinese (zh)
Inventor
黄柱光
张波
Original Assignee
深圳市芯存科技有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 深圳市芯存科技有限公司 filed Critical 深圳市芯存科技有限公司
Publication of WO2023245823A1 publication Critical patent/WO2023245823A1/en

Links

Classifications

    • BPERFORMING OPERATIONS; TRANSPORTING
    • B60VEHICLES IN GENERAL
    • B60WCONJOINT CONTROL OF VEHICLE SUB-UNITS OF DIFFERENT TYPE OR DIFFERENT FUNCTION; CONTROL SYSTEMS SPECIALLY ADAPTED FOR HYBRID VEHICLES; ROAD VEHICLE DRIVE CONTROL SYSTEMS FOR PURPOSES NOT RELATED TO THE CONTROL OF A PARTICULAR SUB-UNIT
    • B60W60/00Drive control systems specially adapted for autonomous road vehicles
    • BPERFORMING OPERATIONS; TRANSPORTING
    • B60VEHICLES IN GENERAL
    • B60WCONJOINT CONTROL OF VEHICLE SUB-UNITS OF DIFFERENT TYPE OR DIFFERENT FUNCTION; CONTROL SYSTEMS SPECIALLY ADAPTED FOR HYBRID VEHICLES; ROAD VEHICLE DRIVE CONTROL SYSTEMS FOR PURPOSES NOT RELATED TO THE CONTROL OF A PARTICULAR SUB-UNIT
    • B60W40/00Estimation or calculation of non-directly measurable driving parameters for road vehicle drive control systems not related to the control of a particular sub unit, e.g. by using mathematical models
    • BPERFORMING OPERATIONS; TRANSPORTING
    • B60VEHICLES IN GENERAL
    • B60WCONJOINT CONTROL OF VEHICLE SUB-UNITS OF DIFFERENT TYPE OR DIFFERENT FUNCTION; CONTROL SYSTEMS SPECIALLY ADAPTED FOR HYBRID VEHICLES; ROAD VEHICLE DRIVE CONTROL SYSTEMS FOR PURPOSES NOT RELATED TO THE CONTROL OF A PARTICULAR SUB-UNIT
    • B60W40/00Estimation or calculation of non-directly measurable driving parameters for road vehicle drive control systems not related to the control of a particular sub unit, e.g. by using mathematical models
    • B60W40/02Estimation or calculation of non-directly measurable driving parameters for road vehicle drive control systems not related to the control of a particular sub unit, e.g. by using mathematical models related to ambient conditions
    • BPERFORMING OPERATIONS; TRANSPORTING
    • B60VEHICLES IN GENERAL
    • B60WCONJOINT CONTROL OF VEHICLE SUB-UNITS OF DIFFERENT TYPE OR DIFFERENT FUNCTION; CONTROL SYSTEMS SPECIALLY ADAPTED FOR HYBRID VEHICLES; ROAD VEHICLE DRIVE CONTROL SYSTEMS FOR PURPOSES NOT RELATED TO THE CONTROL OF A PARTICULAR SUB-UNIT
    • B60W50/00Details of control systems for road vehicle drive control not related to the control of a particular sub-unit, e.g. process diagnostic or vehicle driver interfaces
    • BPERFORMING OPERATIONS; TRANSPORTING
    • B60VEHICLES IN GENERAL
    • B60WCONJOINT CONTROL OF VEHICLE SUB-UNITS OF DIFFERENT TYPE OR DIFFERENT FUNCTION; CONTROL SYSTEMS SPECIALLY ADAPTED FOR HYBRID VEHICLES; ROAD VEHICLE DRIVE CONTROL SYSTEMS FOR PURPOSES NOT RELATED TO THE CONTROL OF A PARTICULAR SUB-UNIT
    • B60W60/00Drive control systems specially adapted for autonomous road vehicles
    • B60W60/001Planning or execution of driving tasks
    • B60W60/0015Planning or execution of driving tasks specially adapted for safety
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N3/00Computing arrangements based on biological models
    • G06N3/02Neural networks
    • G06N3/04Architecture, e.g. interconnection topology
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N3/00Computing arrangements based on biological models
    • G06N3/02Neural networks
    • G06N3/06Physical realisation, i.e. hardware implementation of neural networks, neurons or parts of neurons
    • G06N3/063Physical realisation, i.e. hardware implementation of neural networks, neurons or parts of neurons using electronic means
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N3/00Computing arrangements based on biological models
    • G06N3/02Neural networks
    • G06N3/08Learning methods
    • BPERFORMING OPERATIONS; TRANSPORTING
    • B60VEHICLES IN GENERAL
    • B60WCONJOINT CONTROL OF VEHICLE SUB-UNITS OF DIFFERENT TYPE OR DIFFERENT FUNCTION; CONTROL SYSTEMS SPECIALLY ADAPTED FOR HYBRID VEHICLES; ROAD VEHICLE DRIVE CONTROL SYSTEMS FOR PURPOSES NOT RELATED TO THE CONTROL OF A PARTICULAR SUB-UNIT
    • B60W50/00Details of control systems for road vehicle drive control not related to the control of a particular sub-unit, e.g. process diagnostic or vehicle driver interfaces
    • B60W2050/0001Details of the control system
    • B60W2050/0002Automatic control, details of type of controller or control system architecture
    • B60W2050/0004In digital systems, e.g. discrete-time systems involving sampling
    • B60W2050/0005Processor details or data handling, e.g. memory registers or chip architecture

Definitions

  • the present application relates to the field of semiconductor integrated circuits, and in particular, to an integrated storage and calculation chip and a control method.
  • This application provides a storage and calculation integrated chip and control method to solve the technical problem that the above-mentioned automatic driving vehicle control cannot be flexibly adjusted according to the actual changeable environment, and cannot meet the control timeliness and comfort requirements of different customers.
  • the integrated storage and calculation chip includes: an acquisition unit that acquires environmental data around the vehicle; a first neural network unit that, when meeting the preset security level, Output similarities with multiple environments according to the input environmental data; a second neural network unit, the second neural network unit includes an input layer, a plurality of hidden layers, an output layer, the input layer, the output layer and the hidden layer.
  • the layer distribution includes a plurality of neuron nodes, and the plurality of neuron nodes of the input layer, the plurality of neuron nodes of the hidden layer, and the plurality of neuron nodes of the output layer are connected in turn through transmission channels, and the transmission channels
  • the channel is controlled on and off by a control switch; the network level of the hidden layer and the neuron nodes of the hidden layer, the multiple neuron nodes of the input layer, and the multiple neuron nodes of the output layer are obtained according to the similarity of multiple environments.
  • neuron nodes and closed transmission channels, and the second neural network outputs control instructions according to the similarity of the multiple environments.
  • the second neural network when training the second neural network, it includes: using the similarity of multiple environments as the input data set, using the control time as the output data set, using the control time and comfort as the evaluation function, and using a genetic algorithm to find the second neural network.
  • the first neural network unit when meeting a preset security level, outputs similarities with multiple environments based on the input environmental data; including: the first neural network unit has the same characteristics as the second neural network
  • the network structure of the first neural network is obtained according to the preset conditions, and the first neural network outputs the similarity of the multiple environments according to the environmental data.
  • the first neural network unit when meeting a preset safety level, outputs similarities with multiple environments based on the input environmental data; including: a determination unit that determines the risk of collision between the vehicle and surrounding obstacles, based on Different collision risks determine the safety level of the vehicle; the emergency processing unit directly controls the vehicle for emergency avoidance when the safety level is lower than the preset level.
  • the storage and calculation integrated chip includes: when the number of the transmission channels is greater than the number of channels of the storage and calculation integrated chip, the data of the two transmission channels are spliced to obtain the spliced data to be processed; the computing unit can The spliced data to be processed is processed through one processing batch.
  • This application provides a control method that is applied to autonomous vehicles to obtain environmental data around the vehicle; when the preset safety level is met, the first neural network unit outputs similarities with multiple environments based on the input environmental data; according to The similarity of multiple environments obtains the network level of the hidden layer and the neuron nodes of the hidden layer, the multiple neuron nodes of the input layer, the multiple neuron nodes of the output layer and the closed transmission channel , the second neural network outputs control instructions according to the similarity of the multiple environments.
  • the first neural network unit outputs similarities with multiple environments based on the input environmental data; including: determining the collision risk between the vehicle and surrounding obstacles, and based on different collision risks Determine the safety level of the vehicle; when the safety level is lower than the preset level, directly control the vehicle for emergency avoidance.
  • the data of the two transmission channels are spliced to obtain the spliced data to be processed; the computing unit can complete the splicing through one processing batch. The subsequent processing of data to be processed.
  • This application obtains the network level of the hidden layer and the neuron nodes of the hidden layer by combining the similarity of multiple environments, as well as the closed transmission channel.
  • the second neural network outputs control instructions according to the input environmental familiarity, which can be based on Different environments transform different second neural network structures, so that the best control method can be achieved, the control time is shortened, the control accuracy is improved, and the adaptability to the environment is improved.
  • through the first neural network and The cooperation of the second neural network can further increase the transmission speed of control and further shorten the control time of autonomous driving.
  • the environment recognition and decision-making modules in autonomous driving are integrated into one chip, that is, the first neural network and the second neural network.
  • a neural network chip can improve the reliability of the chip and further reduce the risk of damage, that is, improving the reliability of autonomous vehicles.
  • Figure 1 is a structural diagram of the storage and calculation integrated chip of this application.
  • Figure 2 is another structural diagram of the storage and calculation integrated chip of this application.
  • FIG. 3 is a flow chart of the control method of this application.
  • this application discloses an integrated storage and calculation chip, which is applied to autonomous driving vehicles.
  • the integrated storage and calculation chip includes: an acquisition unit to acquire environmental data around the vehicle; a first neural network unit , when the preset security level is met, the similarity with multiple environments is output based on the input environment data.
  • the second neural network unit includes an input layer, a plurality of hidden layers, and an output layer.
  • the input layer, the output layer, and the hidden layer distribution include a plurality of neuron nodes.
  • the input layer A plurality of neuron nodes, a plurality of neuron nodes of the hidden layer and a plurality of neuron nodes of the output layer are connected in sequence through transmission channels, and the transmission channels are controlled on and off by control switches.
  • the network level of the hidden layer is set to n layers
  • the number of neuron nodes of the hidden layer is set to n
  • the number of neuron nodes of the output layer is set to n
  • the number of neuron nodes of the output layer is set to n.
  • the number of neuron nodes is set to n
  • the above-mentioned neuron nodes are connected through transmission channels to form an n-layer neural network.
  • the specific structure of the second neural network can be obtained through training, and only the control accuracy and control time need to meet the preset Conditions are enough.
  • the second neural network outputs control instructions according to the similarity of the multiple environments.
  • the network level of the hidden layer is set to 1 layer
  • the neuron nodes of the hidden layer are set to 5
  • the neuron nodes of the output layer are set to 2
  • the neuron nodes of the output layer are set to 2.
  • the number of neuron nodes is set to 3, and the above neuron nodes are connected through transmission channels to form a 3-layer neural network.
  • This application obtains the network level of the hidden layer and the neuron nodes of the hidden layer by combining the similarity of multiple environments, as well as the closed transmission channel.
  • the second neural network outputs control instructions according to the input environmental familiarity, which can be based on Different environments transform different second neural network structures, so that the best control method can be achieved, the control time is shortened, the control accuracy is improved, and the adaptability to the environment is improved.
  • through the first neural network and The cooperation of the second neural network can further increase the transmission speed of control and further shorten the control time of autonomous driving.
  • the environment recognition and decision-making modules in autonomous driving are integrated into one chip, that is, the first neural network and the second neural network.
  • a neural network chip can improve the reliability of the chip and further reduce the risk of damage, that is, improving the reliability of autonomous vehicles.
  • the second neural network when training the second neural network, it includes: using the similarity of multiple environments as the input data set, using the control time as the output data set, using the control time and comfort as the evaluation function, and using a genetic algorithm to find the second neural network.
  • the driving scenario of the autonomous vehicle at this time can be determined based on the similarity of multiple environments. Different driving scenarios require different control time and comfort, such as: autonomous driving at this time The vehicle is in an accident-prone spot, and the control time of the autonomous vehicle needs to be short enough to avoid risks. In an environment where there are few vehicles around and the road is relatively smooth, the control time is the most important factor to consider, so that in different safety level situations Under the circumstances, it is hoped that the control time is the shortest and the comfort is the best.
  • Different second neural network structures can meet the conditions, but a single neural network structure cannot better take advantage of flexible processing.
  • the first neural network unit when meeting a preset security level, outputs similarities with multiple environments based on the input environmental data; including: the first neural network unit has the same characteristics as the second neural network
  • the network structure of the first neural network is obtained according to the preset conditions, and the first neural network outputs the similarity of the multiple environments according to the environmental data.
  • the input layer, output layer, and hidden layer of the first neural network are also performed in a transformation manner, which will not be described in detail here.
  • the preset condition can be a neural network structure that is set and requires the accuracy of environmental recognition to meet the preset requirements, or it can be a neural network structure with low power consumption, and its specific requirements can be Choose according to actual situation.
  • the first neural network unit when the preset safety level is met, outputs similarities with multiple environments based on the input environmental data; including a determination unit and an emergency processing unit, the determination unit determines the distance between the vehicle and surrounding obstacles The safety level of the vehicle is determined based on different collision risks; the emergency processing unit directly controls the vehicle for emergency avoidance when the safety level is lower than the preset level.
  • the storage and calculation integrated chip includes: when the number of the transmission channels is greater than the number of channels of the storage and calculation integrated chip, the data of the two transmission channels are spliced to obtain the spliced data to be processed; the computing unit can pass a The processing batch completes the processing of the spliced data to be processed.
  • the number of channels processed by the chip can be consistent with the number of transmission channels of the second neural network.
  • the number of chips is generally limited to a certain range, and the transmission channels of the chip are smaller than the input layer and hidden layer.
  • the number of transmission channels of the hidden layer and the output layer requires data processing.
  • the number of transmission channels of the input layer and the hidden layer is required.
  • the number of transmission channels of the hidden layer and the output layer may be set to 4.
  • the possible transmission channels are 3.
  • the data to be processed in the transmission channel includes data of 4 channels, and the data of the 4 channels are: first channel data, second channel data, third channel data, and fourth channel data.
  • the number of input channels of the chip is 3.
  • the third channel data, the fourth channel data and the fifth channel data are used as the data to be processed after splicing. In this way, the number of channels of the spliced data to be processed is 3.
  • the chip can complete the processing of the spliced first data to be processed through one processing batch, that is, the chip can complete the processing of the first data to be processed.
  • This application includes a control method applied to autonomous vehicles, as shown in Figure 3:
  • the control method includes the following steps.
  • Step S1 Obtain environmental data around the vehicle.
  • Step S2 When the preset security level is met, the first neural network unit outputs similarities with multiple environments based on the input environment data.
  • Step S3 Obtain the network level of the hidden layer and the neuron nodes of the hidden layer, the multiple neuron nodes of the input layer, the multiple neuron nodes of the output layer and In a closed transmission channel, the second neural network outputs control instructions according to the similarity of the multiple environments.
  • This application obtains the network level of the hidden layer and the neuron nodes of the hidden layer by combining the similarity of multiple environments, as well as the closed transmission channel.
  • the second neural network outputs control instructions according to the input environmental familiarity, which can be based on Different environments transform different second neural network structures, so that the best control method can be achieved, the control time is shortened, the control accuracy is improved, and the adaptability to the environment is improved.
  • through the first neural network and The cooperation of the second neural network can further increase the transmission speed of control and further shorten the control time of autonomous driving.
  • the environment recognition and decision-making modules in autonomous driving are integrated into one chip, that is, the first neural network and the second neural network.
  • a neural network chip can improve the reliability of the chip and further reduce the risk of damage, that is, improving the reliability of autonomous vehicles.
  • step S2 when the preset safety level is met, the first neural network unit outputs similarities with multiple environments based on the input environmental data; including: determining the collision risk between the vehicle and surrounding obstacles, and determining the collision risk between the vehicle and surrounding obstacles according to different collisions.
  • the risk determines the safety level of the vehicle; when the safety level is lower than the preset level, the vehicle is directly controlled for emergency avoidance.
  • the data of the two transmission channels are spliced to obtain the spliced data to be processed; the computing unit can complete the spliced data through one processing batch. Processing of data to be processed.
  • the number of channels processed by the chip can be consistent with the number of transmission channels of the second neural network.
  • the number of chips is generally limited to a certain range, and the transmission channels of the chip are smaller than the input layer and hidden layer.
  • the number of transmission channels of the hidden layer and the output layer requires data processing.
  • the number of transmission channels of the input layer and the hidden layer is required.
  • the number of transmission channels of the hidden layer and the output layer may be set to 4.
  • the possible transmission channels are 3.
  • the data to be processed in the transmission channel includes data of 4 channels, and the data of the 4 channels are: first channel data, second channel data, third channel data, and fourth channel data.
  • the number of input channels of the chip is 3.
  • the third channel data, the fourth channel data and the fifth channel data are used as the data to be processed after splicing. In this way, the number of channels of the spliced data to be processed is 3.
  • the chip can complete the processing of the spliced first data to be processed through one processing batch, that is, the chip can complete the processing of the first data to be processed.

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Mechanical Engineering (AREA)
  • Transportation (AREA)
  • Automation & Control Theory (AREA)
  • Mathematical Physics (AREA)
  • Health & Medical Sciences (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Biomedical Technology (AREA)
  • Biophysics (AREA)
  • Molecular Biology (AREA)
  • Data Mining & Analysis (AREA)
  • Computing Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Evolutionary Computation (AREA)
  • Software Systems (AREA)
  • General Health & Medical Sciences (AREA)
  • Computational Linguistics (AREA)
  • Human Computer Interaction (AREA)
  • Artificial Intelligence (AREA)
  • Neurology (AREA)
  • Control Of Transmission Device (AREA)
  • Traffic Control Systems (AREA)

Abstract

Disclosed in the present application are a compute-in-memory chip and a control method. The method comprises: acquiring environmental data around a vehicle; when a preset safety level is satisfied, a first neural network unit outputting a similarity to a plurality of environments according to the input environmental data; and according to the similarity to the plurality of environments, acquiring a network level of a hidden layer and neuron nodes of the hidden layer, a plurality of neuron nodes of an input layer, a plurality of neuron nodes of an output layer, and a closed transmission channel, and a second neural network outputting a control instruction according to the similarity to the plurality of environments.

Description

一种存算一体芯片和控制方法A storage and calculation integrated chip and control method
本申请要求于2022年06月22日提交中国专利局、申请号为202210708777.8、发明名称为“一种存算一体芯片,控制方法”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims priority to the Chinese patent application submitted to the China Patent Office on June 22, 2022, with the application number 202210708777.8 and the invention title "A storage and calculation integrated chip, control method", the entire content of which is incorporated herein by reference. Applying.
技术领域Technical field
本申请涉及半导体集成电路领域,尤其涉及一种存算一体芯片和控制方法。The present application relates to the field of semiconductor integrated circuits, and in particular, to an integrated storage and calculation chip and a control method.
背景技术Background technique
近年来,为了解决传统冯诺依曼计算体系结构瓶颈,存内计算芯片结构得到人们的广泛关注,其基本思想是直接利用存储器进行逻辑计算,从而减少存储器与处理器之间的数据传输量以及传输距离,降低功耗的同时提高性能。In recent years, in order to solve the bottleneck of traditional von Neumann computing architecture, the in-memory computing chip structure has received widespread attention. The basic idea is to directly use the memory to perform logical calculations, thereby reducing the amount of data transmission between the memory and the processor and transmission distance, reducing power consumption while improving performance.
现有自动驾驶的存算一体芯片结构一经定制,其电路结构即被固定下来,不能根据实际多变环境进行灵活调节,也不能满足不同客户的控制时效性和舒适性的要求。Once the existing storage and calculation integrated chip structure for autonomous driving is customized, its circuit structure is fixed and cannot be flexibly adjusted according to the actual changing environment, nor can it meet the control timeliness and comfort requirements of different customers.
技术问题technical problem
本申请提供了一种存算一体芯片,控制方法,解决上述自动驾驶车辆控制不能根据实际多变环境进行灵活调节,也不能满足不同客户的控制时效性和舒适性的要求的技术问题。This application provides a storage and calculation integrated chip and control method to solve the technical problem that the above-mentioned automatic driving vehicle control cannot be flexibly adjusted according to the actual changeable environment, and cannot meet the control timeliness and comfort requirements of different customers.
技术解决方案Technical solutions
本申请提供了一种存算一体芯片,应用于自动驾驶车辆,所述存算一体芯片包括:获取单元,获取车辆周围的环境数据;第一神经网络单元,在满足预设的安全等级时,根据输入的环境数据输出与多个环境的相似度;第二神经网络单元,所述第二神经网络单元包括输入层,多个隐藏层,输出层,所述输入层,输出层以及所述隐藏层分布包括多个神经元节点,所述输入层的多个神经元节点、所述隐藏层的多个神经元节点以及所述输出层的多个神经元节点依次通过传输通道连接,所述传输通道通过控制开关控制通断;根据多个环境的相似度获取所述隐藏层的网络层级和所述隐藏层的神经元节点,所述输入层的多个神经元节点,所述输出层的多个神经元节点以及闭合的传输通道,第二神经网络根据所述多个环境的相似度输出控制指令。This application provides an integrated storage and calculation chip for use in autonomous vehicles. The integrated storage and calculation chip includes: an acquisition unit that acquires environmental data around the vehicle; a first neural network unit that, when meeting the preset security level, Output similarities with multiple environments according to the input environmental data; a second neural network unit, the second neural network unit includes an input layer, a plurality of hidden layers, an output layer, the input layer, the output layer and the hidden layer. The layer distribution includes a plurality of neuron nodes, and the plurality of neuron nodes of the input layer, the plurality of neuron nodes of the hidden layer, and the plurality of neuron nodes of the output layer are connected in turn through transmission channels, and the transmission channels The channel is controlled on and off by a control switch; the network level of the hidden layer and the neuron nodes of the hidden layer, the multiple neuron nodes of the input layer, and the multiple neuron nodes of the output layer are obtained according to the similarity of multiple environments. neuron nodes and closed transmission channels, and the second neural network outputs control instructions according to the similarity of the multiple environments.
可选地,在训练第二神经网络时,包括:将多个环境的相似度作为输入数据集,将控制时间作为输出数据集,以控制时间和舒适性为评价函数,通过遗传算法寻找第二神经网络的网络结构,所述评价函数设置为: p=w1Aw2B,其中: w1,w2为权重, A为舒适性, B为控制时长。Optionally, when training the second neural network, it includes: using the similarity of multiple environments as the input data set, using the control time as the output data set, using the control time and comfort as the evaluation function, and using a genetic algorithm to find the second neural network. The network structure of the neural network, the evaluation function is set to: p=w1Aw2B, where: w1, w2 are weights, A is comfort, and B is control duration.
可选地,所述第一神经网络单元,在满足预设的安全等级时,根据输入的环境数据输出与多个环境的相似度;包括:所述第一神经网络单元具有第二神经网络同样的网络结构;根据预设条件来获取第一神经网络的网络结构,第一神经网络根据环境数据输出所述多个环境的相似度。Optionally, the first neural network unit, when meeting a preset security level, outputs similarities with multiple environments based on the input environmental data; including: the first neural network unit has the same characteristics as the second neural network The network structure of the first neural network is obtained according to the preset conditions, and the first neural network outputs the similarity of the multiple environments according to the environmental data.
可选地,所述第一神经网络单元,在满足预设的安全等级时,根据输入的环境数据输出与多个环境的相似度;包括:判定单元,判定车辆与周围障碍的碰撞风险,根据不同的碰撞风险判定车辆所处的安全等级;紧急处理单元,在安全等级小于预设等级时,直接控制车辆进行紧急避险。Optionally, the first neural network unit, when meeting a preset safety level, outputs similarities with multiple environments based on the input environmental data; including: a determination unit that determines the risk of collision between the vehicle and surrounding obstacles, based on Different collision risks determine the safety level of the vehicle; the emergency processing unit directly controls the vehicle for emergency avoidance when the safety level is lower than the preset level.
可选地,所述存算一体芯片包括:所述传输通道的数量大于存算一体芯片的通道的数量时,两个传输通道的数据进行拼接,得到拼接后的待处理数据;运算单元,可通过一个处理批次完成对拼接后的待处理数据的处理。Optionally, the storage and calculation integrated chip includes: when the number of the transmission channels is greater than the number of channels of the storage and calculation integrated chip, the data of the two transmission channels are spliced to obtain the spliced data to be processed; the computing unit can The spliced data to be processed is processed through one processing batch.
本申请提供一种控制方法,应用于自动驾驶车辆,获取车辆周围的环境数据;在满足预设的安全等级时,第一神经网络单元根据输入的环境数据输出与多个环境的相似度;根据多个环境的相似度获取所述隐藏层的网络层级和所述隐藏层的神经元节点,所述输入层的多个神经元节点,所述输出层的多个神经元节点以及闭合的传输通道,第二神经网络根据所述多个环境的相似度输出控制指令。This application provides a control method that is applied to autonomous vehicles to obtain environmental data around the vehicle; when the preset safety level is met, the first neural network unit outputs similarities with multiple environments based on the input environmental data; according to The similarity of multiple environments obtains the network level of the hidden layer and the neuron nodes of the hidden layer, the multiple neuron nodes of the input layer, the multiple neuron nodes of the output layer and the closed transmission channel , the second neural network outputs control instructions according to the similarity of the multiple environments.
可选地,所述在满足预设的安全等级时,第一神经网络单元根据输入的环境数据输出与多个环境的相似度;包括:判定车辆与周围障碍的碰撞风险,根据不同的碰撞风险判定车辆所处的安全等级;在安全等级小于预设等级时,直接控制车辆进行紧急避险。Optionally, when the preset safety level is met, the first neural network unit outputs similarities with multiple environments based on the input environmental data; including: determining the collision risk between the vehicle and surrounding obstacles, and based on different collision risks Determine the safety level of the vehicle; when the safety level is lower than the preset level, directly control the vehicle for emergency avoidance.
可选地,所述传输通道的数量大于存算一体芯片的通道的数量时,两个传输通道的数据进行拼接,得到拼接后的待处理数据;运算单元,可通过一个处理批次完成对拼接后的待处理数据的处理。Optionally, when the number of transmission channels is greater than the number of channels of the storage and calculation integrated chip, the data of the two transmission channels are spliced to obtain the spliced data to be processed; the computing unit can complete the splicing through one processing batch. The subsequent processing of data to be processed.
有益效果beneficial effects
本申请通过将多个环境的相似度获取所述隐藏层的网络层级和所述隐藏层的神经元节点,以及闭合的传输通道,第二神经网络根据输入的环境相识度输出控制指令,可以根据不同的环境来变换不同的第二神经网络结构,从而可以达到最佳控制的方式,缩短的控制的时间,也提高了控制的精度,提高了环境的适应能力,另外,通过第一神经网络和第二神经网络的配合,可以进一步提高控制的传输速度,进一步缩短了自动驾驶的控制的时间,另外,将自动驾驶中的环境识别和决策模块集成到一个芯片,即第一神经网络和第二神经网络一个芯片,可以提高芯片的可靠性,可以进一步降低损坏风险,即提高了自动驾驶车辆的可靠性。This application obtains the network level of the hidden layer and the neuron nodes of the hidden layer by combining the similarity of multiple environments, as well as the closed transmission channel. The second neural network outputs control instructions according to the input environmental familiarity, which can be based on Different environments transform different second neural network structures, so that the best control method can be achieved, the control time is shortened, the control accuracy is improved, and the adaptability to the environment is improved. In addition, through the first neural network and The cooperation of the second neural network can further increase the transmission speed of control and further shorten the control time of autonomous driving. In addition, the environment recognition and decision-making modules in autonomous driving are integrated into one chip, that is, the first neural network and the second neural network. A neural network chip can improve the reliability of the chip and further reduce the risk of damage, that is, improving the reliability of autonomous vehicles.
附图说明Description of the drawings
此处的附图被并入说明书中并构成本说明书的一部分,示出了符合本申请的实施例,并与说明书一起用于解释本申请的原理。为了更清楚地说明本申请实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,对于本领域普通技术人员而言,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the application and together with the description, serve to explain the principles of the application. In order to more clearly explain the embodiments of the present application or the technical solutions in the prior art, the following will briefly introduce the drawings needed to describe the embodiments or the prior art. Obviously, for those of ordinary skill in the art, It is said that other drawings can be obtained based on these drawings without exerting creative labor.
图1为本申请存算一体芯片的结构图。Figure 1 is a structural diagram of the storage and calculation integrated chip of this application.
图2为本申请存算一体芯片的另外一个结构图。Figure 2 is another structural diagram of the storage and calculation integrated chip of this application.
图3为本申请控制方法的流程图。Figure 3 is a flow chart of the control method of this application.
本发明的实施方式Embodiments of the invention
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本申请的一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are only some of the embodiments of the present application, rather than all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by those of ordinary skill in the art without creative efforts fall within the scope of protection of this application.
需要说明,本申请实施例中所有方向性指示(诸如上、下、左、右、前、后……)仅用于解释在某一特定姿态(如附图所示)下各部件之间的相对位置关系、运动情况等,如果该特定姿态发生改变时,则该方向性指示也相应地随之改变。It should be noted that all directional indications (such as up, down, left, right, front, back...) in the embodiments of this application are only used to explain the relationship between components in a specific posture (as shown in the drawings). Relative positional relationship, movement conditions, etc., if the specific posture changes, the directional indication will also change accordingly.
另外,在本申请中涉及“第一”、“第二”等的描述仅用于描述目的,而不能理解为指示或暗示其相对重要性或者隐含指明所指示的技术特征的数量。由此,限定有“第一”、“第二”的特征可以明示或者隐含地包括至少一个该特征。另外,各个实施例之间的技术方案可以相互结合,但是必须是以本领域普通技术人员能够实现为基础,当技术方案的结合出现相互矛盾或无法实现时应当认为这种技术方案的结合不存在,也不在本申请要求的保护范围之内。In addition, descriptions involving "first", "second", etc. in this application are for descriptive purposes only and cannot be understood as indicating or implying their relative importance or implicitly indicating the number of indicated technical features. Therefore, features defined as "first" and "second" may explicitly or implicitly include at least one of these features. In addition, the technical solutions in various embodiments can be combined with each other, but it must be based on the realization by those of ordinary skill in the art. When the combination of technical solutions is contradictory or cannot be realized, it should be considered that such a combination of technical solutions does not exist. , nor is it within the scope of protection required by this application.
第一方面,本申请公开了一种存算一体芯片,应用于自动驾驶车辆,如图1-2所示,存算一体芯片包括:获取单元,获取车辆周围的环境数据;第一神经网络单元,在满足预设的安全等级时,根据输入的环境数据输出与多个环境的相似度。In the first aspect, this application discloses an integrated storage and calculation chip, which is applied to autonomous driving vehicles. As shown in Figure 1-2, the integrated storage and calculation chip includes: an acquisition unit to acquire environmental data around the vehicle; a first neural network unit , when the preset security level is met, the similarity with multiple environments is output based on the input environment data.
第二神经网络单元,所述第二神经网络单元包括输入层,多个隐藏层,输出层,所述输入层,输出层以及所述隐藏层分布包括多个神经元节点,所述输入层的多个神经元节点、所述隐藏层的多个神经元节点以及所述输出层的多个神经元节点依次通过传输通道连接,所述传输通道通过控制开关控制通断。A second neural network unit. The second neural network unit includes an input layer, a plurality of hidden layers, and an output layer. The input layer, the output layer, and the hidden layer distribution include a plurality of neuron nodes. The input layer A plurality of neuron nodes, a plurality of neuron nodes of the hidden layer and a plurality of neuron nodes of the output layer are connected in sequence through transmission channels, and the transmission channels are controlled on and off by control switches.
参考图1,比如说,在本实施例中,将隐藏层的网络层级设置为n层,隐藏层的神经元节点设置为n个,输出层的神经元节点设置为n个,输出层的神经元节点设置为n个,通过传输通道将上述的神经元节点进行连接,从而形成一个n层的神经网络,第二神经网络的具体结构可以通过训练获得,只需要控制精度和控制时间满足预设条件即可。Referring to Figure 1, for example, in this embodiment, the network level of the hidden layer is set to n layers, the number of neuron nodes of the hidden layer is set to n, the number of neuron nodes of the output layer is set to n, and the number of neuron nodes of the output layer is set to n. The number of neuron nodes is set to n, and the above-mentioned neuron nodes are connected through transmission channels to form an n-layer neural network. The specific structure of the second neural network can be obtained through training, and only the control accuracy and control time need to meet the preset Conditions are enough.
根据多个环境的相似度获取所述隐藏层的网络层级和所述隐藏层的神经元节点,所述输入层的多个神经元节点,所述输出层的多个神经元节点以及闭合的传输通道,第二神经网络根据所述多个环境的相似度输出控制指令。Obtain the network level of the hidden layer and the neuron nodes of the hidden layer, the multiple neuron nodes of the input layer, the multiple neuron nodes of the output layer and the closed transmission according to the similarity of multiple environments channel, the second neural network outputs control instructions according to the similarity of the multiple environments.
参考图2,比如说,在本实施例中,将隐藏层的网络层级设置为1层,隐藏层的神经元节点设置为5个,输出层的神经元节点设置为2个,输出层的神经元节点设置为3个,通过传输通道将上述的神经元节点进行连接,从而形成一个3层的神经网络。Referring to Figure 2, for example, in this embodiment, the network level of the hidden layer is set to 1 layer, the neuron nodes of the hidden layer are set to 5, the neuron nodes of the output layer are set to 2, and the neuron nodes of the output layer are set to 2. The number of neuron nodes is set to 3, and the above neuron nodes are connected through transmission channels to form a 3-layer neural network.
本申请通过将多个环境的相似度获取所述隐藏层的网络层级和所述隐藏层的神经元节点,以及闭合的传输通道,第二神经网络根据输入的环境相识度输出控制指令,可以根据不同的环境来变换不同的第二神经网络结构,从而可以达到最佳控制的方式,缩短的控制的时间,也提高了控制的精度,提高了环境的适应能力,另外,通过第一神经网络和第二神经网络的配合,可以进一步提高控制的传输速度,进一步缩短了自动驾驶的控制的时间,另外,将自动驾驶中的环境识别和决策模块集成到一个芯片,即第一神经网络和第二神经网络一个芯片,可以提高芯片的可靠性,可以进一步降低损坏风险,即提高了自动驾驶车辆的可靠性。This application obtains the network level of the hidden layer and the neuron nodes of the hidden layer by combining the similarity of multiple environments, as well as the closed transmission channel. The second neural network outputs control instructions according to the input environmental familiarity, which can be based on Different environments transform different second neural network structures, so that the best control method can be achieved, the control time is shortened, the control accuracy is improved, and the adaptability to the environment is improved. In addition, through the first neural network and The cooperation of the second neural network can further increase the transmission speed of control and further shorten the control time of autonomous driving. In addition, the environment recognition and decision-making modules in autonomous driving are integrated into one chip, that is, the first neural network and the second neural network. A neural network chip can improve the reliability of the chip and further reduce the risk of damage, that is, improving the reliability of autonomous vehicles.
可选地,在训练第二神经网络时,包括:将多个环境的相似度作为输入数据集,将控制时间作为输出数据集,以控制时间和舒适性为评价函数,通过遗传算法寻找第二神经网络的网络结构,所述评价函数设置为: p=w1Aw2B,其中: w1,w2为权重, A为舒适性, B为控制时长。Optionally, when training the second neural network, it includes: using the similarity of multiple environments as the input data set, using the control time as the output data set, using the control time and comfort as the evaluation function, and using a genetic algorithm to find the second neural network. The network structure of the neural network, the evaluation function is set to: p=w1Aw2B, where: w1, w2 are weights, A is comfort, and B is control duration.
在本领域中,通过遗传算法寻优的方式来寻找不同的第二神经网络的结构,可以有利于提高训练的时效性。而自动驾驶过程中,根据不同的多个环境的相似度,可以确定自动驾驶车辆此时处于的驾驶场景,在不同的驾驶场景下,需要不同的控制时间和舒适性,比如:此时自动驾驶车辆处于事故多发点,需要自动驾驶车辆的控制时间要足够短以规避风险,而在周围车辆较少,道路较为平整的环境下,控制时间就最需要考虑的因素,从而在不同的安全等级情况下,希望控制时间最短,舒适性最好,不同的第二神经网络结构可以满足条件,而单一的神经网络结构并不能更好地发挥灵活处理的优势。In this field, finding different second neural network structures through genetic algorithm optimization can help improve the timeliness of training. During the autonomous driving process, the driving scenario of the autonomous vehicle at this time can be determined based on the similarity of multiple environments. Different driving scenarios require different control time and comfort, such as: autonomous driving at this time The vehicle is in an accident-prone spot, and the control time of the autonomous vehicle needs to be short enough to avoid risks. In an environment where there are few vehicles around and the road is relatively smooth, the control time is the most important factor to consider, so that in different safety level situations Under the circumstances, it is hoped that the control time is the shortest and the comfort is the best. Different second neural network structures can meet the conditions, but a single neural network structure cannot better take advantage of flexible processing.
可选地,所述第一神经网络单元,在满足预设的安全等级时,根据输入的环境数据输出与多个环境的相似度;包括:所述第一神经网络单元具有第二神经网络同样的网络结构;根据预设条件来获取第一神经网络的网络结构,第一神经网络根据环境数据输出所述多个环境的相似度。Optionally, the first neural network unit, when meeting a preset security level, outputs similarities with multiple environments based on the input environmental data; including: the first neural network unit has the same characteristics as the second neural network The network structure of the first neural network is obtained according to the preset conditions, and the first neural network outputs the similarity of the multiple environments according to the environmental data.
在本领域中,第一神经网络的输入层,输出层,隐藏层,同样采用变换额方式进行,在此不再赘述,而在环境数据的处理过程中,不同的神经网络结构的处理速度显然是不一致的,因此,预设条件可以是认为设定的,需要环境识别的精度满足预设要求的神经网络结构,也可以是功耗较小的情况下的神经网络结构,其具体的要求可以根据实际情况进行选择。通过将第一神经网络结构设置为变神经网络结构,可以进一步缩短自动驾驶车辆的控制时间,同时还可以提高环境识别的精度。In this field, the input layer, output layer, and hidden layer of the first neural network are also performed in a transformation manner, which will not be described in detail here. However, in the process of processing environmental data, the processing speed of different neural network structures is obviously are inconsistent, therefore, the preset condition can be a neural network structure that is set and requires the accuracy of environmental recognition to meet the preset requirements, or it can be a neural network structure with low power consumption, and its specific requirements can be Choose according to actual situation. By setting the first neural network structure to a variable neural network structure, the control time of the autonomous vehicle can be further shortened, and the accuracy of environment recognition can also be improved.
可选地,所述第一神经网络单元,在满足预设的安全等级时,根据输入的环境数据输出与多个环境的相似度;包括判定单元和紧急处理单元,判定单元判定车辆与周围障碍的碰撞风险,根据不同的碰撞风险判定车辆所处的安全等级;紧急处理单元在安全等级小于预设等级时,直接控制车辆进行紧急避险。Optionally, the first neural network unit, when the preset safety level is met, outputs similarities with multiple environments based on the input environmental data; including a determination unit and an emergency processing unit, the determination unit determines the distance between the vehicle and surrounding obstacles The safety level of the vehicle is determined based on different collision risks; the emergency processing unit directly controls the vehicle for emergency avoidance when the safety level is lower than the preset level.
可选地,存算一体芯片包括:所述传输通道的数量大于存算一体芯片的通道的数量时,两个传输通道的数据进行拼接,得到拼接后的待处理数据;运算单元,可通过一个处理批次完成对拼接后的待处理数据的处理。Optionally, the storage and calculation integrated chip includes: when the number of the transmission channels is greater than the number of channels of the storage and calculation integrated chip, the data of the two transmission channels are spliced to obtain the spliced data to be processed; the computing unit can pass a The processing batch completes the processing of the spliced data to be processed.
理论上,芯片加工的通道数量可以与第二神经网络传输通道的数量一致的,但是由于考虑加工成本,芯片的数量一般限定在一定的范围,而在芯片的传输通道要小于输入层与隐藏层,隐藏层与输出层的传输通道的数量,则需要对数据进行处理,例如:第二神经网络训练的过程中,需要输入层与隐藏层,隐藏层与输出层的传输通道的数量可能设置为4,但是存算一体芯片加工过程中,可能的传输通道是3,这些将数据进行处理,以防止数据堆积,同时尽量提高控制的时间,例如,输入层与隐藏层,隐藏层与输出层的传输通道的待处理数据包含4个通道的数据,4个通道的数据分别为:第一通道数据、第二通道数据、第三通道数据、第四通道数据。芯片的输入通道数为3。通过对第一通道数据和第二通道数据进行拼接,得到第五通道数据。将第三通道数据、第四通道数据和第五通道数据,作为拼接后的待处理数据。这样,拼接后的待处理数据的通道数量为3。芯片可通过一个处理批次完成对拼接后的第一待处理数据的处理,即完成对第一待处理数据的处理。Theoretically, the number of channels processed by the chip can be consistent with the number of transmission channels of the second neural network. However, due to consideration of processing costs, the number of chips is generally limited to a certain range, and the transmission channels of the chip are smaller than the input layer and hidden layer. , the number of transmission channels of the hidden layer and the output layer requires data processing. For example: in the process of training the second neural network, the number of transmission channels of the input layer and the hidden layer is required. The number of transmission channels of the hidden layer and the output layer may be set to 4. However, during the processing of the storage and computing integrated chip, the possible transmission channels are 3. These process the data to prevent data accumulation and try to increase the control time, for example, the input layer and the hidden layer, the hidden layer and the output layer. The data to be processed in the transmission channel includes data of 4 channels, and the data of the 4 channels are: first channel data, second channel data, third channel data, and fourth channel data. The number of input channels of the chip is 3. By splicing the first channel data and the second channel data, the fifth channel data is obtained. The third channel data, the fourth channel data and the fifth channel data are used as the data to be processed after splicing. In this way, the number of channels of the spliced data to be processed is 3. The chip can complete the processing of the spliced first data to be processed through one processing batch, that is, the chip can complete the processing of the first data to be processed.
本申请包括一种控制方法,应用于自动驾驶车辆,如图3所示:该控制方法包括以下步骤。This application includes a control method applied to autonomous vehicles, as shown in Figure 3: The control method includes the following steps.
步骤S1,获取车辆周围的环境数据。Step S1: Obtain environmental data around the vehicle.
步骤S2,在满足预设的安全等级时,第一神经网络单元根据输入的环境数据输出与多个环境的相似度。Step S2: When the preset security level is met, the first neural network unit outputs similarities with multiple environments based on the input environment data.
步骤S3,根据多个环境的相似度获取所述隐藏层的网络层级和所述隐藏层的神经元节点,所述输入层的多个神经元节点,所述输出层的多个神经元节点以及闭合的传输通道,第二神经网络根据所述多个环境的相似度输出控制指令。Step S3: Obtain the network level of the hidden layer and the neuron nodes of the hidden layer, the multiple neuron nodes of the input layer, the multiple neuron nodes of the output layer and In a closed transmission channel, the second neural network outputs control instructions according to the similarity of the multiple environments.
本申请通过将多个环境的相似度获取所述隐藏层的网络层级和所述隐藏层的神经元节点,以及闭合的传输通道,第二神经网络根据输入的环境相识度输出控制指令,可以根据不同的环境来变换不同的第二神经网络结构,从而可以达到最佳控制的方式,缩短的控制的时间,也提高了控制的精度,提高了环境的适应能力,另外,通过第一神经网络和第二神经网络的配合,可以进一步提高控制的传输速度,进一步缩短了自动驾驶的控制的时间,另外,将自动驾驶中的环境识别和决策模块集成到一个芯片,即第一神经网络和第二神经网络一个芯片,可以提高芯片的可靠性,可以进一步降低损坏风险,即提高了自动驾驶车辆的可靠性。This application obtains the network level of the hidden layer and the neuron nodes of the hidden layer by combining the similarity of multiple environments, as well as the closed transmission channel. The second neural network outputs control instructions according to the input environmental familiarity, which can be based on Different environments transform different second neural network structures, so that the best control method can be achieved, the control time is shortened, the control accuracy is improved, and the adaptability to the environment is improved. In addition, through the first neural network and The cooperation of the second neural network can further increase the transmission speed of control and further shorten the control time of autonomous driving. In addition, the environment recognition and decision-making modules in autonomous driving are integrated into one chip, that is, the first neural network and the second neural network. A neural network chip can improve the reliability of the chip and further reduce the risk of damage, that is, improving the reliability of autonomous vehicles.
可选地,步骤S2,在满足预设的安全等级时,第一神经网络单元根据输入的环境数据输出与多个环境的相似度;包括:判定车辆与周围障碍的碰撞风险,根据不同的碰撞风险判定车辆所处的安全等级;在安全等级小于预设等级时,直接控制车辆进行紧急避险。Optionally, step S2, when the preset safety level is met, the first neural network unit outputs similarities with multiple environments based on the input environmental data; including: determining the collision risk between the vehicle and surrounding obstacles, and determining the collision risk between the vehicle and surrounding obstacles according to different collisions. The risk determines the safety level of the vehicle; when the safety level is lower than the preset level, the vehicle is directly controlled for emergency avoidance.
可选地,传输通道的数量大于存算一体芯片的通道的数量时,两个传输通道的数据进行拼接,得到拼接后的待处理数据;运算单元,可通过一个处理批次完成对拼接后的待处理数据的处理。Optionally, when the number of transmission channels is greater than the number of channels of the storage and calculation integrated chip, the data of the two transmission channels are spliced to obtain the spliced data to be processed; the computing unit can complete the spliced data through one processing batch. Processing of data to be processed.
理论上,芯片加工的通道数量可以与第二神经网络传输通道的数量一致的,但是由于考虑加工成本,芯片的数量一般限定在一定的范围,而在芯片的传输通道要小于输入层与隐藏层,隐藏层与输出层的传输通道的数量,则需要对数据进行处理,例如:第二神经网络训练的过程中,需要输入层与隐藏层,隐藏层与输出层的传输通道的数量可能设置为4,但是存算一体芯片加工过程中,可能的传输通道是3,这些将数据进行处理,以防止数据堆积,同时尽量提高控制的时间,例如,输入层与隐藏层,隐藏层与输出层的传输通道的待处理数据包含4个通道的数据,4个通道的数据分别为:第一通道数据、第二通道数据、第三通道数据、第四通道数据。芯片的输入通道数为3。通过对第一通道数据和第二通道数据进行拼接,得到第五通道数据。将第三通道数据、第四通道数据和第五通道数据,作为拼接后的待处理数据。这样,拼接后的待处理数据的通道数量为3。芯片可通过一个处理批次完成对拼接后的第一待处理数据的处理,即完成对第一待处理数据的处理。Theoretically, the number of channels processed by the chip can be consistent with the number of transmission channels of the second neural network. However, due to consideration of processing costs, the number of chips is generally limited to a certain range, and the transmission channels of the chip are smaller than the input layer and hidden layer. , the number of transmission channels of the hidden layer and the output layer requires data processing. For example: in the process of training the second neural network, the number of transmission channels of the input layer and the hidden layer is required. The number of transmission channels of the hidden layer and the output layer may be set to 4. However, during the processing of the storage and computing integrated chip, the possible transmission channels are 3. These process the data to prevent data accumulation and try to increase the control time, for example, the input layer and the hidden layer, the hidden layer and the output layer. The data to be processed in the transmission channel includes data of 4 channels, and the data of the 4 channels are: first channel data, second channel data, third channel data, and fourth channel data. The number of input channels of the chip is 3. By splicing the first channel data and the second channel data, the fifth channel data is obtained. The third channel data, the fourth channel data and the fifth channel data are used as the data to be processed after splicing. In this way, the number of channels of the spliced data to be processed is 3. The chip can complete the processing of the spliced first data to be processed through one processing batch, that is, the chip can complete the processing of the first data to be processed.
以上所述仅是本申请的具体实施方式,使本领域技术人员能够理解或实现本申请。对这些实施例的多种修改对本领域的技术人员来说将是显而易见的,本文中所定义的一般原理可以在不脱离本申请的精神或范围的情况下,在其它实施例中实现。因此,本申请将不会被限制于本文所示的这些实施例,而是要符合与本文所申请的原理和新颖特点相一致的最宽的范围。The above descriptions are only specific embodiments of the present application, enabling those skilled in the art to understand or implement the present application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be practiced in other embodiments without departing from the spirit or scope of the application. Thus, the present application is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features claimed herein.

Claims (8)

  1. 一种存算一体芯片,应用于自动驾驶车辆,其中,所述存算一体芯片包括:An integrated storage and calculation chip, used in autonomous vehicles, wherein the integrated storage and calculation chip includes:
    获取单元,获取车辆周围的环境数据;The acquisition unit acquires environmental data around the vehicle;
    第一神经网络单元,在满足预设的安全等级时,根据输入的环境数据输出与多个环境的相似度;以及The first neural network unit, when meeting the preset security level, outputs similarities with multiple environments based on the input environmental data; and
    第二神经网络单元,所述第二神经网络单元包括输入层,多个隐藏层,输出层,所述输入层,输出层以及所述隐藏层分布包括多个神经元节点,所述输入层的多个神经元节点、所述隐藏层的多个神经元节点以及所述输出层的多个神经元节点依次通过传输通道连接,所述传输通道通过控制开关控制通断;A second neural network unit. The second neural network unit includes an input layer, a plurality of hidden layers, and an output layer. The input layer, the output layer, and the hidden layer distribution include a plurality of neuron nodes. The input layer A plurality of neuron nodes, a plurality of neuron nodes of the hidden layer and a plurality of neuron nodes of the output layer are connected in turn through transmission channels, and the transmission channels are controlled on and off by control switches;
    根据多个环境的相似度获取所述隐藏层的网络层级和所述隐藏层的神经元节点,所述输入层的多个神经元节点,所述输出层的多个神经元节点以及闭合的传输通道,第二神经网络根据所述多个环境的相似度输出控制指令。Obtain the network level of the hidden layer and the neuron nodes of the hidden layer, the multiple neuron nodes of the input layer, the multiple neuron nodes of the output layer and the closed transmission according to the similarity of multiple environments channel, the second neural network outputs control instructions according to the similarity of the multiple environments.
  2. 根据权利要求1所述的存算一体芯片,其中,在训练第二神经网络时,包括:将多个环境的相似度作为输入数据集,将控制时间作为输出数据集,以控制时间和舒适性为评价函数,通过遗传算法寻找第二神经网络的网络结构,所述评价函数设置为: p=w1A-w2B,其中: w1,w2为权重, A为舒适性, B为控制时长。The storage and calculation integrated chip according to claim 1, wherein when training the second neural network, it includes: using the similarity of multiple environments as an input data set and using the control time as an output data set to control time and comfort. is the evaluation function, and the network structure of the second neural network is found through genetic algorithm. The evaluation function is set as: p=w1A-w2B, where: w1, w2 are weights, A is comfort, and B is the control duration.
  3. 根据权利要求1或2所述的存算一体芯片,其中,所述第一神经网络单元,在满足预设的安全等级时,根据输入的环境数据输出与多个环境的相似度;包括:The storage and calculation integrated chip according to claim 1 or 2, wherein the first neural network unit, when meeting the preset security level, outputs similarities with multiple environments based on the input environmental data; including:
    所述第一神经网络单元具有第二神经网络同样的网络结构;The first neural network unit has the same network structure as the second neural network;
    根据预设条件来获取第一神经网络的网络结构,第一神经网络根据环境数据输出所述多个环境的相似度。The network structure of the first neural network is obtained according to the preset conditions, and the first neural network outputs the similarity of the multiple environments according to the environmental data.
  4. 根据权利要求3所述的存算一体芯片,其中,包括:所述第一神经网络单元,在满足预设的安全等级时,根据输入的环境数据输出与多个环境的相似度;包括:The storage and calculation integrated chip according to claim 3, which includes: the first neural network unit, when meeting the preset security level, outputs similarities with multiple environments according to the input environmental data; including:
    判定单元,判定车辆与周围障碍的碰撞风险,根据不同的碰撞风险判定车辆所处的安全等级;The determination unit determines the risk of collision between the vehicle and surrounding obstacles, and determines the safety level of the vehicle based on different collision risks;
    紧急处理单元,在安全等级小于预设等级时,直接控制车辆进行紧急避险。The emergency processing unit directly controls the vehicle for emergency evacuation when the safety level is lower than the preset level.
  5. 根据权利要求1所述的存算一体芯片,其中,所述存算一体芯片包括:所述传输通道的数量大于存算一体芯片的通道的数量时,两个传输通道的数据进行拼接,得到拼接后的待处理数据;运算单元,可通过一个处理批次完成对拼接后的待处理数据的处理。The storage and calculation integrated chip according to claim 1, wherein the storage and calculation integrated chip includes: when the number of the transmission channels is greater than the number of channels of the storage and calculation integrated chip, the data of the two transmission channels are spliced to obtain the splicing The final data to be processed; the computing unit can complete the processing of the spliced data to be processed through one processing batch.
  6. 一种控制方法,应用于自动驾驶车辆,其中,包括:A control method applied to autonomous vehicles, including:
    获取车辆周围的环境数据;Obtain environmental data around the vehicle;
    在满足预设的安全等级时,第一神经网络单元根据输入的环境数据输出与多个环境的相似度;When the preset security level is met, the first neural network unit outputs similarities with multiple environments based on the input environment data;
    根据多个环境的相似度获取所述隐藏层的网络层级和所述隐藏层的神经元节点,所述输入层的多个神经元节点,所述输出层的多个神经元节点以及闭合的传输通道,第二神经网络根据所述多个环境的相似度输出控制指令。Obtain the network level of the hidden layer and the neuron nodes of the hidden layer, the multiple neuron nodes of the input layer, the multiple neuron nodes of the output layer and the closed transmission according to the similarity of multiple environments channel, the second neural network outputs control instructions according to the similarity of the multiple environments.
  7. 根据权利要求6所述的控制方法,其中,包括:所述在满足预设的安全等级时,第一神经网络单元根据输入的环境数据输出与多个环境的相似度;包括:The control method according to claim 6, comprising: when the preset security level is met, the first neural network unit outputs similarities with multiple environments according to the input environmental data; including:
    判定车辆与周围障碍的碰撞风险,根据不同的碰撞风险判定车辆所处的安全等级;Determine the risk of collision between the vehicle and surrounding obstacles, and determine the safety level of the vehicle based on different collision risks;
    在安全等级小于预设等级时,直接控制车辆进行紧急避险。When the safety level is lower than the preset level, the vehicle is directly controlled for emergency avoidance.
  8. 根据权利要求6所述的控制方法,其中,包括:所述传输通道的数量大于存算一体芯片的通道的数量时,两个传输通道的数据进行拼接,得到拼接后的待处理数据;运算单元,可通过一个处理批次完成对拼接后的待处理数据的处理。The control method according to claim 6, which includes: when the number of the transmission channels is greater than the number of channels of the storage and calculation integrated chip, the data of the two transmission channels are spliced to obtain the spliced data to be processed; the computing unit , the processing of the spliced data to be processed can be completed through one processing batch.
PCT/CN2022/109925 2022-06-22 2022-08-03 Compute-in-memory chip and control method WO2023245823A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202210708777.8A CN115071757A (en) 2022-06-22 2022-06-22 Storage and calculation integrated chip and control method
CN202210708777.8 2022-06-22

Publications (1)

Publication Number Publication Date
WO2023245823A1 true WO2023245823A1 (en) 2023-12-28

Family

ID=83253726

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/109925 WO2023245823A1 (en) 2022-06-22 2022-08-03 Compute-in-memory chip and control method

Country Status (2)

Country Link
CN (1) CN115071757A (en)
WO (1) WO2023245823A1 (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5285523A (en) * 1990-09-25 1994-02-08 Nissan Motor Co., Ltd. Apparatus for recognizing driving environment of vehicle
CN111081067A (en) * 2019-12-27 2020-04-28 武汉大学 Vehicle collision early warning system and method based on IGA-BP neural network under vehicle networking environment
CN111611197A (en) * 2019-02-26 2020-09-01 北京知存科技有限公司 Operation control method and device of software-definable storage and calculation integrated chip
CN111923919A (en) * 2019-05-13 2020-11-13 广州汽车集团股份有限公司 Vehicle control method, vehicle control device, computer equipment and storage medium
CN114274980A (en) * 2022-01-27 2022-04-05 中国第一汽车股份有限公司 Trajectory control method, trajectory control device, vehicle and storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5285523A (en) * 1990-09-25 1994-02-08 Nissan Motor Co., Ltd. Apparatus for recognizing driving environment of vehicle
CN111611197A (en) * 2019-02-26 2020-09-01 北京知存科技有限公司 Operation control method and device of software-definable storage and calculation integrated chip
CN111923919A (en) * 2019-05-13 2020-11-13 广州汽车集团股份有限公司 Vehicle control method, vehicle control device, computer equipment and storage medium
CN111081067A (en) * 2019-12-27 2020-04-28 武汉大学 Vehicle collision early warning system and method based on IGA-BP neural network under vehicle networking environment
CN114274980A (en) * 2022-01-27 2022-04-05 中国第一汽车股份有限公司 Trajectory control method, trajectory control device, vehicle and storage medium

Also Published As

Publication number Publication date
CN115071757A (en) 2022-09-20

Similar Documents

Publication Publication Date Title
EP3699698A1 (en) Method, device and apparatus for processing control parameter, and storage medium
CN113850363A (en) Techniques for applying driving norms to automated vehicle behavior predictions
US11654899B2 (en) Method and apparatus for avoidance control of vehicle, electronic device and storage medium
CN113085842B (en) Vehicle control method and device and vehicle
US20200262436A1 (en) Method, device, and terminal apparatus for invoking automatic driving reference line
CN111024082B (en) Method and device for planning local path of robot and robot
CN110472529A (en) Target identification navigation methods and systems
CN109795492A (en) Autonomous driving vehicle drives switching method, system, equipment and storage medium
WO2022252457A1 (en) Autonomous driving control method, apparatus and device, and readable storage medium
CN111739342A (en) Method, device, medium, and vehicle for avoiding vehicle ahead of side
CN112580179A (en) High-precision map intersection lane shape updating method and system, server and medium
EP3699717A1 (en) Velocity trajectory generation method, apparatus, and storage medium
WO2023011172A1 (en) Driving behavior determination method and related device thereof
CN111831354A (en) Data precision configuration method, device, chip array, equipment and medium
CN114323051B (en) Intersection driving track planning method and device and electronic equipment
CN111098842A (en) Vehicle speed control method and related equipment
CN113671941A (en) Trajectory planning method, device, equipment and storage medium
CN107392387A (en) A kind of dispatching method of AGV optimal control times
WO2023245823A1 (en) Compute-in-memory chip and control method
CN113741223A (en) Vehicle remote control method, device, equipment, medium and automatic driving vehicle
CN113625753A (en) Method for guiding neural network to learn maneuvering flight of unmanned aerial vehicle by expert rules
JP2023541167A (en) Map matching methods, devices, electronic devices and storage media
WO2023004698A1 (en) Method for intelligent driving decision-making, vehicle movement control method, apparatus, and vehicle
CN113556242B (en) Method and equipment for performing inter-node communication based on multi-processing nodes
CN113805578A (en) Unmanned vehicle path optimization method and related equipment

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 22947564

Country of ref document: EP

Kind code of ref document: A1