资源简介

编译好的tensorflow 1.3 版本 python库,适用于android平台,arm架构。可用于在android上采用python开发基于tensorflow的应用。

资源截图

代码片段和文件信息

“““Utilities for writing code that runs on Python 2 and 3“““

# Copyright (c) 2010-2015 Benjamin Peterson
#
# Permission is hereby granted free of charge to any person obtaining a copy
# of this software and associated documentation files (the “Software“) to deal
# in the Software without restriction including without limitation the rights
# to use copy modify merge publish distribute sublicense and/or sell
# copies of the Software and to permit persons to whom the Software is
# furnished to do so subject to the following conditions:
#
# The above copyright notice and this permission notice shall be included in all
# copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED “AS IS“ WITHOUT WARRANTY OF ANY KIND EXPRESS OR
# IMPLIED INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM DAMAGES OR OTHER
# LIABILITY WHETHER IN AN ACTION OF CONTRACT TORT OR OTHERWISE ARISING FROM
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
# SOFTWARE.

from __future__ import absolute_import

import functools
import itertools
import operator
import sys
import types

__author__ = “Benjamin Peterson 
__version__ = “1.10.0“


# Useful for very coarse version differentiation.
PY2 = sys.version_info[0] == 2
PY3 = sys.version_info[0] == 3
PY34 = sys.version_info[0:2] >= (3 4)

if PY3:
    string_types = str
    integer_types = int
    class_types = type
    text_type = str
    binary_type = bytes

    MAXSIZE = sys.maxsize
else:
    string_types = basestring
    integer_types = (int long)
    class_types = (type types.ClassType)
    text_type = unicode
    binary_type = str

    if sys.platform.startswith(“java“):
        # Jython always uses 32 bits.
        MAXSIZE = int((1 << 31) - 1)
    else:
        # It‘s possible to have sizeof(long) != sizeof(Py_ssize_t).
        class X(object):

            def __len__(self):
                return 1 << 31
        try:
            len(X())
        except OverflowError:
            # 32-bit
            MAXSIZE = int((1 << 31) - 1)
        else:
            # 64-bit
            MAXSIZE = int((1 << 63) - 1)
        del X


def _add_doc(func doc):
    “““Add documentation to a function.“““
    func.__doc__ = doc


def _import_module(name):
    “““Import module returning the module after the last dot.“““
    __import__(name)
    return sys.modules[name]


class _LazyDescr(object):

    def __init__(self name):
        self.name = name

    def __get__(self obj tp):
        result = self._resolve()
        setattr(obj self.name result)  # Invokes __set__.
        try:
            # This is a bit ugly but it avoids running this again by
            # removing this descriptor.
            delattr(obj.__class__ self.name)
        except AttributeError:
            pass
        return res

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2017-09-22 23:13  tensorflow\
     目录           0  2017-09-21 21:06  tensorflow\python2.7\
     目录           0  2017-09-22 21:41  tensorflow\python2.7\dist-packages\
     目录           0  2017-09-21 21:06  tensorflow\python2.7\dist-packages\backports\
     文件        5250  2017-09-16 22:00  tensorflow\python2.7\dist-packages\backports\weakref.py
     文件        5795  2017-09-16 22:06  tensorflow\python2.7\dist-packages\backports\weakref.pyc
     文件         121  2017-09-16 22:00  tensorflow\python2.7\dist-packages\backports\__init__.py
     文件         250  2017-09-16 22:06  tensorflow\python2.7\dist-packages\backports\__init__.pyc
     目录           0  2017-09-21 21:06  tensorflow\python2.7\dist-packages\backports.weakref-1.0rc1.dist-info\
     文件          10  2017-09-16 22:00  tensorflow\python2.7\dist-packages\backports.weakref-1.0rc1.dist-info\DEscriptION.rst
     文件           4  2017-09-16 22:06  tensorflow\python2.7\dist-packages\backports.weakref-1.0rc1.dist-info\INSTALLER
     文件         792  2017-09-16 22:00  tensorflow\python2.7\dist-packages\backports.weakref-1.0rc1.dist-info\metaDATA
     文件         908  2017-09-16 22:00  tensorflow\python2.7\dist-packages\backports.weakref-1.0rc1.dist-info\metadata.json
     文件         862  2017-09-16 22:06  tensorflow\python2.7\dist-packages\backports.weakref-1.0rc1.dist-info\RECORD
     文件          10  2017-09-16 22:00  tensorflow\python2.7\dist-packages\backports.weakref-1.0rc1.dist-info\top_level.txt
     文件          92  2017-09-16 22:00  tensorflow\python2.7\dist-packages\backports.weakref-1.0rc1.dist-info\WHEEL
     目录           0  2017-09-21 21:06  tensorflow\python2.7\dist-packages\bleach\
     文件         534  2017-09-16 22:05  tensorflow\python2.7\dist-packages\bleach\callbacks.py
     文件         985  2017-09-16 22:06  tensorflow\python2.7\dist-packages\bleach\callbacks.pyc
     文件        2277  2017-09-16 22:05  tensorflow\python2.7\dist-packages\bleach\encoding.py
     文件        1719  2017-09-16 22:06  tensorflow\python2.7\dist-packages\bleach\encoding.pyc
     文件        6483  2017-09-16 22:05  tensorflow\python2.7\dist-packages\bleach\sanitizer.py
     文件        5227  2017-09-16 22:06  tensorflow\python2.7\dist-packages\bleach\sanitizer.pyc
     文件         136  2017-09-16 22:05  tensorflow\python2.7\dist-packages\bleach\version.py
     文件         342  2017-09-16 22:06  tensorflow\python2.7\dist-packages\bleach\version.pyc
     文件       15427  2017-09-16 22:05  tensorflow\python2.7\dist-packages\bleach\__init__.py
     文件       13620  2017-09-16 22:06  tensorflow\python2.7\dist-packages\bleach\__init__.pyc
     目录           0  2017-09-21 21:06  tensorflow\python2.7\dist-packages\bleach-1.5.0.dist-info\
     文件        7828  2017-09-16 22:05  tensorflow\python2.7\dist-packages\bleach-1.5.0.dist-info\DEscriptION.rst
     文件           4  2017-09-16 22:06  tensorflow\python2.7\dist-packages\bleach-1.5.0.dist-info\INSTALLER
     文件        8925  2017-09-16 22:05  tensorflow\python2.7\dist-packages\bleach-1.5.0.dist-info\metaDATA
............此处省略6697个文件信息

评论

共有 条评论