Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for Logger (0.5 sec)

  1. tensorflow/c/eager/custom_device_testutil.cc

        unwrapped_outputs.push_back(handle);
      }
      for (int i = 0; i < *num_outputs; ++i) {
        auto logged_tensor = std::make_unique<LoggedTensor>(unwrapped_outputs[i]);
        outputs[i] = MakeLoggedTensorHandle(context, dev->device_name,
                                            std::move(logged_tensor), s);
      }
      *(dev->executed_flag) = true;
    }
    
    void DeleteLoggingDevice(void* device_info) {
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Wed Mar 03 20:47:31 GMT 2021
    - 8.3K bytes
    - Viewed (0)
  2. tensorflow/c/experimental/filesystem/plugins/gcs/expiring_lru_cache_test.cc

      env->SetNowSeconds(3);
      int value = 0;
      EXPECT_TRUE(cache.Lookup(key, &value));
      EXPECT_EQ(value, 42);
      // 2 seconds after the most recent insertion, the entry is no longer valid.
      env->SetNowSeconds(4);
      EXPECT_FALSE(cache.Lookup(key, &value));
      // Re-insert the entry.
      cache.Insert(key, 43);
      EXPECT_TRUE(cache.Lookup(key, &value));
      EXPECT_EQ(value, 43);
    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/modular_filesystem_test.cc

      status = env_->NewRandomAccessFile(filepath, &read_file);
      if (!status.ok())
        GTEST_SKIP() << "NewRandomAccessFile() not supported: " << status;
    
      char scratch[64 /* must be bigger than test_data */] = {0};
      StringPiece result;
      // read at least 1 byte more than test_data
      status = read_file->Read(0, test_data.size() + 1, &result, scratch);
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Fri May 27 20:25:58 GMT 2022
    - 71K bytes
    - Viewed (0)
  4. tensorflow/c/experimental/filesystem/modular_filesystem_registration.cc

      TF_RETURN_IF_ERROR(ValidatePluginMemoryRoutines(info));
    
      // Validate and register all filesystems
      // Try to register as many filesystems as possible.
      // Free memory once we no longer need it
      Status status;
      for (int i = 0; i < info->num_schemes; i++) {
        status.Update(ValidateAndRegisterFilesystems(info, i));
        info->plugin_memory_free(info->ops[i].scheme);
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Tue Mar 07 22:08:43 GMT 2023
    - 12.8K bytes
    - Viewed (0)
  5. tensorflow/c/experimental/filesystem/plugins/gcs/gcs_filesystem.cc

        return -1;
      }
      int64_t read;
      auto content_length = stream.headers().find("content-length");
      if (content_length == stream.headers().end()) {
        // When we read a file with offset that is bigger than the actual file size.
        // GCS will return an empty header (e.g no `content-length` header). In this
        // case, we will set read to `0` and continue.
        read = 0;
    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)
Back to top