Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 48 for pcall (0.12 sec)

  1. tensorflow/c/eager/c_api.cc

    }
    
    // Note: this function looks up a thread local policy. So it should be called in
    // the appropriate client thread. In particular, in async mode, it may not be
    // safe to call this function from the async EagerExecutor threads.
    extern TFE_ContextDevicePlacementPolicy TFE_ContextGetDevicePlacementPolicy(
        TFE_Context* ctx) {
      return static_cast<TFE_ContextDevicePlacementPolicy>(
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Tue Mar 12 20:00:09 GMT 2024
    - 43.9K bytes
    - Viewed (2)
  2. tensorflow/c/c_api_function_test.cc

        TF_Operation* op;
        UseHelper(inputs, &op);
        return op;
      }
    
      // All the *Helper methods are used as a workaround for the restrictions that
      // one cannot call ASSERT_* methods in non-void-returning functions (when
      // exceptions are disabled during compilation)
      void UseHelper(const std::vector<TF_Output>& inputs, TF_Operation** op) {
        TF_OperationDescription* desc =
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Jul 20 22:08:54 GMT 2023
    - 63.6K bytes
    - Viewed (6)
  3. tensorflow/c/eager/tape.h

          new GradientTape<Gradient, BackwardFunction, TapeTensor>(false));
      AccumulatorCallState& call_state = call_state_.top();
      call_state.backward_tape = tape.get();
      auto pop_backward_tape =
          gtl::MakeCleanup([&call_state] { call_state.backward_tape = nullptr; });
      std::vector<Gradient*> forwardprop_aids;
      std::vector<int64_t> sources;
      std::unordered_set<int64_t> sources_set;
    C
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Tue Apr 02 12:40:29 GMT 2024
    - 47.2K bytes
    - Viewed (1)
  4. tensorflow/c/c_api_experimental.h

    // The returned string is heap-allocated, and caller should call free() on it.
    TF_CAPI_EXPORT extern const char* TF_GraphDebugString(TF_Graph* graph,
                                                          size_t* len);
    
    // Returns the function content in a human-readable format, with length set in
    // `len`. The format is subject to change in the future.
    // The returned string is heap-allocated, and caller should call free() on it.
    //
    C
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Apr 27 21:07:00 GMT 2023
    - 15.1K bytes
    - Viewed (0)
  5. tensorflow/c/experimental/filesystem/modular_filesystem_registration.h

    #include "tensorflow/core/platform/status.h"
    
    namespace tensorflow {
    namespace filesystem_registration {
    
    // Implementation for filesystem registration
    //
    // Don't call this directly. Instead call `RegisterFilesystemPlugin`.
    // Exposed only for static registration of local filesystems.
    Status RegisterFilesystemPluginImpl(const TF_FilesystemPluginInfo* info);
    
    }  // namespace filesystem_registration
    C
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Fri Mar 20 16:42:12 GMT 2020
    - 1.4K bytes
    - Viewed (0)
  6. tensorflow/c/eager/c_api_internal.h

      bool async = false;
      TFE_ContextDevicePlacementPolicy device_placement_policy{
          TFE_DEVICE_PLACEMENT_SILENT};
      // If true, use TFRT backend
      bool use_tfrt = false;
      // Whether to run elementary eager ops wrapped in a call op.
      bool run_eager_op_as_function = false;
      // Whether to rewrite jit_compile functions.
      bool jit_compile_rewrite = false;
    };
    
    C
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Wed Jan 18 19:26:34 GMT 2023
    - 1.9K bytes
    - Viewed (0)
  7. tensorflow/c/eager/parallel_device/parallel_device_lib_test.cc

               /*dep=*/{"assert"}},
          });
      TF_ASSERT_OK(ContextFromInterface(unwrap(context.get()))
                       ->AddFunctionDef(assert_and_collective));
    
      std::unique_ptr<TFE_Op, decltype(&TFE_DeleteOp)> call_op(
          TFE_NewOp(context.get(), "AssertAndCollective", status.get()),
          TFE_DeleteOp);
      ASSERT_EQ(TF_GetCode(status.get()), TF_OK) << TF_Message(status.get());
      std::unique_ptr<ParallelTensor> reduced_values =
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Jul 08 23:47:35 GMT 2021
    - 15.3K bytes
    - Viewed (0)
  8. tensorflow/c/eager/c_api_cluster_test.cc

      CheckRemoteMatMulExecutesOK(ctx, remote_device_name, local_device_name);
    
      // Adding a non-existent remote worker to cluster def. This should cause the
      // UpdateServerDef call to fail.
      tensorflow::ClusterDef* cluster_def = server_def.mutable_cluster();
      tensorflow::JobDef* job_def = cluster_def->mutable_job(0);
      int port = tensorflow::testing::PickUnusedPortOrDie();
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Fri Apr 14 10:03:59 GMT 2023
    - 19.3K bytes
    - Viewed (0)
  9. tensorflow/c/c_api_experimental.cc

      using tensorflow::AttrBuilder::AttrBuilder;
      // The string buffers to make sure that any `attr_name` we pass into
      // `builder->Set()` will outlive the subsequent
      // `TF_AttrBuilderCheckCanRunOnDevice()` call(s) on the same `builder`.
      std::set<std::string> attr_names;
    };
    
    TF_AttrBuilder* TF_NewAttrBuilder(const char* op_name) {
      return new TF_AttrBuilder(op_name);
    }
    
    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)
  10. ci/official/containers/linux_arm64/builder.devtoolset/stringop_trunc.patch

    -#  endif
    -# endif
    -
    -/* GCC < 3.0 optimizes memset(s, 0, n) but not bzero(s, n).
    -   The optimization is broken before EGCS 1.1.
    -   GCC 3.0+ has __builtin_bzero as well, but at least till GCC 3.4
    -   if it decides to call the library function, it calls memset
    -   and not bzero.  */
    -# if __GNUC_PREREQ (2, 91)
    -#  define __bzero(s, n) __builtin_memset (s, '\0', n)
    -# endif
    -
    +# define __bzero(s, n) __builtin_memset (s, '\0', n)
    Others
    - Registered: Tue May 07 12:40:20 GMT 2024
    - Last Modified: Mon Sep 18 14:52:45 GMT 2023
    - 42.9K bytes
    - Viewed (1)
Back to top