[model reasoning] quantization realization sharing 2: explain the implementation of KL symmetric quantization algorithm in detail
Welcome to my official account, reply to 001 Google programming specification. O_o >_< o_O O_o ~_~ o_O Hello, I'm Jizhi horizon. This paper analyzes the implementation of KL symmetric quantization algorithm, taking Tengine's implementation as an example. an article has been written earlier< [model reasoning] qua ...
Posted by nkzle on Fri, 17 Dec 2021 19:00:27 +0100
LeetCode brush notes binary search boundary contraction
Boundary value of binary search
Binary search is very simple, but it also has its difficulties. The difficulty lies in the selection of judgment conditions and boundary values, which can easily lead to boundary crossing or dead cycle.
For the judgment condition of the loop, if the search interval is a closed interval [left, right], the judgme ...
Posted by $kevan on Fri, 17 Dec 2021 14:47:04 +0100
Event system for Qt source code analysis
1, Add an event to the event loop
[static] void QCoreApplication::postEvent(QObject *receiver, QEvent *event, int priority = Qt::NormalEventPriority)
1.postEvent is to add an event event to the event queue of the thread to which the receiver object belongs and execute it in the next event cycle. It is asynchronous execution. After comple ...
Posted by Mikell on Fri, 17 Dec 2021 12:59:01 +0100
QGC receives PX4 custom Mavlink messages
Here are some additions. My px4 version is 1.11 0dev, in Ubuntu 18 Developed on 04, qgc is the latest version of the current official website. Developed on windows, your source code will be slightly different due to version differences, so code copy, paste and compilation will certainly report errors, so you have to change it according to the s ...
Posted by maddog720 on Fri, 17 Dec 2021 12:07:00 +0100
unordered_map multi thread crash in find
collapse Recently, there was a crash in the program. After query, it was found that the crash occurred in the query of STL container.
The screenshot of the crash is as follows: About unordered_map Unordered map container_ The map container does not sort the stored data like the map container.
unordered_ The bottom layer of the map container ...
Posted by aconite on Fri, 17 Dec 2021 11:37:00 +0100
Codeforces Round #761 (Div. 2) (A~D2)
Codeforces Round #761 (Div. 2)
A. Forbidden Subsequence
subject
Knowledge points
sort
Problem solving ideas
According to the meaning of the topic, it is easy for us to know when
T
=
a
b
c
...
Posted by dud3r on Fri, 17 Dec 2021 10:10:12 +0100
5, C + + classes & objects
C + + adds object-oriented programming on the basis of C language, and C + + supports object-oriented programming. Class is the core feature of C + +, which is usually called user-defined type.
Class is used to specify the form of an object. It contains data representation and methods for processing data. The data and methods in a class are ca ...
Posted by jmartinez on Fri, 17 Dec 2021 08:28:27 +0100
Detailed explanation of common usage of [c + + container] priority_queue
priority_queue is also called priority queue, and its bottom layer is implemented by heap. In the priority queue, the first element must be when
The highest priority in the previous queue. For example, there are the following elements in the queue, and the priority is defined:
Peach(Priority 3)
Pear(Priority 4)
Apple(Priority 1)
Then the ...
Posted by jvquach on Fri, 17 Dec 2021 00:56:31 +0100
7-30 clear thinking of C + + problem solution of directory tree
Title Link
In the ZIP archive, the relative paths and names of all compressed files and directories are retained. When you open a ZIP archive using GUI software such as WinZIP, you can reconstruct the tree structure of the directory from this information. Please write a program to rebuild the tree structure of the directory.
Input format: ...
Posted by tarado on Thu, 16 Dec 2021 23:44:07 +0100
C + + virtual functions and inheritance
Baidu Encyclopedia's definition of virtual function:
Simply put, those member functions modified by the virtual keyword are virtual functions. The function of virtual function, explained in professional terms, is to realize Polymorphism, which separates the interface from the implementation; explained in visual language, is to realize commo ...
Posted by zimick on Thu, 16 Dec 2021 23:19:15 +0100