Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for collect (0.17 sec)

  1. tensorflow/c/eager/parallel_device/parallel_device_test.cc

      }
    
      {
        // Try to extract the wrong number of components from a parallel tensor
        std::array<TFE_TensorHandle*, 1> correct_components{value_one.get()};
        TensorHandlePtr combined_value = CreatePerDeviceValues(
            context.get(), correct_components, device_name, status.get());
        ASSERT_EQ(TF_GetCode(status.get()), TF_OK) << TF_Message(status.get());
    
    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)
  2. tensorflow/c/eager/c_api_cluster_test.cc

    }
    
    void TestConnectToCluster(bool keep_localhost_for_first_connect) {
      // Fail fast on GetStatus requests so we can get errors instead of timeout
      // when updating cluster with non-exsitent worker
      tensorflow::setenv("GRPC_FAIL_FAST", "TRUE", /*overwrite=*/1);
    
      const string first_name =
          keep_localhost_for_first_connect ? "localhost" : "abc";
      tensorflow::ServerDef server_def = GetServerDef(first_name, 1);
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Fri Apr 14 10:03:59 GMT 2023
    - 19.3K bytes
    - Viewed (0)
  3. tensorflow/c/experimental/filesystem/plugins/gcs/expiring_lru_cache_test.cc

      cache1.LookupOrCompute("a", &value, compute_func, &status);
      TF_EXPECT_OK(status.status);
      EXPECT_EQ(value, 1);
      EXPECT_EQ(num_compute_calls, 2);
    
      // Define a new cache with max_age > 0 and verify correct behavior.
      tf_gcs_filesystem::ExpiringLRUCache<int> cache2(2, 4);
      num_compute_calls = 0;
      value = -1;
    
      // Read our first value
      cache2.LookupOrCompute("a", &value, compute_func, &status);
    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)
  4. tensorflow/c/experimental/filesystem/plugins/gcs/ram_file_block_cache_test.cc

        return bytes_transferred;
      };
      for (size_t block_size = 2; block_size <= 4; block_size++) {
        // Make a cache of N-byte block size (1 block) and verify that reads of
        // varying offsets and lengths return correct data.
        tf_gcs_filesystem::RamFileBlockCache cache(block_size, block_size, 0,
                                                   fetcher);
        for (size_t offset = 0; offset < 10; offset++) {
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Fri Oct 15 03:16:57 GMT 2021
    - 23.2K bytes
    - Viewed (0)
  5. tensorflow/c/eager/c_api_test.cc

        const char* msg = "Matrix size-incompatible: In[0]: [2,2], In[1]: [3,2]";
        EXPECT_TRUE(strstr(TF_Message(status), msg) != nullptr)
            << TF_Message(status);
        // Since error is not cleared, the following copy with correct device will
        // still fail.
        TF_SetStatus(status, TF_OK, "");
        TFE_DeleteTensorHandle(retvals[0]);
        TFE_Executor* executor = TFE_ContextGetExecutorForThread(ctx);
    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)
  6. tensorflow/c/experimental/filesystem/plugins/gcs/gcs_filesystem.cc

                           .c_str());
        return;
      }
    
      PathExists(filesystem, dir.c_str(), status);
      if (TF_GetCode(status) == TF_OK) {
        // Use the original name for a correct error here.
        TF_VLog(3, "CreateDir: directory already exists, not uploading %s", path);
        return TF_SetStatus(status, TF_ALREADY_EXISTS, path);
      }
    
      auto metadata = gcs_file->gcs_client.InsertObject(
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Wed Aug 23 06:55:53 GMT 2023
    - 46.9K bytes
    - Viewed (0)
  7. tensorflow/c/c_api_function_test.cc

      Run({{func_feed, Int32Tensor(2)}}, func_op, 2 /*+=*/ + 5 + 1);
    
      // Verify input, output, and subset of edges in fdef.
      // The subset of edges we verify is a chain between feed1 and output to
      // make sure that the correct output is picked.
      tensorflow::FunctionDef fdef;
      ASSERT_TRUE(GetFunctionDef(func_, &fdef));
      VerifyFDefInputs(fdef, M({{"feed1"}, {"feed2"}}));
      VerifyFDefOutputs(fdef, M({{"test_loop_exit"}}));
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Jul 20 22:08:54 GMT 2023
    - 63.6K bytes
    - Viewed (6)
Back to top