摘要: 调用方式bool res = FunctionRegistry::callFromFuncMap1<bool, type1&, type2*, type3,... >(...),其中第一个bool为返回值类型,第二个开始后面均为参数列表类型,可用于注册算子,包装函数指针等。 #include <fu 阅读全文
posted @ 2025-10-20 20:15 WEIWEI1095 阅读(6) 评论(0) 推荐(0)
摘要: 1、把要合并的和被合并的分支更新到最新 2、在要合并的分支: eg:把T32分支的代码合并到T42分支,以更新T42分支的代码: 在T42分支上: 1)git merge T32 2)git status -s 对状态为UU的文件处理冲突 ,搜索>>>>确定冲突位置,修改代码到希望保存的代码 对需要 阅读全文
posted @ 2024-12-07 14:29 WEIWEI1095 阅读(31) 评论(0) 推荐(0)
摘要: printf("w.shape:%s \n",merge_res->filter1.shape().str().c_str()); std::cout<<FILE<<LINE<<" name: "<<magik_name<<" filter1.size: "<<filter1_size<<std:: 阅读全文
posted @ 2024-05-11 16:46 WEIWEI1095 阅读(27) 评论(0) 推荐(0)
摘要: 修改环境变量 可以在~/.bashrc里面加入 export http_proxy="http://your_proxy:port" export https_proxy="https://your_proxy:port" 然后source ~/.bashrc即可。 可以直接在终端运行以上两条命令 阅读全文
posted @ 2024-05-09 09:33 WEIWEI1095 阅读(143) 评论(0) 推荐(0)
摘要: def now(): print('2015-3-25') def log(text): print('Jason') def de0(func): print("111111111111") def decorator1(func): print('Cool') def wrapper(*args 阅读全文
posted @ 2024-02-02 09:05 WEIWEI1095 阅读(12) 评论(0) 推荐(0)
摘要: def get_layer_output(model, image): ori_output = copy.deepcopy(model.graph.output) for node in model.graph.node: for output in node.output: model.grap 阅读全文
posted @ 2024-01-23 10:09 WEIWEI1095 阅读(841) 评论(0) 推荐(0)
摘要: # _*_coding: utf-8_*_ import numpy as np import os import sys def listDirectory(path,list_path,filetype): for file in os.listdir(path): file_path=os.p 阅读全文
posted @ 2023-10-10 09:00 WEIWEI1095 阅读(25) 评论(0) 推荐(0)
摘要: #!/bin/bash CURRENT_DIR=$(cd $(dirname $0); pwd) SOURCE_DIR="$CURRENT_DIR/python_data" TARGET_DIR="$CURRENT_DIR/out_bin" cd $SOURCE_DIR > python.md5 f 阅读全文
posted @ 2023-09-28 10:13 WEIWEI1095 阅读(293) 评论(0) 推荐(0)
摘要: 保存数组或vector到bin文件 ``` void save_bin(std::vector &data_vector, std::string name = "mnn.bin") { std::ofstream outFile(name, std::ios::out | std::ios::bi 阅读全文
posted @ 2023-08-18 11:54 WEIWEI1095 阅读(305) 评论(0) 推荐(0)
摘要: //读取txt文本中的float数据(按行读取) void read_txt_input(std::string path,std::vector<float> &pydata){ std::ifstream infile; infile.open(path); float value; if(!i 阅读全文
posted @ 2023-06-30 09:35 WEIWEI1095 阅读(418) 评论(0) 推荐(0)
*/
作品集 //