Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 19 of 19 for One (0.24 sec)

  1. tensorflow/c/experimental/filesystem/modular_filesystem_registration.cc

      auto core_ops = std::make_unique<T>();
      memset(core_ops.get(), 0, sizeof(T));
      memcpy(core_ops.get(), plugin_ops, copy_size);
      return core_ops;
    }
    
    // Registers one filesystem from the plugin.
    //
    // Must be called only with `index` a valid index in `info->ops`.
    static Status RegisterFileSystem(const TF_FilesystemPluginInfo* info,
                                     int index) {
    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)
  2. tensorflow/c/c_api_function_test.cc

                                 params->body_graph, s_, "add1");
        ASSERT_EQ(TF_OK, TF_GetCode(s_)) << TF_Message(s_);
        TF_Operation* one = ScalarConst(1, params->body_graph, s_);
        ASSERT_EQ(TF_OK, TF_GetCode(s_)) << TF_Message(s_);
        TF_Operation* add2 = Add(add1, one, params->body_graph, s_, "add2");
        ASSERT_EQ(TF_OK, TF_GetCode(s_)) << TF_Message(s_);
        params->body_outputs[0] = {add2, 0};
    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)
  3. tensorflow/c/experimental/filesystem/plugins/gcs/gcs_filesystem.cc

        TF_SetStatus(status, TF_INVALID_ARGUMENT,
                     "GCS path doesn't contain an object name.");
      }
    }
    
    /// Appends a trailing slash if the name doesn't already have one.
    static void MaybeAppendSlash(std::string* name) {
      if (name->empty())
        *name = "/";
      else if (name->back() != '/')
        name->push_back('/');
    }
    
    // A helper function to actually read the data from GCS.
    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)
  4. tensorflow/c/eager/c_api_experimental.cc

        tensorflow::ImmediateExecutionTensorHandle* unwrapped_handle =
            tensorflow::unwrap(handles[i]);
        if (tensorflow::CustomDeviceTensorHandle::classof(unwrapped_handle)) {
          // One of the inputs we're trying to pack is on a custom device. We'll let
          // the first custom device we see handle all of the packing.
          auto* custom_device_handle =
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Apr 11 23:52:39 GMT 2024
    - 35.9K bytes
    - Viewed (3)
  5. tensorflow/c/experimental/filesystem/plugins/gcs/ram_file_block_cache_test.cc

      // but file "b" is not stale yet. Thus, once the pruning thread wakes up (in
      // 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".
    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/c_api_test.cc

      TF_Graph* graph = TF_NewGraph();
    
      // Make two scalar constants.
      TF_Operation* one = ScalarConst(1, graph, s, "one");
      ASSERT_EQ(TF_OK, TF_GetCode(s)) << TF_Message(s);
    
      TF_Operation* two = ScalarConst(2, graph, s, "two");
      ASSERT_EQ(TF_OK, TF_GetCode(s)) << TF_Message(s);
    
      // Add oper.
      TF_Operation* add = Add(one, two, graph, s, "add");
      ASSERT_EQ(TF_OK, TF_GetCode(s)) << TF_Message(s);
    
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Mon Apr 15 03:35:10 GMT 2024
    - 96.9K bytes
    - Viewed (3)
  7. tensorflow/c/experimental/filesystem/plugins/gcs/ram_file_block_cache.cc

      size_t finish = block_size_ * ((offset + n) / block_size_);
      if (finish < offset + n) {
        finish += block_size_;
      }
      size_t total_bytes_transferred = 0;
      // Now iterate through the blocks, reading them one at a time.
      for (size_t pos = start; pos < finish; pos += block_size_) {
        Key key = std::make_pair(filename, pos);
        // Look up the block, fetching and inserting it if necessary, and update the
    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)
  8. tensorflow/c/experimental/filesystem/modular_filesystem_test.cc

    // accessing local paths). This test suite tests exactly one scheme for each
    // invocation. By default, we are testing all schemes available but this can be
    // restricted by using `--schemes` to specify a set of schemes to test.
    //
    // Example invocation:
    //  bazel test //tensorflow/c/experimental/filesystem:modular_filesystem_test \\
    //  --test_arg=--dso=/path/to/one.so --test_arg=--dso=/path/to/another.so \\
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Fri May 27 20:25:58 GMT 2022
    - 71K bytes
    - Viewed (0)
  9. tensorflow/c/eager/c_api_test.cc

      TFE_DeleteContext(ctx);
      EXPECT_EQ(TF_OK, TF_GetCode(status)) << TF_Message(status);
    
      const int num_devices = TF_DeviceListCount(devices);
      EXPECT_GE(num_devices, 1) << "At least one CPU device should exist";
      for (int i = 0; i < num_devices; ++i) {
        EXPECT_NE("", TF_DeviceListName(devices, i, status)) << i;
        EXPECT_EQ(TF_OK, TF_GetCode(status)) << TF_Message(status);
      }
    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)
Back to top