TensorFlow都有哪些模块?

 

运行:

import tensorflow as tf 
print(help(tf))


得到:

 

import tensorflow as tf 
print(help(tf))


/usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/lib/python3.7/importlib/_bootstrap.py:219: RuntimeWarning: compiletime version 3.6 of module 'tensorflow.python.framework.fast_tensor_util' does not match runtime version 3.7
  return f(*args, **kwds)
Help on package tensorflow:

NAME
    tensorflow

DESCRIPTION
    # Copyright 2015 The TensorFlow Authors. All Rights Reserved.
    #
    # Licensed under the Apache License, Version 2.0 (the "License");
    # you may not use this file except in compliance with the License.
    # You may obtain a copy of the License at
    #
    #     http://www.apache.org/licenses/LICENSE-2.0
    #
    # Unless required by applicable law or agreed to in writing, software
    # distributed under the License is distributed on an "AS IS" BASIS,
    # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    # See the License for the specific language governing permissions and
    # limitations under the License.
    # ==============================================================================

PACKAGE CONTENTS
    contrib (package)
    core (package)
    examples (package)
    libtensorflow_framework
    python (package)
    tools (package)

SUBMODULES
    app
    bitwise
    compat
    data
    distributions
    errors
    estimator
    feature_column
    flags
    gfile
    graph_util
    image
    initializers
    keras
    layers
    linalg
    logging
    losses
    manip
    metrics
    nn
    profiler
    python_io
    pywrap_tensorflow
    resource_loader
    saved_model
    sets
    spectral
    summary
    sysconfig
    test
    train
    user_ops

DATA
    AUTO_REUSE = <_ReuseMode.AUTO_REUSE: 1>
    COMPILER_VERSION = '4.2.1 Compatible Apple LLVM 8.1.0 (clang-802.0.42)...
    CXX11_ABI_FLAG = 0
    GIT_VERSION = 'v1.6.0-0-gd2e24b6039'
    GRAPH_DEF_VERSION = 26
    GRAPH_DEF_VERSION_MIN_CONSUMER = 0
    GRAPH_DEF_VERSION_MIN_PRODUCER = 0
    MONOLITHIC_BUILD = 0
    QUANTIZED_DTYPES = frozenset({tf.qint8, tf.quint8, tf.qint32, tf.qint1...
    VERSION = '1.6.0'
    __compiler_version__ = '4.2.1 Compatible Apple LLVM 8.1.0 (clang-802.0...
    __cxx11_abi_flag__ = 0
    __git_version__ = 'v1.6.0-0-gd2e24b6039'
    __monolithic_build__ = 0
    bfloat16 = tf.bfloat16
    bool = tf.bool
    complex128 = tf.complex128
    complex64 = tf.complex64
    double = tf.float64
    float16 = tf.float16
    float32 = tf.float32
    float64 = tf.float64
    half = tf.float16
    int16 = tf.int16
    int32 = tf.int32
    int64 = tf.int64
    int8 = tf.int8
    newaxis = None
    qint16 = tf.qint16
    qint32 = tf.qint32
    qint8 = tf.qint8
    quint16 = tf.quint16
    quint8 = tf.quint8
    resource = tf.resource
    string = tf.string
    uint16 = tf.uint16
    uint32 = tf.uint32
    uint64 = tf.uint64
    uint8 = tf.uint8
    variant = tf.variant

VERSION
    1.6.0

FILE
    /usr/local/lib/python3.7/site-packages/tensorflow/__init__.py


None
[Finished in 1.4s]

认识你是我们的缘分,同学,等等,学习人工智能,记得关注我。

 

TensorFlow都有哪些模块?_第1张图片

微信扫一扫
关注该公众号

《湾区人工智能》

你可能感兴趣的:(TensorFlow)