Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

CNN (Convolutional Neural Network) code testing method and apparatus

A code test and code technology, applied in the field of CNN code test methods and devices, can solve problems such as unsuitable CNN codes

Active Publication Date: 2015-12-02
BAIDU ONLINE NETWORK TECH (BEIJIBG) CO LTD
View PDF4 Cites 4 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, since the output of the deep learning algorithm is a probability value, traditional black-box testing methods, etc. are not suitable for CNN code

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • CNN (Convolutional Neural Network) code testing method and apparatus
  • CNN (Convolutional Neural Network) code testing method and apparatus
  • CNN (Convolutional Neural Network) code testing method and apparatus

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0056] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments It is a part of embodiments of the present invention, but not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without creative efforts fall within the protection scope of the present invention.

[0057] figure 1 It is a schematic flowchart of a CNN code testing method provided by an embodiment of the present invention. Such as figure 1 As shown, the method includes:

[0058] 101. Control the convolutional layer, downsampling layer, and fully connected layer in the CNN implemented by the CNN code as layers to be tested.

[0059] 102. Us...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention provides a CNN (Convolutional Neural Network) code testing method and apparatus. The testing method comprises: controlling a convolutional layer, a down-sampling layer and a full-connection layer, in a CNN, realized by CNN codes to serve as to-be-tested layers separately; and testing a code segment through a testing logic of changing an element value in a matrix as input of the code segment for realizing functions of the to-be-tested layers in the CNN codes and then judging whether the element value of the corresponding position in a matrix as output of the code segment is changed or not, thereby testing functions of the CNN codes. According to the testing method and apparatus, the CNN codes can be tested and the blank in the aspect of CNN code testing in the prior art is filled up.

Description

【Technical field】 [0001] The invention relates to the technical field of software, in particular to a CNN code testing method and device. 【Background technique】 [0002] Deep learning is a popular technology in the field of big data analysis, and is widely used in artificial intelligence fields such as image recognition, speech recognition, and natural language understanding. The core of the deep learning algorithm is its prediction module, and a classic model to realize the prediction module is a convolutional neural network (CNN). [0003] From the perspective of code, in the code implementation of deep learning-based applications, the code that implements CNN functions (referred to as CNN code) is the core part of the entire code, so the CNN code is tested to ensure its correctness, and the entire code Quality plays a key role. However, since deep learning algorithms output probabilistic values, traditional black-box testing methods, etc. are not suitable for CNN codes....

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
IPC IPC(8): G06F11/36
Inventor 韩峥
Owner BAIDU ONLINE NETWORK TECH (BEIJIBG) CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products