Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for enable_v2_behavior (0.26 sec)

  1. tensorflow/api_template.__init__.py

    _current_module.__path__ = [_module_dir] + _current_module.__path__
    
    
    # Enable TF2 behaviors
    from tensorflow.python.compat import v2_compat as _compat
    _compat.enable_v2_behavior()
    _major_api_version = 2
    
    
    # Load all plugin libraries from site-packages/tensorflow-plugins if we are
    # running under pip.
    # TODO(gunan): Find a better location for this code snippet.
    Python
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Tue Mar 05 06:27:59 GMT 2024
    - 6.7K bytes
    - Viewed (3)
  2. RELEASE.md

        `compat.v2` module. It contains a copy of the 1.15 main module (without
        `contrib`) in the `compat.v1` module. TensorFlow 1.15 is able to emulate 2.0
        behavior using the `enable_v2_behavior()` function. This enables writing
        forward compatible code: by explicitly importing either
        `tensorflow.compat.v1` or `tensorflow.compat.v2`, you can ensure that your
    Plain Text
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Mon Apr 29 19:17:57 GMT 2024
    - 727.7K bytes
    - Viewed (8)
Back to top