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

rnn code testing method and device

A code test and code technology, applied in the field of RNN code test methods and devices, can solve the problems that linear models are not suitable for RNN codes, not suitable for RNN codes, etc.

Active Publication Date: 2017-12-26
BAIDU ONLINE NETWORK TECH (BEIJIBG) CO LTD
View PDF2 Cites 0 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 RNN codes
In addition, since RNN is a nonlinear model, the transformation test method for linear models is not suitable for RNN codes

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
  • rnn code testing method and device
  • rnn code testing method and device
  • rnn code testing method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0035] 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.

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

[0037] 101. Control the hidden layer and the output layer in the RNN implemented by the RNN code as the layers to be tested respectively.

[0038] 102. Use the initial ...

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 present invention provides an RNN (Recurrent Neural Network) code testing method and apparatus. The method comprises the steps: using a hidden layer and an output layer in an RNN that controls RNN code implementation as to-be-tested layers; using an initial matrix as an input of a code segment that achieves the functions of the to-be-tested layers in the RNN code, and controlling the operation of the code segment to obtain an initial result matrix output by the code segment; according to the preset test times, changing an element value of the initial matrix every time to obtain a reference matrix, using the reference matrix as the input of the code segment, controlling the operation of the code segment again to obtain a reference result matrix output by the code segment, and judging whether element values corresponding to the positions of the changed element values in the initial matrix are changed in the reference result matrix and the initial result matrix; and if every judgment result is yes, determining that the logic of the code segment is correct. The test method and apparatus realize the testing of the RNN code and fill up the blank in the prior art in the RNN code testing.

Description

【Technical field】 [0001] The invention relates to the field of software technology, in particular to a method and device for testing RNN codes. 【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 the Recurrent Neural Network (RNN). [0003] From a code point of view, in the code implementation of deep learning-based applications, the code that implements the RNN function (RNN code for short) is the core part of the entire code, so the RNN code is tested to ensure its correctness, and the entire code Quality plays a key role. However, since deep learning algorithms output probability values, traditional black-box testing methods, etc. are not suitable for RNN codes. I...

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
Patent Type & Authority Patents(China)
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