Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 55 for void (0.21 sec)

  1. tensorflow/c/c_api.cc

          ->set_disable_optimize_for_static_graph(true);
      return out;
    }
    void TF_DeleteSessionOptions(TF_SessionOptions* opt) { delete opt; }
    
    void TF_SetTarget(TF_SessionOptions* options, const char* target) {
      options->options.target = target;
    }
    
    void TF_SetConfig(TF_SessionOptions* options, const void* proto,
                      size_t proto_len, TF_Status* status) {
    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)
  2. tensorflow/c/eager/c_api_unified_experimental.cc

                                       &t));
      return wrap(t);
    }
    
    void TF_DeleteExecutionContext(TF_ExecutionContext* c) { unwrap(c)->Release(); }
    
    TF_AbstractOp* TF_NewAbstractOp(TF_ExecutionContext* c) {
      return wrap((unwrap(c)->CreateOperation()));
    }
    
    void TF_DeleteAbstractOp(TF_AbstractOp* op) { unwrap(op)->Release(); }
    
    void TF_DeleteAbstractTensor(TF_AbstractTensor* t) { unwrap(t)->Unref(); }
    
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Thu Feb 15 09:49:45 GMT 2024
    - 9K bytes
    - Viewed (0)
  3. tensorflow/c/experimental/filesystem/plugins/windows/windows_filesystem.cc

    #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)
  4. tensorflow/c/eager/dlpack_test.cc

    #include "absl/strings/str_join.h"
    #include "include/dlpack/dlpack.h"  // from @dlpack
    #include "tensorflow/c/eager/c_api.h"
    #include "tensorflow/core/platform/test.h"
    
    namespace tensorflow {
    namespace {
    
    void TestHandleFromDLPack(TF_Status* status, TFE_Context* ctx,
                              std::vector<int64_t> shape,
                              std::vector<int64_t> strides) {
      size_t num_elements = 1;
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Fri Jun 30 03:04:46 GMT 2023
    - 4.4K bytes
    - Viewed (0)
  5. tensorflow/c/env.cc

    }
    
    void TF_DefaultThreadOptions(TF_ThreadOptions* options) {
      options->stack_size = 0;
      options->guard_size = 0;
      options->numa_node = -1;
    }
    
    TF_Thread* TF_StartThread(const TF_ThreadOptions* options,
                              const char* thread_name, void (*work_func)(void*),
                              void* param) {
      ::tensorflow::ThreadOptions cc_options;
      cc_options.stack_size = options->stack_size;
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Wed Aug 11 01:20:50 GMT 2021
    - 7K bytes
    - Viewed (0)
  6. tensorflow/c/c_test_util.cc

    using tensorflow::NodeDef;
    
    static void BoolDeallocator(void* data, size_t, void* arg) {
      delete[] static_cast<bool*>(data);
    }
    
    static void Int32Deallocator(void* data, size_t, void* arg) {
      delete[] static_cast<int32_t*>(data);
    }
    
    static void DoubleDeallocator(void* data, size_t, void* arg) {
      delete[] static_cast<double*>(data);
    }
    
    static void FloatDeallocator(void* data, size_t, void* arg) {
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Fri Oct 15 03:16:52 GMT 2021
    - 17.8K bytes
    - Viewed (2)
  7. tensorflow/c/experimental/grappler/grappler.cc

      PluginGraphOptimizerRegistry::RegisterPluginOptimizerOrDie(
          creator, device_type, configs);
    }
    
    #undef CONFIG_TOGGLE
    
    absl::Status InitGraphPlugin(void* dso_handle) {
      tsl::Env* env = tsl::Env::Default();
    
      // Step 1: Load symbol for `TF_InitPlugin`
      void* dso_symbol;
      TF_RETURN_IF_ERROR(
          env->GetSymbolFromLibrary(dso_handle, "TF_InitGraph", &dso_symbol));
    
      // Step 2: Call `TF_InitPlugin`
    C++
    - Registered: Tue Feb 27 12:39:08 GMT 2024
    - Last Modified: Wed Sep 06 19:12:29 GMT 2023
    - 15K bytes
    - Viewed (1)
  8. tensorflow/c/eager/c_api_experimental_reader_test.cc

    TFE_MonitoringCounter0* CreateCounter0(const char* counter_name);
    TFE_MonitoringCounter1* CreateCounter1(const char* counter_name,
                                           const char* label);
    void IncrementCounter0(TFE_MonitoringCounter0* counter, int64_t delta = 1);
    void IncrementCounter1(TFE_MonitoringCounter1* counter, const char* label,
                           int64_t delta = 1);
    
    TEST(CAPI, MonitoringCellReader0) {
      auto counter_name = "test/counter0";
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Thu Apr 20 03:14:47 GMT 2023
    - 2.9K bytes
    - Viewed (0)
  9. tensorflow/c/eager/dlpack.cc

                                                     dtype.code);
      }
    }
    
    // Wraps the deleter function of DLManagedTensor to match the function signature
    // TFE_NewTensorHandleFromDeviceMemory.
    void DeallocatorWrapperFunc(void* data, size_t len, void* dlmt_vptr) {
      TFE_CallDLManagedTensorDeleter(dlmt_vptr);
    }
    
    // Checks whether the stride array matches the layout of compact, row-majored
    // data.
    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)
  10. tensorflow/c/eager/gradients.cc

    int64_t TapeVSpace::TensorId(AbstractTensorHandle* tensor) const {
      return ToId(tensor);
    }
    
    // Converts a Gradient to a TapeTensor.
    TapeTensor TapeVSpace::TapeTensorFromGradient(AbstractTensorHandle* g) const {
      return TapeTensor(g);
    }
    
    void TapeVSpace::MarkAsResult(AbstractTensorHandle* gradient) const {}
    
    void TapeVSpace::DeleteGradient(AbstractTensorHandle* gradient) const {
      gradient->Unref();
    }
    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)
Back to top