Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 16 for support (0.18 sec)

  1. tensorflow/c/experimental/filesystem/plugins/windows/windows_filesystem.cc

    #include <string.h>
    
    #include "tensorflow/c/experimental/filesystem/filesystem_interface.h"
    #include "tensorflow/c/tf_status.h"
    
    // Implementation of a filesystem for POSIX environments.
    // This filesystem will support `file://` and empty (local) URI schemes.
    
    static void* plugin_memory_allocate(size_t size) { return calloc(1, size); }
    static void plugin_memory_free(void* ptr) { free(ptr); }
    
    C++
    - Registered: Tue Apr 09 12:39:09 GMT 2024
    - Last Modified: Fri May 27 20:21:15 GMT 2022
    - 2.6K bytes
    - Viewed (0)
  2. tensorflow/c/experimental/filesystem/plugins/posix/posix_filesystem.cc

    #include "tensorflow/c/tf_file_statistics.h"
    #include "tensorflow/c/tf_status.h"
    
    // Implementation of a filesystem for POSIX environments.
    // This filesystem will support `file://` and empty (local) URI schemes.
    
    static void* plugin_memory_allocate(size_t size) { return calloc(1, size); }
    static void plugin_memory_free(void* ptr) { free(ptr); }
    
    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.cc

        if (run_metadata != nullptr) {
          status->status = MessageToBuffer(run_metadata_proto, run_metadata);
          if (!status->status.ok()) return;
        }
      } else {
        // NOTE(zongheng): PRun does not support RunOptions yet.
        result = session->PRun(handle, input_pairs, output_tensor_names, &outputs);
      }
      if (!result.ok()) {
        status->status = result;
        return;
      }
    
      // Store results in c_outputs[]
    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)
  4. tensorflow/c/experimental/gradients/nn_grad.cc

                        absl::Span<AbstractTensorHandle*> outputs) {
      if (!isa<ImmediateExecutionContext>(ctx)) {
        // TODO(b/168850692): Fix this.
        return errors::Unimplemented(
            "BroadcastMul is not supported in tracing mode yet.");
      }
      auto imm_ctx = dyn_cast<ImmediateExecutionContext>(ctx);
      AbstractTensorPtr minus_1(imm_ctx->CreateInt32Scalar(-1));
      ImmediateTensorHandlePtr dim(imm_ctx->CreateLocalHandle(minus_1.get()));
    C++
    - Registered: Tue Mar 26 12:39:09 GMT 2024
    - Last Modified: Wed Feb 28 13:53:47 GMT 2024
    - 5.7K bytes
    - Viewed (0)
  5. tensorflow/c/c_api_experimental.cc

        return {};
      }
      const auto& fdef_lib = gdef.library();
      if (fdef_lib.gradient_size() > 0) {
        status->status = tensorflow::errors::Internal(
            "GradientDef is not supported in reading Dataset related functions: ",
            text_proto);
        return {};
      }
      std::vector<UniqueFuncPtr> ret;
      for (const FunctionDef& fdef : fdef_lib.function()) {
    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)
  6. tensorflow/c/eager/dlpack.cc

          tensorflow::TensorHandleFromInterface(tensorflow::unwrap(h));
      if (handle->Type() != TensorHandle::LOCAL) {
        status->status = tensorflow::errors::InvalidArgument(
            "DLPack doesn't support ", handle->TypeString(), " tensor");
        return nullptr;
      }
      const tensorflow::Tensor* tensor;
      status->status = handle->Tensor(&tensor);
      if (!status->status.ok()) {
        return nullptr;
      }
      return tensor;
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Thu Feb 15 09:49:45 GMT 2024
    - 12.8K bytes
    - Viewed (0)
  7. tensorflow/c/eager/gradients.cc

      for (int i = 0; i < *num_retvals; i++) {
        // TODO(srbs): Manage refcount of ForwardOperation's inputs/outputs.
        forward_op_->outputs.push_back(retvals[i]);
      }
      // TODO(b/166669239): This is needed to support AttrBuilder::Get for string
      // attributes. Number type attrs and DataType attrs work fine without this.
      // Consider getting rid of this and making the behavior between number types
      // and string consistent.
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Thu Feb 15 09:49:45 GMT 2024
    - 19.3K bytes
    - Viewed (0)
  8. tensorflow/c/experimental/filesystem/modular_filesystem.cc

        std::unique_ptr<RandomAccessFile>* result) {
      if (ops_->new_random_access_file == nullptr)
        return errors::Unimplemented(tensorflow::strings::StrCat(
            "Filesystem for ", fname, " does not support NewRandomAccessFile()"));
    
      UniquePtrTo_TF_Status plugin_status(TF_NewStatus(), TF_DeleteStatus);
      auto file = std::make_unique<TF_RandomAccessFile>();
      std::string translated_name = TranslateName(fname);
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Wed Sep 06 19:12:29 GMT 2023
    - 23.1K bytes
    - Viewed (0)
  9. tensorflow/c/experimental/filesystem/modular_filesystem_registration.cc

    }
    
    // Validates the read only memory region operations given by the plugin.
    static Status ValidateHelper(const TF_ReadOnlyMemoryRegionOps* ops) {
      if (ops == nullptr) {
        // read only memory region support is always optional
        return OkStatus();
      }
    
      if (ops->cleanup == nullptr)
        return errors::FailedPrecondition(
            "Trying to register filesystem without `cleanup` operation on read "
    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)
  10. tensorflow/c/eager/c_api_remote_test_util.cc

      }
    
      TFE_TensorHandle* retvals[1];
      int num_retvals = 1;
      TFE_Execute(matmul, &retvals[0], &num_retvals, status);
      EXPECT_EQ(TF_GetCode(status), TF_OK) << TF_Message(status);
    
      // TODO(gjn): Add support for waiting on async local mirrors
      if (!remote && !async && !remote_func_outputs) {
        auto remote_arg =
            tensorflow::TensorHandleFromInterface(tensorflow::unwrap(h1_task2));
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Fri Dec 11 22:56:03 GMT 2020
    - 9.1K bytes
    - Viewed (0)
Back to top