Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for doThing (0.21 sec)

  1. tensorflow/c/c_api_function.cc

                                   "' has a reference type ", DataTypeString(dt))
                 : absl::OkStatus();
    }
    
    // Converts `ninputs` and `inputs` into `inputs_tensors` and `input_nodes` and
    // does various checks while doing so. `input_nodes` will contain the same
    // information as input_tensors just in a different structure to make
    // following processing easier. TODO(iga): Simplify this nested structure.
    Status ProcessInputs(
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Mon Apr 15 03:35:10 GMT 2024
    - 13.6K bytes
    - Viewed (2)
  2. tensorflow/c/experimental/filesystem/plugins/gcs/expiring_lru_cache_test.cc

      // ...but is no longer valid 2 seconds after the insertion.
      env->SetNowSeconds(6);
      EXPECT_FALSE(cache.Lookup(key, &value));
    }
    
    TEST(ExpiringLRUCacheTest, MaxEntries) {
      // max_age of 0 means nothing will be cached.
      tf_gcs_filesystem::ExpiringLRUCache<int> cache1(0, 4);
      cache1.Insert("a", 1);
      int value = 0;
      EXPECT_FALSE(cache1.Lookup("a", &value));
      // Now set max_age = 1 and verify the LRU eviction logic.
    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)
  3. tensorflow/c/experimental/filesystem/plugins/gcs/ram_file_block_cache_test.cc

      return status.status;
    }
    
    TEST(RamFileBlockCacheTest, IsCacheEnabled) {
      auto fetcher = [](const string& filename, size_t offset, size_t n,
                        char* buffer, TF_Status* status) -> int64_t {
        // Do nothing.
        TF_SetStatus(status, TF_OK, "");
        return 0;
      };
      tf_gcs_filesystem::RamFileBlockCache cache1(0, 0, 0, fetcher);
      tf_gcs_filesystem::RamFileBlockCache cache2(16, 0, 0, fetcher);
    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)
  4. tensorflow/c/c_test_util.cc

      // Set device to CPU since there is no version of split for int32 on GPU
      // TODO(iga): Convert all these helpers and tests to use floats because
      // they are usually available on GPUs. After doing this, remove TF_SetDevice
      // call in c_api_function_test.cc
      TF_SetDevice(desc, "/cpu:0");
      *op = TF_FinishOperation(desc, s);
      ASSERT_EQ(TF_OK, TF_GetCode(s)) << TF_Message(s);
      ASSERT_NE(*op, nullptr);
    }
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Fri Oct 15 03:16:52 GMT 2021
    - 17.8K bytes
    - Viewed (2)
Back to top