Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for creation (0.2 sec)

  1. tensorflow/c/experimental/filesystem/plugins/posix/posix_filesystem_helper.cc

    namespace tf_posix_filesystem {
    
    int TransferFileContents(const char* src, const char* dst, mode_t mode,
                             off_t size) {
      int src_fd = open(src, O_RDONLY);
      if (src_fd < 0) return -1;
    
      // When creating file, use the same permissions as original
      mode_t open_mode = mode & (S_IRWXU | S_IRWXG | S_IRWXO);
    
      // O_WRONLY | O_CREAT | O_TRUNC:
      //   Open file for write and if file does not exist, create the file.
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Thu Jan 16 05:36:52 GMT 2020
    - 2.1K bytes
    - Viewed (1)
  2. tensorflow/c/c_api.cc

                               TF_Status* status) {
    #if defined(IS_MOBILE_PLATFORM) || defined(IS_SLIM_BUILD)
      status->status = tensorflow::errors::Unimplemented(
          "Creating while loops is not supported on mobile. File a bug at "
          "https://github.com/tensorflow/tensorflow/issues if this feature is "
          "important to you");
      return EmptyWhileParams();
    #else
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Mon Apr 15 03:35:10 GMT 2024
    - 102.3K bytes
    - Viewed (0)
  3. tensorflow/c/c_api_function.cc

      control_output_nodes.reserve(ncontrol_outputs);
      for (int i = 0; i < ncontrol_outputs; ++i) {
        control_output_nodes.push_back(&control_outputs[i]->node);
      }
    
      // Do the actual function creation.
      DCHECK(append_hash_to_fn_name <= 1);
      tensorflow::FunctionDef fdef;
      status->status = tensorflow::GraphToFunctionDef(
          fn_body->graph, fn_name, append_hash_to_fn_name != 0,
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Mon Apr 15 03:35:10 GMT 2024
    - 13.6K bytes
    - Viewed (2)
  4. tensorflow/c/experimental/grappler/grappler.cc

      else                                                       \
        configs.toggle_config[#optimizer] = RewriterConfig::ON;
    
    void CGraphOptimizerRegister(
        const PluginGraphOptimizerRegistry::Creator& creator,
        const TP_OptimizerConfigs tp_configs, const char* device_type) {
      ConfigList configs;
      // disable_model_pruning is turned off by default.
      if (tp_configs.disable_model_pruning == TF_TriState_On)
    C++
    - Registered: Tue Feb 27 12:39:08 GMT 2024
    - Last Modified: Wed Sep 06 19:12:29 GMT 2023
    - 15K bytes
    - Viewed (1)
  5. tensorflow/c/eager/parallel_device/parallel_device_lib.cc

        std::vector<TensorHandlePtr> components, absl::Span<const int64_t> shape,
        TF_Status* status) {
      if (components.empty()) {
        TF_SetStatus(status, TF_INTERNAL,
                     "No components are provide for creating a ParallelTensor");
        return nullptr;
      }
      TFE_TensorHandleGetStatus(components[0].get(), status);
      if (!status->status.ok()) {
        return nullptr;
      }
    
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Fri Feb 09 07:47:20 GMT 2024
    - 25.4K bytes
    - Viewed (1)
  6. tensorflow/c/c_api_experimental.cc

      // scheduled on that same threadpool, causing a deadlock in cases where the
      // caller of event_mgr->ThenExecute() blocks on the completion of the callback
      // (as in the case of ConstOp kernel creation on GPU, which involves copying a
      // CPU tensor to GPU).
      // Setting a larger thread pool does not help with the Swift caller, as we use
      // a different TFE context for each thread of execution (for running graph
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Mon Apr 15 03:35:10 GMT 2024
    - 29.4K bytes
    - Viewed (0)
  7. tensorflow/c/experimental/filesystem/modular_filesystem_test.cc

      // `modular_filesystem_test.h` and extend the instantiation to also take as
      // argument an implementation for this method/a subclass factory (see
      // https://github.com/google/googletest/blob/master/googletest/docs/advanced.md#creating-value-parameterized-abstract-tests)
      std::string GetURIForPath(StringPiece path) {
        const std::string translated_name =
            tensorflow::io::JoinPath(root_dir_, path);
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Fri May 27 20:25:58 GMT 2022
    - 71K bytes
    - Viewed (0)
  8. tensorflow/c/experimental/filesystem/modular_filesystem_registration.cc

            "Filesystem allows creation of random access files but no "
            "operations on them have been supplied.");
    
      if ((ops->filesystem_ops->new_writable_file != nullptr ||
           ops->filesystem_ops->new_appendable_file != nullptr) &&
          ops->writable_file_ops == nullptr)
        return errors::FailedPrecondition(
            "Filesystem allows creation of writable files but no "
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Tue Mar 07 22:08:43 GMT 2023
    - 12.8K bytes
    - Viewed (0)
  9. tensorflow/c/c_api_function_test.cc

      EXPECT_EQ(string("When `num_opers` is set to -1, nodes referenced in "
                       "`inputs` must have a single output. Node split3 has "
                       "3 outputs. Encountered while creating function 'MyFunc'"),
                string(TF_Message(s_)));
    
      TF_DeleteTensor(tensor_123);
    }
    
    TEST_F(CApiFunctionTest, FunctionWithWhileLoop) {
      // Inputs to the while loop and the function as a whole
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Thu Jul 20 22:08:54 GMT 2023
    - 63.6K bytes
    - Viewed (6)
  10. tensorflow/c/experimental/filesystem/plugins/gcs/gcs_filesystem.cc

    }
    
    void CreateDir(const TF_Filesystem* filesystem, const char* path,
                   TF_Status* status) {
      std::string dir = path;
      MaybeAppendSlash(&dir);
      TF_VLog(3,
              "CreateDir: creating directory with path: %s and "
              "path_with_slash: %s",
              path, dir.c_str());
      std::string bucket, object;
      ParseGCSPath(dir, true, &bucket, &object, status);
      if (TF_GetCode(status) != TF_OK) return;
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Wed Aug 23 06:55:53 GMT 2023
    - 46.9K bytes
    - Viewed (0)
Back to top