Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 84 for static (0.2 sec)

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

    #include "tensorflow/core/platform/status.h"
    
    namespace tensorflow {
    
    // Register the POSIX filesystems statically.
    // Return value will be unused
    bool StaticallyRegisterLocalFilesystems() {
      TF_FilesystemPluginInfo info;
      TF_InitPlugin(&info);
      Status status = filesystem_registration::RegisterFilesystemPluginImpl(&info);
      if (!status.ok()) {
        VLOG(0) << "Static POSIX filesystem could not be registered: " << status;
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Sun Mar 24 20:08:23 GMT 2024
    - 1.5K bytes
    - Viewed (0)
  2. 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); }
    
    // SECTION 1. Implementation for `TF_RandomAccessFile`
    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)
  3. tensorflow/c/eager/dlpack_test.cc

      TFE_Context* ctx = TFE_NewContext(opts, status);
      ASSERT_EQ(TF_OK, TF_GetCode(status)) << TF_Message(status);
      TFE_DeleteContextOptions(opts);
    
      TestHandleFromDLPack(status, ctx, {}, {});
      TestHandleFromDLPack(status, ctx, {4}, {});
      TestHandleFromDLPack(status, ctx, {4}, {1});
      TestHandleFromDLPack(status, ctx, {4, 3, 2}, {});
      TestHandleFromDLPack(status, ctx, {4, 3, 2}, {6, 2, 1});
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Fri Jun 30 03:04:46 GMT 2023
    - 4.4K bytes
    - Viewed (0)
  4. tensorflow/c/eager/c_api_unified_experimental.cc

        DCHECK(shape.dim_sizes != nullptr);
        Status status = tensorflow::PartialTensorShape::MakePartialShape(
            reinterpret_cast<int64_t*>(shape.dim_sizes), shape.num_dims,
            &partial_shape);
        if (!status.ok()) {
          tsl::Set_TF_Status_from_Status(s, status);
          return nullptr;
        }
      }
      tsl::Set_TF_Status_from_Status(
          s, tracing_ctx->AddParameter(static_cast<DataType>(dtype), partial_shape,
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Feb 15 09:49:45 GMT 2024
    - 9K bytes
    - Viewed (0)
  5. tensorflow/c/c_api.cc

                                                  TF_Status* status) {
      Session* session;
      status->status = NewSession(opt->options, &session);
      if (status->status.ok()) {
        return new TF_DeprecatedSession({session});
      } else {
        DCHECK_EQ(nullptr, session);
        return nullptr;
      }
    }
    
    void TF_CloseDeprecatedSession(TF_DeprecatedSession* s, TF_Status* status) {
      status->status = s->session->Close();
    }
    
    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)
  6. ci/official/containers/linux_arm64/builder.devtoolset/gcc9-fixups.patch

          dynamic_addr(symbol) = static_addr(symbol) + load_addr
     
    -     The choice of symbol is arbitrary. The static address we obtain
    -     by constructing a non GOT reference to the symbol, the dynamic
    -     address of the symbol we compute using adrp/add to compute the
    -     symbol's address relative to the PC. */
    -
    -  ElfW(Addr) static_addr;
    -  ElfW(Addr) dynamic_addr;
    -
    -  asm ("					\n\
    Others
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Mon Sep 18 14:52:45 GMT 2023
    - 8.9K bytes
    - Viewed (0)
  7. tensorflow/c/eager/graph_function.h

      // FunctionDef.
      Status GetFunctionDef(const FunctionDef** fdef) override;
    
      // Returns a shared reference to the wrapped function.
      absl::StatusOr<core::RefCountPtr<FunctionRecord>> GetFunctionRecord()
          override {
        return func_record_.GetNewRef();
      }
    
      // For LLVM style RTTI.
      static bool classof(const AbstractFunction* ptr) {
        return ptr->getKind() == kGraph;
    C
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Mon Mar 04 19:49:06 GMT 2024
    - 1.8K bytes
    - Viewed (0)
  8. tensorflow/c/experimental/filesystem/plugins/gcs/cleanup.h

      // Hint: use c.release()() to run early.
      F release() {
        released_ = true;
        return std::move(f_);
      }
    
      bool is_released() const { return released_; }
    
     private:
      static_assert(!std::is_reference<F>::value, "F must not be a reference");
    
      bool released_ = false;
      F f_;
    };
    
    template <int&... ExplicitParameterBarrier, typename F,
    C
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Jul 09 11:16:00 GMT 2020
    - 3.4K bytes
    - Viewed (0)
  9. ci/official/containers/linux_arm64/devel.usertools/code_check_full.bats

    to a banned CUDA dependency. Here's the output from bazel query:
    EOF
      cat $BATS_TEST_TMPDIR/out
      [[ ! -s $BATS_TEST_TMPDIR/out ]]
    }
    
    @test "Pip package doesn't depend on CUDA for static builds (i.e. Windows)" {
      bazel cquery \
        --experimental_cc_shared_library \
        --@local_config_cuda//:enable_cuda \
        --define framework_shared_object=false \
    Plain Text
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Mon Sep 18 14:52:45 GMT 2023
    - 12.7K bytes
    - Viewed (0)
  10. tensorflow/c/c_api_test.cc

                      api_def_overwrites.size(), status);
      EXPECT_EQ(TF_OK, TF_GetCode(status)) << TF_Message(status);
      TF_DeleteStatus(status);
    
      string op_name = "TestCApi";
      status = TF_NewStatus();
      auto* api_def_buf =
          TF_ApiDefMapGet(api_def_map, op_name.c_str(), op_name.size(), status);
      EXPECT_EQ(TF_OK, TF_GetCode(status)) << TF_Message(status);
      TF_DeleteStatus(status);
    
      tensorflow::ApiDef api_def;
    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)
Back to top