zoukankan      html  css  js  c++  java
  • dtypes.py", line 499 _np_qint8 = np.dtype([("qint8", np.int8, (1,)])

    Traceback (most recent call last):
    File "<stdin>", line 1, in <module>
    File "/home/luo/anaconda3/envs/tf2019/lib/python3.6/site-packages/tensorflow/__init__.py", line 24, in <module>
    from tensorflow.python import *
    File "/home/luo/anaconda3/envs/tf2019/lib/python3.6/site-packages/tensorflow/python/__init__.py", line 63, in <module>
    from tensorflow.python.framework.framework_lib import *
    File "/home/luo/anaconda3/envs/tf2019/lib/python3.6/site-packages/tensorflow/python/framework/framework_lib.py", line 76, in <module>
    from tensorflow.python.framework.ops import Graph
    File "/home/luo/anaconda3/envs/tf2019/lib/python3.6/site-packages/tensorflow/python/framework/ops.py", line 45, in <module>
    from tensorflow.python.framework import dtypes
    File "/home/luo/anaconda3/envs/tf2019/lib/python3.6/site-packages/tensorflow/python/framework/dtypes.py", line 499
    _np_qint8 = np.dtype([("qint8", np.int8, (1,)])

    ==================================================================================================

    cd /home/luo/anaconda3/envs/tf2019/lib/python3.6/site-packages/tensorflow/python/framework/

    vim dtypes.py

    # Numpy representation for quantized dtypes.
    #
    # These are magic strings that are used in the swig wrapper to identify
    # quantized types.
    # TODO(mrry,keveman): Investigate Numpy type registration to replace this
    # hard-coding of names.
    #_np_qint8 = np.dtype([("qint8", np.int8, 1)])
    #_np_quint8 = np.dtype([("quint8", np.uint8, 1)])
    #_np_qint16 = np.dtype([("qint16", np.int16, 1)])
    #_np_quint16 = np.dtype([("quint16", np.uint16, 1)])
    #_np_qint32 = np.dtype([("qint32", np.int32, 1)])

    _np_qint8 = np.dtype([("qint8", np.int8, (1,))])
    _np_quint8 = np.dtype([("quint8", np.uint8, (1,))])
    _np_qint16 = np.dtype([("qint16", np.int16, (1,))])
    _np_quint16 = np.dtype([("quint16", np.uint16, (1,))])
    _np_qint32 = np.dtype([("qint32", np.int32, (1,))])
     
    # Custom struct dtype for directly-fed ResourceHandles of supported type(s).
    #np_resource = np.dtype([("resource", np.ubyte, 1)])
    np_resource = np.dtype([("resource", np.ubyte, (1,))])
  • 相关阅读:
    阶段3 2.Spring_04.Spring的常用注解_3 用于创建的Component注解
    阶段3 2.Spring_04.Spring的常用注解_2 常用IOC注解按照作用分类
    阶段3 2.Spring_03.Spring的 IOC 和 DI_2 spring中的Ioc前期准备
    阶段3 2.Spring_03.Spring的 IOC 和 DI_1 ioc的概念和作用
    阶段3 2.Spring_03.Spring的 IOC 和 DI_13 课程知识梳理
    阶段3 2.Spring_03.Spring的 IOC 和 DI_12 注入集合数据
    dm-verity
    高通msm8909耳机调试
    NC和NO、耳机美标和欧标的区别
    动态绑定与静态绑定
  • 原文地址:https://www.cnblogs.com/herd/p/11512971.html
Copyright © 2011-2022 走看看