Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 19 for Try (0.14 sec)

  1. tensorflow/api_template.__init__.py

    # does not have "python", "core" directories. Then, it will be copied
    # to tensorflow/ which does have these two directories.
    try:
      del python
    except NameError:
      pass
    try:
      del core
    except NameError:
      pass
    try:
      del compiler
    except NameError:
      pass
    
    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. tensorflow/c/eager/c_api.h

    // error information in *status.
    TF_CAPI_EXPORT extern void TFE_ContextOptionsSetConfig(
        TFE_ContextOptions* options, const void* proto, size_t proto_len,
        TF_Status* status);
    
    // Controls how to act when we try to run an operation on a given device but
    // some input tensors are not on that device.
    // LINT.IfChange
    // Note: Keep in sync with internal copy of enum in eager/context.h.
    typedef enum TFE_ContextDevicePlacementPolicy {
    C
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Apr 27 21:07:00 GMT 2023
    - 22.8K bytes
    - Viewed (1)
  3. ci/official/containers/linux_arm64/devel.usertools/squash_testlogs.py

    internal invocation viewer.
    """
    import collections
    import os
    import re
    import subprocess
    import sys
    from junitparser import JUnitXml
    
    result = JUnitXml()
    try:
      files = subprocess.check_output(
          ["grep", "-rlE", '(failures|errors)="[1-9]', sys.argv[1]]
      )
    except subprocess.CalledProcessError as e:
      print("No failures found to log!")
      exit(0)
    
    Python
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Mon Sep 18 19:00:37 GMT 2023
    - 4.8K bytes
    - Viewed (0)
  4. tensorflow/c/eager/parallel_device/parallel_device_test.cc

      TensorHandlePtr size_three(
          VectorFloatTensorHandle(size_three_value, status.get()));
      ASSERT_EQ(TF_GetCode(status.get()), TF_OK) << TF_Message(status.get());
    
      // Try to combine these values into a single parallel tensor.
      std::array<TFE_TensorHandle*, 2> components{size_two.get(), size_three.get()};
      TensorHandlePtr combined_value = CreatePerDeviceValues(
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Jul 08 23:47:35 GMT 2021
    - 29.3K bytes
    - Viewed (1)
  5. README.md

    commands.
    
    *Nightly binaries are available for testing using the
    [tf-nightly](https://pypi.python.org/pypi/tf-nightly) and
    [tf-nightly-cpu](https://pypi.python.org/pypi/tf-nightly-cpu) packages on PyPi.*
    
    #### *Try your first TensorFlow program*
    
    ```shell
    $ python
    ```
    
    ```python
    >>> import tensorflow as tf
    >>> tf.add(1, 2).numpy()
    3
    >>> hello = tf.constant('Hello, TensorFlow!')
    >>> hello.numpy()
    Plain Text
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Oct 05 15:00:10 GMT 2023
    - 11.9K bytes
    - Viewed (0)
  6. tensorflow/c/experimental/filesystem/plugins/gcs/expiring_lru_cache_test.cc

      int value = 0;
      EXPECT_TRUE(cache.Lookup("a", &value));
      EXPECT_EQ(value, 1);
    
      // Delete the entry.
      EXPECT_TRUE(cache.Delete("a"));
      EXPECT_FALSE(cache.Lookup("a", &value));
    
      // Try deleting the entry again.
      EXPECT_FALSE(cache.Delete("a"));
      EXPECT_FALSE(cache.Lookup("a", &value));
    }
    
    }  // namespace
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Jul 09 19:31:22 GMT 2020
    - 7.1K bytes
    - Viewed (0)
  7. tensorflow/c/c_api_test.cc

      EXPECT_EQ(2, num_dims);
      EXPECT_EQ(2, returned_dims[0]);
      EXPECT_EQ(3, returned_dims[1]);
    
      // Try to fetch a shape with the wrong num_dims
      TF_GraphGetTensorShape(graph, feed_out_0, returned_dims, 5, s);
      EXPECT_EQ(TF_INVALID_ARGUMENT, TF_GetCode(s)) << TF_Message(s);
    
      // Try to set an invalid shape (cannot change 2x3 to a 2x5).
      dims[1] = 5;
      TF_GraphSetTensorShape(graph, feed_out_0, dims, 2, s);
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Mon Apr 15 03:35:10 GMT 2024
    - 96.9K bytes
    - Viewed (3)
  8. tensorflow/c/eager/c_api_test.cc

      TFE_TensorHandle* input2 = TestMatrixTensorHandle(ctx);
      TFE_Op* identityOp = TFE_NewOp(ctx, "IdentityN", status);
      CHECK_EQ(TF_OK, TF_GetCode(status)) << TF_Message(status);
    
      // Try to retrieve lengths before building the attributes (should fail)
      EXPECT_EQ(-1, TFE_OpGetInputLength(identityOp, "input", status));
      CHECK_NE(TF_OK, TF_GetCode(status)) << TF_Message(status);
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Aug 03 20:50:20 GMT 2023
    - 94.6K bytes
    - Viewed (1)
  9. ci/official/wheel_test/test_import_api_packages.py

            "tensorflow.distribute.coordinator",
            "tensorflow.distribute.experimental.partitioners",
        ]
    
      def test_import_runtime(self):
        """Try to import all packages from api packages file one by one."""
        version = "v2"
        failed_packages = []
    
        logging.info("Try to import packages at runtime...")
        for package_name in self.api_packages_v2:
          # Convert package name to the short version:
    Python
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Wed Sep 13 15:52:07 GMT 2023
    - 3.3K bytes
    - Viewed (0)
  10. configure.py

    
    def is_s390x():
      return platform.machine() == 's390x'
    
    
    def is_cygwin():
      return platform.system().startswith('CYGWIN_NT')
    
    
    def get_input(question):
      try:
        try:
          answer = raw_input(question)
        except NameError:
          answer = input(question)  # pylint: disable=bad-builtin
      except EOFError:
        answer = ''
      return answer
    
    
    Python
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Mon Apr 15 18:25:36 GMT 2024
    - 53.8K bytes
    - Viewed (0)
Back to top