摘要: // // FILE: // mp.cpp // // DESCRIPTION: // This pass print every Operand of an op // // USAGE: // 1. Legacy pass manager: // $ opt -load <BUILD_DIR>/ 阅读全文
posted @ 2023-04-10 22:02 园友1683564 阅读(83) 评论(0) 推荐(0) 编辑
摘要: 这个文章主要是对官网例程的一个补充。2023.03.28最新,别看更老的文章了,官网日新月异,老的文章会误导你 官网教程: https://huggingface.co/course/zh-CN/chapter1/3?fw=pt 官网安装: https://huggingface.co/course 阅读全文
posted @ 2023-03-28 23:27 园友1683564 阅读(308) 评论(0) 推荐(0) 编辑
摘要: 增加指定target,如果你的系统里安装了opencl(比如pocl),有ocl机制,那么Hailide会自动调用OpenCL Halide::Target target = Halide::get_host_target(); target.set_feature(Halide::Target:: 阅读全文
posted @ 2023-03-03 22:59 园友1683564 阅读(44) 评论(0) 推荐(0) 编辑
摘要: 这是一个包含环境搭建的完整测试教程,目标读者是从未接触过这些的新手。没有模型训练过程,只是使用的别人训练好的模型。 1. 代码准备:https://github.com/fchollet/deep-learning-models 国内镜像: https://gitee.com/xunaijie/de 阅读全文
posted @ 2023-02-12 21:00 园友1683564 阅读(459) 评论(0) 推荐(0) 编辑
摘要: 一个最简单的demo,读取加速度传感器和磁场传感器,直接打印。适合业余玩玩。 用的技术点都是最简单粗暴的,不要用来开发产品。 在安卓2.3.3和5.1的真机上都测试通过。 安卓源码:使用的android studio开发,SDK是API10,姜饼。 为了在一个10年前的手机上玩,三星5830,竟然还 阅读全文
posted @ 2022-09-27 23:34 园友1683564 阅读(129) 评论(0) 推荐(0) 编辑
摘要: 一个最简单的demo,手机和电脑连上同一个路由器,向电脑的某个socket端口发送消息。适合业余玩玩。 用的技术点都是最简单粗暴的,不要用来开发产品。 在安卓2.3.3和5.1的真机上都测试通过。 使用方法: sscom5.13.1.exe在电脑上开server不行,估计是被win10防火墙给挡了, 阅读全文
posted @ 2022-09-27 23:27 园友1683564 阅读(142) 评论(0) 推荐(0) 编辑
摘要: #include <stdint.h> #include <stdio.h> #include <stdlib.h> int main(int argc, char *argv[]) { printf("%s running\n", argv[0]); if(argc != 3) { printf( 阅读全文
posted @ 2022-05-10 21:33 园友1683564 阅读(21) 评论(0) 推荐(0) 编辑
摘要: #include <fstream> #include <iostream> #include <opencv2/opencv.hpp> using namespace cv; using namespace std; int main(int argc, char **argv) { const 阅读全文
posted @ 2022-04-22 23:43 园友1683564 阅读(177) 评论(0) 推荐(0) 编辑
摘要: #include <fstream> #include <iostream> #include <opencv2/imgcodecs.hpp> #include <opencv2/opencv.hpp> using namespace cv; using namespace std; int mai 阅读全文
posted @ 2022-04-22 23:25 园友1683564 阅读(503) 评论(0) 推荐(0) 编辑
摘要: https://docs.opencv.org/4.5.5/db/df5/tutorial_linux_gcc_cmake.html 写的已经不错,我补充点,让教程更便捷。 opencv源码编译 cmake -D CMAKE_BUILD_TYPE=Release -D CMAKE_INSTALL_P 阅读全文
posted @ 2022-02-11 15:28 园友1683564 阅读(48) 评论(0) 推荐(0) 编辑