win10+vs2019+bazel+编译tensorflow2.1.1-CPU版(含测试程序)


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  tf211sdkincludeabslalgorithmalgorithm.h

     文件      75472  2020-09-08 18:30  tf211sdkincludeabslalgorithmcontainer.h

     文件      23633  2020-09-08 18:29  tf211sdkincludeabslaseattributes.h

     文件       7970  2020-09-08 18:29  tf211sdkincludeabslasecall_once.h

     文件       6967  2020-09-08 18:29  tf211sdkincludeabslasecasts.h

     文件      17640  2020-09-08 18:29  tf211sdkincludeabslaseconfig.h

     文件       3360  2020-09-08 18:29  tf211sdkincludeabslaseconst_init.h

     文件      16548  2020-09-08 18:29  tf211sdkincludeabslasedynamic_annotations.h

     文件       5955  2020-09-08 18:29  tf211sdkincludeabslaseinternalatomic_hook.h

     文件       5798  2020-09-08 18:29  tf211sdkincludeabslaseinternalits.h

     文件       3261  2020-09-08 18:29  tf211sdkincludeabslaseinternalcycleclock.h

     文件       5285  2020-09-08 18:30  tf211sdkincludeabslaseinternaldirect_mmap.h

     文件       8756  2020-09-08 18:29  tf211sdkincludeabslaseinternalendian.h

     文件       1606  2020-09-08 18:29  tf211sdkincludeabslaseinternalhide_ptr.h

     文件        941  2020-09-08 18:29  tf211sdkincludeabslaseinternalidentity.h

     文件       4709  2020-09-08 18:29  tf211sdkincludeabslaseinternalinline_variable.h

     文件       7702  2020-09-08 18:29  tf211sdkincludeabslaseinternalinvoke.h

     文件       4647  2020-09-08 18:30  tf211sdkincludeabslaseinternallow_level_alloc.h

     文件       3985  2020-09-08 18:29  tf211sdkincludeabslaseinternallow_level_scheduling.h

     文件       1758  2020-09-08 18:29  tf211sdkincludeabslaseinternalper_thread_tls.h

     文件       8935  2020-09-08 18:29  tf211sdkincludeabslaseinternal
aw_logging.h

     文件       2339  2020-09-08 18:29  tf211sdkincludeabslaseinternalscheduling_mode.h

     文件       9029  2020-09-08 18:29  tf211sdkincludeabslaseinternalspinlock.h

     文件       1311  2020-09-08 18:29  tf211sdkincludeabslaseinternalspinlock_akaros.inc

     文件       2259  2020-09-08 18:29  tf211sdkincludeabslaseinternalspinlock_linux.inc

     文件       1410  2020-09-08 18:29  tf211sdkincludeabslaseinternalspinlock_posix.inc

     文件       3707  2020-09-08 18:29  tf211sdkincludeabslaseinternalspinlock_wait.h

     文件       1265  2020-09-08 18:29  tf211sdkincludeabslaseinternalspinlock_win32.inc

     文件       2212  2020-09-08 18:29  tf211sdkincludeabslaseinternalsysinfo.h

     文件      10382  2020-09-08 18:29  tf211sdkincludeabslaseinternal hread_annotations.h

............此处省略2688个文件信息

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容, 请发送邮件举报,一经查实,本站将立刻删除。

发表评论

评论列表(条)