Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 34 for Cool (0.16 sec)

  1. tensorflow/c/experimental/filesystem/plugins/gcs/ram_file_block_cache.cc

    #include <memory>
    #include <sstream>
    #include <utility>
    
    #include "absl/synchronization/mutex.h"
    #include "tensorflow/c/experimental/filesystem/plugins/gcs/cleanup.h"
    
    namespace tf_gcs_filesystem {
    
    bool RamFileBlockCache::BlockNotStale(const std::shared_ptr<Block>& block) {
      absl::MutexLock l(&block->mu);
      if (block->state != FetchState::FINISHED) {
        return true;  // No need to check for staleness.
      }
    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)
  2. tensorflow/c/eager/c_api_experimental_test.cc

    #include "tensorflow/core/protobuf/cluster.pb.h"
    #include "tensorflow/core/protobuf/config.pb.h"
    
    using tensorflow::string;
    
    namespace tensorflow {
    namespace {
    
    static bool HasSubstr(absl::string_view base, absl::string_view substr) {
      bool ok = absl::StrContains(base, substr);
      EXPECT_TRUE(ok) << base << ", expected substring " << substr;
      return ok;
    }
    
    TEST(CAPI, MonitoringCounter0) {
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Aug 03 03:14:26 GMT 2023
    - 31.5K bytes
    - Viewed (1)
  3. tensorflow/c/experimental/filesystem/modular_filesystem.cc

      ops_->path_exists(filesystem_.get(), translated_name.c_str(),
                        plugin_status.get());
      return StatusFromTF_Status(plugin_status.get());
    }
    
    bool ModularFileSystem::FilesExist(const std::vector<std::string>& files,
                                       TransactionToken* token,
                                       std::vector<Status>* status) {
      if (ops_->paths_exist == nullptr)
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Wed Sep 06 19:12:29 GMT 2023
    - 23.1K bytes
    - Viewed (0)
  4. tensorflow/c/experimental/filesystem/plugins/gcs/ram_file_block_cache_test.cc

        }
      }
    }
    
    TEST(RamFileBlockCacheTest, OutOfRange) {
      // Tests reads of a 24-byte file with block size 16.
      const size_t block_size = 16;
      const size_t file_size = 24;
      bool first_block = false;
      bool second_block = false;
      auto fetcher = [block_size, file_size, &first_block, &second_block](
                         const string& filename, size_t offset, size_t n,
    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_unified_experimental_test.cc

    // - a string representing the tracing implementation: "mlir" or "graphdef".
    // - a boolean that when true enables TFRT as the execution engine.
    class UnifiedCAPI
        : public ::testing::TestWithParam<std::tuple<const char*, bool>> {
     protected:
      void SetUp() override {
        TF_StatusPtr status(TF_NewStatus());
        TF_SetTracingImplementation(std::get<0>(GetParam()), status.get());
        Status s = StatusFromTF_Status(status.get());
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Fri May 19 21:44:52 GMT 2023
    - 39.1K bytes
    - Viewed (0)
  6. tensorflow/c/c_test_util.cc

    }
    
    static void FloatDeallocator(void* data, size_t, void* arg) {
      delete[] static_cast<float*>(data);
    }
    
    TF_Tensor* BoolTensor(bool v) {
      const int num_bytes = sizeof(bool);
      bool* values = new bool[1];
      values[0] = v;
      return TF_NewTensor(TF_BOOL, nullptr, 0, values, num_bytes, &BoolDeallocator,
                          nullptr);
    }
    
    TF_Tensor* Int8Tensor(const int64_t* dims, int num_dims, const char* values) {
    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)
  7. tensorflow/c/eager/custom_device_test.cc

      TFE_Context* context = TFE_NewContext(opts, status.get());
      TFE_DeleteContextOptions(opts);
      ASSERT_TRUE(TF_GetCode(status.get()) == TF_OK) << TF_Message(status.get());
      bool arrived = false;
      bool executed = false;
      const char* name = "/job:localhost/replica:0/task:0/device:CUSTOM:0";
      RegisterLoggingDevice(context, name, /*strict_scope_placement=*/true,
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Aug 27 23:39:24 GMT 2020
    - 18.4K bytes
    - Viewed (0)
  8. tensorflow/c/eager/c_api_experimental.h

    typedef struct TFE_MonitoringBoolGaugeCell TFE_MonitoringBoolGaugeCell;
    TF_CAPI_EXPORT extern void TFE_MonitoringBoolGaugeCellSet(
        TFE_MonitoringBoolGaugeCell* cell, bool value);
    TF_CAPI_EXPORT extern bool TFE_MonitoringBoolGaugeCellValue(
        TFE_MonitoringBoolGaugeCell* cell);
    
    // APIs for Bool Gauge without label.
    typedef struct TFE_MonitoringBoolGauge0 TFE_MonitoringBoolGauge0;
    TF_CAPI_EXPORT extern TFE_MonitoringBoolGauge0* TFE_MonitoringNewBoolGauge0(
    C
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Wed Feb 21 22:37:46 GMT 2024
    - 39.5K bytes
    - Viewed (0)
  9. tensorflow/c/eager/dlpack.cc

      TFE_CallDLManagedTensorDeleter(dlmt_vptr);
    }
    
    // Checks whether the stride array matches the layout of compact, row-majored
    // data.
    bool IsValidStrideCompactRowMajorData(int64_t* shape_arr, int64_t* stride_arr,
                                          int ndim) {
      bool valid = true;
      int64_t expected_stride = 1;
      for (int i = ndim - 1; i >= 0; --i) {
        // Empty tensors are always compact regardless of strides.
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Feb 15 09:49:45 GMT 2024
    - 12.8K bytes
    - Viewed (0)
  10. tensorflow/c/experimental/grappler/grappler.h

    // be included in the output properties.
    TF_CAPI_EXPORT extern void TF_InferStatically(
        TF_GraphProperties* graph_properties, TF_Bool assume_valid_feeds,
        TF_Bool aggressive_shape_inference, TF_Bool include_input_tensor_values,
        TF_Bool include_output_tensor_values, TF_Status* s);
    
    // Get the size of input OpInfo::TensorProperties given node name.
    TF_CAPI_EXPORT extern void TF_GetInputPropertiesListSize(
    C
    - Registered: Tue Feb 27 12:39:08 GMT 2024
    - Last Modified: Wed Aug 03 18:08:43 GMT 2022
    - 12.5K bytes
    - Viewed (0)
Back to top