Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 16 for createdAt (0.22 sec)

  1. tensorflow/c/c_api.cc

          params.ninputs <= 0 || params.cond_inputs == nullptr ||
          params.body_inputs == nullptr || params.body_outputs == nullptr) {
        s->status = InvalidArgument(
            "TF_WhileParams must be created by successful TF_NewWhile() call");
        return false;
      }
      return true;
    }
    
    bool ValidateInputWhileParams(const TF_WhileParams& params, TF_Status* s) {
      if (params.cond_output.oper == nullptr) {
    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/experimental/filesystem/plugins/posix/posix_filesystem.cc

              new tf_read_only_memory_region::PosixMemoryRegion{
                  address, static_cast<uint64_t>(st.st_size)};
          TF_SetStatus(status, TF_OK, "");
        }
      }
    
      close(fd);
    }
    
    static void CreateDir(const TF_Filesystem* filesystem, const char* path,
                          TF_Status* status) {
      if (strlen(path) == 0)
        TF_SetStatus(status, TF_ALREADY_EXISTS, "already exists");
    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/c_api_experimental.cc

      if (!status->status.ok()) return;
    
      // Initialize a input_tensor vector with `nullptr` values.
      std::vector<const Tensor*> input_tensors_vector(num_inputs, nullptr);
      // A vector to keep track of newly created `tf::Tensor` objects.
      std::vector<Tensor> all_input_tensors;
      // Update the vector with information from `input_tensors` if provided.
      if (input_tensors != nullptr) {
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Mon Apr 15 03:35:10 GMT 2024
    - 29.4K bytes
    - Viewed (0)
  4. tensorflow/c/experimental/filesystem/modular_filesystem_test.cc

      status = env_->CreateDir(filepath);
      EXPECT_PRED2(UnimplementedOrReturnsCode, status, Code::ALREADY_EXISTS);
    }
    
    TEST_P(ModularFileSystemTest, TestCreateDirTwice) {
      const std::string dirpath = GetURIForPath("a_dir");
      Status status = env_->CreateDir(dirpath);
      if (!status.ok()) GTEST_SKIP() << "CreateDir() not supported: " << status;
    
      status = env_->CreateDir(dirpath);
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Fri May 27 20:25:58 GMT 2022
    - 71K bytes
    - Viewed (0)
  5. tensorflow/c/experimental/filesystem/modular_filesystem.cc

      return StatusFromTF_Status(plugin_status.get());
    }
    
    Status ModularFileSystem::CreateDir(const std::string& dirname,
                                        TransactionToken* token) {
      if (ops_->create_dir == nullptr)
        return errors::Unimplemented(tensorflow::strings::StrCat(
            "Filesystem for ", dirname, " does not support CreateDir()"));
    
      UniquePtrTo_TF_Status plugin_status(TF_NewStatus(), TF_DeleteStatus);
    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)
  6. tensorflow/c/experimental/filesystem/plugins/gcs/ram_file_block_cache.cc

      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)
  7. tensorflow/c/eager/c_api_experimental_test.cc

      //
      // 1. Create a variable on `remote_device`, using `ctx_0`.
      TFE_TensorHandle* handle_0 =
          CreateVariable(ctx_0, 1.2, remote_device, /*variable_name=*/"var");
    
      // 2. Wait for `var` to be created and initialized on the worker.
      TF_Status* status = TF_NewStatus();
      TFE_ContextAsyncWait(ctx_0, status);
      EXPECT_EQ(TF_OK, TF_GetCode(status)) << TF_Message(status);
      TF_DeleteStatus(status);
    
    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)
  8. tensorflow/c/eager/c_api_test.cc

      // 2. Wait for `var2` to be created and initialized on the worker.
      TF_Status* status = TF_NewStatus();
      TFE_ContextAsyncWait(ctx_0, status);
      EXPECT_EQ(TF_OK, TF_GetCode(status)) << TF_Message(status);
      TF_DeleteStatus(status);
    
      // 3. Read `var_2` using `ctx_1`. This read should succeed since `ctx_1` was
      // created with `isolate_session_state` set to false.
      {
    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)
  9. tensorflow/c/c_api_test.cc

      TF_Run(session, run_options, nullptr, nullptr, 0, nullptr, nullptr, 0,
             nullptr, 0, run_metadata, s);
      EXPECT_EQ(TF_INVALID_ARGUMENT, TF_GetCode(s)) << TF_Message(s);
      EXPECT_EQ("Session was not created with a graph before Run()!",
                string(TF_Message(s)));
      TF_DeleteBuffer(run_metadata);
      TF_DeleteBuffer(run_options);
    
      TF_DeleteDeprecatedSession(session, 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)
  10. tensorflow/c/env_test.cc

        found = true;
    
        TF_Status* s = TF_NewStatus();
    
        ::tensorflow::string dirpath =
            ::tensorflow::io::JoinPath(tempdir, "somedir");
        TF_CreateDir(dirpath.c_str(), s);
        ASSERT_TF_OK(s) << "TF_CreateDir failed for " << dirpath << ": "
                        << TF_Message(s);
    
        ::tensorflow::string filepath =
            ::tensorflow::io::JoinPath(dirpath, "somefile.txt");
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Mon Dec 10 20:52:48 GMT 2018
    - 4.2K bytes
    - Viewed (0)
Back to top