-
大小: 27.18MB文件类型: .rar金币: 1下载: 0 次发布日期: 2023-07-07
- 语言: C/C++
- 标签: tensorflow c++ vs2019 bazel
资源简介
Win10下编译的Tensorflow-v2.1.1 C++库 CPU版
win10+vs2019+py3.7.9+bazel0.29.1+tensorflow2.1.1-CPU 支持AVX2指令集
由于机器无N卡,只能编译cpu版,后续再编译其他版本
测试程序含官方的c++例子和网上找的代码,散布在包内,及模型pb文件在data目录,在vs2019下测试通过
Demo:https://pan.baidu.com/s/1RoSvkChkkrpsX0zdvzzZtw
提取码:sl9q
代码片段和文件信息
/*
* jccolext.c
*
* This file was part of the Independent JPEG Group‘s software:
* Copyright (C) 1991-1996 Thomas G. Lane.
* libjpeg-turbo Modifications:
* Copyright (C) 2009-2012 2015 D. R. Commander.
* For conditions of distribution and use see the accompanying README.ijg
* file.
*
* This file contains input colorspace conversion routines.
*/
/* This file is included by jccolor.c */
/*
* Convert some rows of samples to the JPEG colorspace.
*
* Note that we change from the application‘s interleaved-pixel format
* to our internal noninterleaved one-plane-per-component format.
* The input buffer is therefore three times as wide as the output buffer.
*
* A starting row offset is provided only for the output buffer. The caller
* can easily adjust the passed input_buf value to accommodate any row
* offset required on that side.
*/
INLINE
LOCAL(void)
rgb_ycc_convert_internal(j_compress_ptr cinfo JSAMPARRAY input_buf
JSAMPIMAGE output_buf JDIMENSION output_row
int num_rows)
{
my_cconvert_ptr cconvert = (my_cconvert_ptr)cinfo->cconvert;
register int r g b;
register JLONG *ctab = cconvert->rgb_ycc_tab;
register JSAMPROW inptr;
register JSAMPROW outptr0 outptr1 outptr2;
register JDIMENSION col;
JDIMENSION num_cols = cinfo->image_width;
while (--num_rows >= 0) {
inptr = *input_buf++;
outptr0 = output_buf[0][output_row];
outptr1 = output_buf[1][output_row];
outptr2 = output_buf[2][output_row];
output_row++;
for (col = 0; col < num_cols; col++) {
r = GETJSAMPLE(inptr[RGB_RED]);
g = GETJSAMPLE(inptr[RGB_GREEN]);
b = GETJSAMPLE(inptr[RGB_BLUE]);
inptr += RGB_PIXELSIZE;
/* If the inputs are 0..MAXJSAMPLE the outputs of these equations
* must be too; we do not need an explicit range-limiting operation.
* Hence the value being shifted is never negative and we don‘t
* need the general RIGHT_SHIFT macro.
*/
/* Y */
outptr0[col] = (JSAMPLE)((ctab[r + R_Y_OFF] + ctab[g + G_Y_OFF] +
ctab[b + B_Y_OFF]) >> SCALEBITS);
/* Cb */
outptr1[col] = (JSAMPLE)((ctab[r + R_CB_OFF] + ctab[g + G_CB_OFF] +
ctab[b + B_CB_OFF]) >> SCALEBITS);
/* Cr */
outptr2[col] = (JSAMPLE)((ctab[r + R_CR_OFF] + ctab[g + G_CR_OFF] +
ctab[b + B_CR_OFF]) >> SCALEBITS);
}
}
}
/**************** Cases other than RGB -> YCbCr **************/
/*
* Convert some rows of samples to the JPEG colorspace.
* This version handles RGB->grayscale conversion which is the same
* as the RGB->Y portion of RGB->YCbCr.
* We assume rgb_ycc_start has been called (we only use the Y tables).
*/
INLINE
LOCAL(void)
rgb_gray_convert_internal(j_compress_ptr cinfo JSAMPARRAY input_buf
JSAMPIMAGE output_buf JDIMENSION output_row
int num_rows)
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 6147 2020-09-08 18:29 tf211sdk\include\absl\algorithm\algorithm.h
文件 75472 2020-09-08 18:30 tf211sdk\include\absl\algorithm\container.h
文件 23633 2020-09-08 18:29 tf211sdk\include\absl\ba
文件 7970 2020-09-08 18:29 tf211sdk\include\absl\ba
文件 6967 2020-09-08 18:29 tf211sdk\include\absl\ba
文件 17640 2020-09-08 18:29 tf211sdk\include\absl\ba
文件 3360 2020-09-08 18:29 tf211sdk\include\absl\ba
文件 16548 2020-09-08 18:29 tf211sdk\include\absl\ba
文件 5955 2020-09-08 18:29 tf211sdk\include\absl\ba
文件 5798 2020-09-08 18:29 tf211sdk\include\absl\ba
文件 3261 2020-09-08 18:29 tf211sdk\include\absl\ba
文件 5285 2020-09-08 18:30 tf211sdk\include\absl\ba
文件 8756 2020-09-08 18:29 tf211sdk\include\absl\ba
文件 1606 2020-09-08 18:29 tf211sdk\include\absl\ba
文件 941 2020-09-08 18:29 tf211sdk\include\absl\ba
文件 4709 2020-09-08 18:29 tf211sdk\include\absl\ba
文件 7702 2020-09-08 18:29 tf211sdk\include\absl\ba
文件 4647 2020-09-08 18:30 tf211sdk\include\absl\ba
文件 3985 2020-09-08 18:29 tf211sdk\include\absl\ba
文件 1758 2020-09-08 18:29 tf211sdk\include\absl\ba
文件 8935 2020-09-08 18:29 tf211sdk\include\absl\ba
文件 2339 2020-09-08 18:29 tf211sdk\include\absl\ba
文件 9029 2020-09-08 18:29 tf211sdk\include\absl\ba
文件 1311 2020-09-08 18:29 tf211sdk\include\absl\ba
文件 2259 2020-09-08 18:29 tf211sdk\include\absl\ba
文件 1410 2020-09-08 18:29 tf211sdk\include\absl\ba
文件 3707 2020-09-08 18:29 tf211sdk\include\absl\ba
文件 1265 2020-09-08 18:29 tf211sdk\include\absl\ba
文件 2212 2020-09-08 18:29 tf211sdk\include\absl\ba
文件 10382 2020-09-08 18:29 tf211sdk\include\absl\ba
............此处省略2688个文件信息
相关资源
- 《学VC编传奇游戏》.rar
- C++泛型编程与STL中文版
- VS 2017 C/C++ MicroSoft源服务器符号文件基
- MMX+C++实现图片渐入渐出
- 数据结构C++版邓俊辉 第三版 文字版
- 吃豆人C++vs2017编译的吃豆人
- 数据结构习题解析__殷人昆编著_2011年
- Microsoft Visual C++ Build Tools
- Think in C++第二版内含中文,英文版
- 基于SVM与人工神经网络的车牌识别C
- rabbitmq的C++客户端SimpleAmqpClient编译库
- 各种风格C++MFC皮肤库
- MFC做的连连看
- 基于VC++的邮件收发系统
- 基于块匹配的图像拼接 源码,C++实现
- C++参考大全第四版中文版pdf + 英文p
- python通过ctypes调用c\\c++编写的dll\\so库
- 《Boost程序库完全开发指南:深入C++“
- 轻松搞定C++语言
- 车辆管理与服务系统 MFC C++
- c#调用c++的可变参数
- C++网络编程文件之第五章 应用层协议
- C++使用GSOPE调用WEBSERVICE
- C++语言程序设计(第4版)清华大学教
- 点云Las文件读写c++库 Lasib_msvc2015
- C++游戏-雷霆战机
- Visual C++开发GIS系统第2版
- VC++案例精编很好的
- 基于Visual Studio的学生成绩管理系统
- MFC 学生管理系统
评论
共有 条评论