Patents
Literature
Patsnap Eureka AI that helps you search prior art, draft patents, and assess FTO risks, powered by patent and scientific literature data.

4 results about "Function type" patented technology

In computer science, a function type (or arrow type or exponential) is the type of a variable or parameter to which a function has or can be assigned, or an argument or result type of a higher-order function taking or returning a function.

JAX-based high-performance discrete event simulation method and system

The invention provides a JAX-based high-performance discrete event simulation method and system, and the method comprises the steps: firstly completing environment configuration and initialization through an immutable data structure, and generating an EnvParas object with fixed static parameters; secondly, processing event logic by adopting a pure function steepv, and realizing side-effect-free functional event processing and state iteration by combining JAX condition control primitive and lax.scan iterative loop; then, a batch processing task is generated through job packaging, and job-level parallel acceleration is achieved on multiple GPU / TPU devices by means of jax. Jit compiling and jax. Vmap vectorization; and finally, packaging a standardized AI interactive interface, supporting external algorithm calling and finishing result post-processing. Functional programming and JAX hardware acceleration are combined, the simulation speed is increased, meanwhile, the event dynamic accuracy is guaranteed, reinforcement learning large-scale sampling can be seamlessly supported, and the method is suitable for AI application scenes in the field of operational research.
Owner:SHANGHAI JIAOTONG UNIV +1

Apparatus and method for processing procedural language functions

An apparatus and method for processing a program language function, the processing apparatus comprising: a receiving module for receiving a configuration of the program language function, wherein the configuration comprises a destination address, a length, a fill-in value and a function type; a control module for setting an access state for accessing a slave device according to the function type, and comparing a count value with the length to generate a comparison result according to the function type, or determining whether data received from the slave device reaches an end to generate a determination result, or both; a reading module for reading data according to the access state; a writing module for writing the fill-in value into the destination address according to at least one of the access state, the determination result and the comparison result; and a transmitting module for transmitting an interrupt signal according to at least one of the determination result and the comparison result.
Owner:REALTEK SEMICON CORP

Subfunction code generation method and device

The present disclosure proposes a method and device for generating code for a sub-function, the method comprising: receiving a code completion instruction, the code completion instruction including a function type and context code of a target sub-function; the target sub-function represents at least one undefined sub-function in a function to be completed; determining a target completion code for the target sub-function based on the function type, the context code, and a first code completion model; and completing the function to be completed using the target completion code to obtain a first completion code. By detecting and completing undefined sub-functions, the disclosed embodiment can ensure that the generated completion code is complete, reduce compilation or runtime errors caused by undefined sub-functions, and greatly improve the accuracy of code completion and the operability of the code.
Owner:BEIJING GUIXIN TECHNOLOGY CO LTD

CodeBERT-based JavaScript global identifier conflict static detection and repair method and system

The invention discloses a CodeBERT-based JavaScript global identifier conflict static detection and repair method and a CodeBERT-based JavaScript global identifier conflict static detection and repair system, which are characterized in that a perfect JavaScript code extraction and global identifier detection rule is designed, and a CodeBERT model is utilized to extract function type information from an API (Application Program Interface) document and a designed type inference rule to make type inference so as to detect type conflicts; and finally, predicting a correct identifier actually wanted to be referenced by a developer at a conflict position through an original pre-training target of CodeBERT to repair the conflict, ensuring the accuracy of conflict detection and repair without introducing extra performance overhead during operation, and helping the developer to discover and repair a global identifier conflict in a code development stage. According to the method, the global identifier conflict is fundamentally solved, and the conflict is not merely detected or isolated.
Owner:HUAZHONG NORMAL UNIV