Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 13 for whale (0.14 sec)

  1. tensorflow/c/c_api.cc

    #include "tensorflow/c/experimental/filesystem/modular_filesystem.h"
    #include "tensorflow/cc/framework/gradients.h"
    #include "tensorflow/cc/framework/ops.h"
    #include "tensorflow/cc/framework/scope_internal.h"
    #include "tensorflow/cc/ops/while_loop.h"
    #include "tensorflow/cc/saved_model/loader.h"
    #include "tensorflow/core/distributed_runtime/server_lib.h"
    #include "tensorflow/core/framework/logging.h"
    #include "tensorflow/core/framework/op_gen_lib.h"
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Mon Apr 15 03:35:10 GMT 2024
    - 102.3K bytes
    - Viewed (0)
  2. tensorflow/c/experimental/filesystem/plugins/posix/posix_filesystem.cc

                        char* buffer, TF_Status* status) {
      auto posix_file = static_cast<PosixFile*>(file->plugin_file);
      char* dst = buffer;
      int64_t read = 0;
    
      while (n > 0) {
        // Some platforms, notably macs, throw `EINVAL` if `pread` is asked to read
        // more than fits in a 32-bit integer.
        size_t requested_read_length;
        if (n > INT32_MAX)
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Sun Mar 24 20:08:23 GMT 2024
    - 15.8K bytes
    - Viewed (0)
  3. tensorflow/c/experimental/filesystem/plugins/gcs/ram_file_block_cache.cc

      // encounters an error.
      absl::MutexLock l(&block->mu);
      TF_SetStatus(status, TF_OK, "");
      while (true) {
        switch (block->state) {
          case FetchState::ERROR:
            // TF_FALLTHROUGH_INTENDED
          case FetchState::CREATED:
            block->state = FetchState::FETCHING;
            block->mu.Unlock();  // Release the lock while making the API call.
            block->data.clear();
            block->data.resize(block_size_, 0);
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Thu Jul 16 01:39:09 GMT 2020
    - 11.1K bytes
    - Viewed (0)
  4. tensorflow/c/experimental/filesystem/plugins/posix/copy_file_portable.cc

      // When `sendfile` returns 0 we stop copying and let callers handle this.
      while (offset < size && rc > 0) {
        size_t chunk = size - offset;
        if (chunk > kPosixCopyFileBufferSize) chunk = kPosixCopyFileBufferSize;
    
        rc = read(src_fd, buffer.get(), chunk);
        if (rc < 0) return -1;
    
        int total_write = 0;
        int total_read = rc;
        while (total_write < total_read && rc > 0) {
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Fri Nov 22 21:23:55 GMT 2019
    - 1.9K bytes
    - Viewed (0)
  5. tensorflow/c/experimental/filesystem/plugins/gcs/ram_file_block_cache_test.cc

      // one second of wall time), it should remove "a" and leave "b" alone.
      uint64 start = Env::Default()->NowSeconds();
      do {
        Env::Default()->SleepForMicroseconds(100000);
      } while (cache.CacheSize() == 24 && Env::Default()->NowSeconds() - start < 3);
      // There should be one block left in the cache, and it should be the first
      // block of "b".
      EXPECT_EQ(cache.CacheSize(), 8);
    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)
  6. tensorflow/c/eager/c_api_test.cc

          EXPECT_EQ(orig_ptr, TF_TensorData(t));
        } else {
          // In sync mode, forwarding can't really happen since the client code will
          // have a reference count on the input tensor while the kernel is being
          // executed and thus it cannot be re-used for the return tensor.
          EXPECT_NE(orig_ptr, TF_TensorData(t));
        }
      }
    
      ASSERT_EQ(TF_OK, TF_GetCode(status)) << TF_Message(status);
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Thu Aug 03 20:50:20 GMT 2023
    - 94.6K bytes
    - Viewed (1)
  7. tensorflow/c/c_api_test.cc

      // Test iterating through the nodes of a graph.
      found_placeholder = false;
      found_scalar_const = false;
      found_add = false;
      bool found_neg = false;
      size_t pos = 0;
      TF_Operation* oper;
      while ((oper = TF_GraphNextOperation(graph, &pos)) != nullptr) {
        if (oper == feed) {
          EXPECT_FALSE(found_placeholder);
          found_placeholder = true;
        } else if (oper == three) {
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Mon Apr 15 03:35:10 GMT 2024
    - 96.9K bytes
    - Viewed (3)
  8. tensorflow/c/env_test.cc

    #define ASSERT_TF_OK(x) ASSERT_EQ(TF_OK, TF_GetCode(x))
    
    TEST(TestEnv, TestDirHandling) {
      TF_StringStream* tempdirs = TF_GetLocalTempDirectories();
      const char* tempdir;
      bool found = false;
      while (TF_StringStreamNext(tempdirs, &tempdir)) {
        found = true;
    
        TF_Status* s = TF_NewStatus();
    
        ::tensorflow::string dirpath =
            ::tensorflow::io::JoinPath(tempdir, "somedir");
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Mon Dec 10 20:52:48 GMT 2018
    - 4.2K bytes
    - Viewed (0)
  9. tensorflow/c/experimental/grappler/grappler.cc

                              "struct_size field in " #STRUCT_NAME         \
                              " must be set to " #SIZE_VALUE_NAME ".");    \
        }                                                                  \
      } while (0)
    
    #define VALIDATE_MEMBER(STRUCT_NAME, STRUCT_OBJ, NAME)           \
      do {                                                           \
        if (STRUCT_OBJ.NAME == 0) {                                  \
    C++
    - Registered: Tue Feb 27 12:39:08 GMT 2024
    - Last Modified: Wed Sep 06 19:12:29 GMT 2023
    - 15K bytes
    - Viewed (1)
  10. tensorflow/c/c_api_function.cc

        TF_RETURN_WITH_CONTEXT_IF_ERROR(
            fn_body->graph.IsValidOutputTensor(node, idx),
            "Encountered while processing input ", i, " into function '", fn_name,
            "'");
        TF_RETURN_WITH_CONTEXT_IF_ERROR(ValidateNonRefOutput(node, idx),
                                        "Encountered while processing input ", i,
                                        " into function '", fn_name, "'");
    
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Mon Apr 15 03:35:10 GMT 2024
    - 13.6K bytes
    - Viewed (2)
Back to top