Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 12 for other (0.22 sec)

  1. tensorflow/c/c_api.cc

          // We have a convoluted scheme here: Using the C++ graph construction API
          // to add potentially many nodes to the graph without running the checks
          // (such as uniqueness of the names of nodes) we run with other functions
          // that add a node to the graph (like TF_FinishOperation).
          if (!g->name_map.insert(std::make_pair(n->name(), n)).second) {
            status->status = tensorflow::errors::Internal(
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Mon Apr 15 03:35:10 GMT 2024
    - 102.3K bytes
    - Viewed (0)
  2. tensorflow/c/eager/parallel_device/parallel_device.cc

            // allows code like "tf.constant(1.)" or "tf.reduce_sum(..., axis=1)"
            // (where the value starts on the host), without allowing other implicit
            // copies/broadcasts. Other implicit copies may be supported eventually,
            // but need special handling for gradients (gradient of copy-on is not
            // just copy-off but includes a sum) and consideration of performance.
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Wed Mar 29 22:05:31 GMT 2023
    - 18.3K bytes
    - Viewed (0)
  3. tensorflow/c/eager/custom_device_testutil.cc

      if (dev->strict_scope_placement && *requested_placement == '\0') {
        TF_SetStatus(s, TF_INTERNAL,
                     "Ops must be placed on the device explicitly, or their inputs "
                     "first copied to other devices.");
        return;
      }
      TFE_Context* context = TFE_OpGetContext(original_op, s);
      if (TF_GetCode(s) != TF_OK) return;
      const char* operation_name = TFE_OpGetName(original_op, s);
    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)
  4. tensorflow/c/eager/c_api_distributed_test.cc

      }
    
     private:
      bool first_call_ = true;
    };
    
    // After the graph pass is registered, it takes effect globally and can affect
    // other test cases. Define a static variable to switch it on and off.
    bool GraphErrorInjectionPass::enabled_ = false;
    
    // Test to ensure that a registered graph optimization pass is only executed
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Feb 15 09:49:45 GMT 2024
    - 23.5K bytes
    - Viewed (0)
  5. tensorflow/c/experimental/filesystem/plugins/gcs/expiring_lru_cache_test.cc

      EXPECT_EQ(value, 2);
      EXPECT_TRUE(cache2.Lookup("c", &value));
      EXPECT_EQ(value, 3);
      EXPECT_TRUE(cache2.Lookup("d", &value));
      EXPECT_EQ(value, 4);
      // Insertion of "e" causes "a" to be evicted, but the other entries are still
      // there.
      cache2.Insert("e", 5);
      EXPECT_FALSE(cache2.Lookup("a", &value));
      EXPECT_TRUE(cache2.Lookup("b", &value));
      EXPECT_EQ(value, 2);
      EXPECT_TRUE(cache2.Lookup("c", &value));
    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)
  6. tensorflow/c/eager/parallel_device/parallel_device_lib.cc

      // `is_async` operations finish. In addition to allowing the caller to cancel
      // the operation, its `StartCancel` method will be called if op execution
      // fails on any device in order to cancel the others.
      void StartExecute(TFE_Context* context, const char* operation_name,
                        std::vector<TFE_TensorHandle*> inputs,
                        const TFE_OpAttrs* attributes, int expected_max_outputs,
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Fri Feb 09 07:47:20 GMT 2024
    - 25.4K bytes
    - Viewed (1)
  7. tensorflow/c/eager/c_api_test.cc

    // op they are called with.
    TFE_Op* CloneOp(const TFE_Op* other) {
      TF_Status* status = TF_NewStatus();
      TFE_Context* context = TFE_OpGetContext(other, status);
      CHECK_EQ(TF_OK, TF_GetCode(status)) << TF_Message(status);
      const char* op_name = TFE_OpGetName(other, status);
      CHECK_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)
  8. tensorflow/c/experimental/filesystem/modular_filesystem_test.cc

    TEST_P(ModularFileSystemTest, TestGetMatchingPaths) {
      const std::vector<std::string> matching_filenames = {
          GetURIForPath("a_file"),
          GetURIForPath("another_file"),
      };
      const std::vector<std::string> other_filenames = {
          GetURIForPath("some_file"),
          GetURIForPath("yet_another_file"),
      };
    
      for (const auto& filename : matching_filenames) {
        std::unique_ptr<WritableFile> file;
    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/gradients.cc

      return absl::OkStatus();
    }
    
    TapeTensor::TapeTensor(AbstractTensorHandle* handle) : handle_(handle) {
      handle_->Ref();
    }
    TapeTensor::TapeTensor(const TapeTensor& other) {
      handle_ = other.handle_;
      handle_->Ref();
    }
    TapeTensor::~TapeTensor() { handle_->Unref(); }
    
    int64_t TapeTensor::GetID() const { return ToId(handle_); }
    
    tensorflow::DataType TapeTensor::GetDType() const {
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Feb 15 09:49:45 GMT 2024
    - 19.3K bytes
    - Viewed (0)
  10. tensorflow/c/experimental/filesystem/plugins/gcs/ram_file_block_cache_test.cc

                         char* buffer, TF_Status* status) -> int64_t {
        EXPECT_EQ(n, block_size);
        EXPECT_EQ(offset, 0);
        num_requests++;
        memset(buffer, 'x', n);
        notification.Notify();
        // Wait for other thread to issue read.
        Env::Default()->SleepForMicroseconds(100000);  // 0.1 secs
        TF_SetStatus(status, TF_OK, "");
        return n;
      };
      tf_gcs_filesystem::RamFileBlockCache cache(block_size, block_size, 0,
    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)
Back to top