网站首页 站内搜索

搜索结果

查询Tags标签: std,共有 1098条记录
  • quickjs module介绍

    原文见https://www.cnblogs.com/gaobw/p/11693876.html 其实子啊github.com/quickjs-zh/QuickJS 代码里有个例子bjson.c, test_bjson.js其实跟这个一样1.5. std 模块 std模块为quickjs-libc提供包装器stdlib.h和stdio.h和其他一些实用程序。 std代码示例: 创建文件std_m.j…

    2021/11/15 23:41:15 人评论 次浏览
  • quickjs module介绍

    原文见https://www.cnblogs.com/gaobw/p/11693876.html 其实子啊github.com/quickjs-zh/QuickJS 代码里有个例子bjson.c, test_bjson.js其实跟这个一样1.5. std 模块 std模块为quickjs-libc提供包装器stdlib.h和stdio.h和其他一些实用程序。 std代码示例: 创建文件std_m.j…

    2021/11/15 23:41:15 人评论 次浏览
  • C++复制粘贴代码去行标

    抄代码专用#include<iostream> #include<string> using namespace std; int main(){freopen("qwq.cpp","r",stdin);freopen("std.cpp","w",stdout);string s;while(getline(cin,s)){int i;for(i = 0; i < s.size(…

    2021/11/15 14:39:38 人评论 次浏览
  • C++复制粘贴代码去行标

    抄代码专用#include<iostream> #include<string> using namespace std; int main(){freopen("qwq.cpp","r",stdin);freopen("std.cpp","w",stdout);string s;while(getline(cin,s)){int i;for(i = 0; i < s.size(…

    2021/11/15 14:39:38 人评论 次浏览
  • std::bind与socket bind冲突

    编译时候报如下错误: error C2678: 二进制“==”: 没有找到接受“std::_Bind<false,void,SOCKET &,sockaddr *,unsigned int>”类型的左操作数的运算符(或没有可接受的转换解决办法:一、如果想用std的bind,就在bind前加std::,例如:int result = std::bind(…

    2021/11/15 6:09:57 人评论 次浏览
  • std::bind与socket bind冲突

    编译时候报如下错误: error C2678: 二进制“==”: 没有找到接受“std::_Bind<false,void,SOCKET &,sockaddr *,unsigned int>”类型的左操作数的运算符(或没有可接受的转换解决办法:一、如果想用std的bind,就在bind前加std::,例如:int result = std::bind(…

    2021/11/15 6:09:57 人评论 次浏览
  • C++ 类对象作为类成员

    #include <iostream> using namespace std; #include <string>class Phone { public:Phone(string name){m_PhoneName = name;cout << "Phone构造" << endl;}~Phone(){cout << "Phone析构" << endl;}string m_Ph…

    2021/11/15 1:10:18 人评论 次浏览
  • C++ 类对象作为类成员

    #include <iostream> using namespace std; #include <string>class Phone { public:Phone(string name){m_PhoneName = name;cout << "Phone构造" << endl;}~Phone(){cout << "Phone析构" << endl;}string m_Ph…

    2021/11/15 1:10:18 人评论 次浏览
  • c++ 11标准模板(STL) std::vector (二)

    访问首尾元素 首元素 reference front(); // 可读写 const_reference front() const; // 可读,不可写返回到容器首元素的引用。 在空容器上对 front 的调用是未定义的。 参数 (无) 返回值 到首元素的引用 复杂度 常数 注意 对于容器 c ,表达式 c.front() 等价于 *c…

    2021/11/14 14:11:06 人评论 次浏览
  • c++ 11标准模板(STL) std::vector (二)

    访问首尾元素 首元素 reference front(); // 可读写 const_reference front() const; // 可读,不可写返回到容器首元素的引用。 在空容器上对 front 的调用是未定义的。 参数 (无) 返回值 到首元素的引用 复杂度 常数 注意 对于容器 c ,表达式 c.front() 等价于 *c…

    2021/11/14 14:11:06 人评论 次浏览
  • TVM实现hardware backend

    TVM实现hardware backend官方的矩阵相加的示例如下:2个矩阵相加的实现for (int i = 0; i < n; ++i) { C[i] = A[i] + B[i];}怎么优化? 可以并行相加,如下for (int bx = 0; bx < ceil(n / 64); ++bx) { for (int tx = 0; tx < 64; ++tx) { int i = bx * 6…

    2021/11/13 6:39:49 人评论 次浏览
  • TVM实现hardware backend

    TVM实现hardware backend官方的矩阵相加的示例如下:2个矩阵相加的实现for (int i = 0; i < n; ++i) { C[i] = A[i] + B[i];}怎么优化? 可以并行相加,如下for (int bx = 0; bx < ceil(n / 64); ++bx) { for (int tx = 0; tx < 64; ++tx) { int i = bx * 6…

    2021/11/13 6:39:49 人评论 次浏览
  • TensorRT——INT8推理

    原理为什么要使用INT8推理:更高的吞吐量/处理的fps提高以及更低的内存占用(8-bit vs 32-bit) 将FP32模型转换成INT8模型存在的挑战:更低的动态范围和精度Consider that 32-bit floating-point can represent roughly 4 billion numbers in the interval [-3.4e38, 3.40e…

    2021/11/11 23:12:21 人评论 次浏览
  • TensorRT——INT8推理

    原理为什么要使用INT8推理:更高的吞吐量/处理的fps提高以及更低的内存占用(8-bit vs 32-bit) 将FP32模型转换成INT8模型存在的挑战:更低的动态范围和精度Consider that 32-bit floating-point can represent roughly 4 billion numbers in the interval [-3.4e38, 3.40e…

    2021/11/11 23:12:21 人评论 次浏览
  • C++之三种callbcak方式

    #include <iostream> #include <string> #include <pthread.h> #include <functional> using namespace std; typedef void (*MyFun)(int n, string str);static void Test(int n, string str){cout << "n = "<< n <<…

    2021/11/11 22:10:19 人评论 次浏览
扫一扫关注最新编程教程