Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for Callbacks (0.31 sec)

  1. src/cmd/cgo/internal/swig/testdata/callback/main.h

    // license that can be found in the LICENSE file.
    
    class Callback {
    public:
    	virtual ~Callback() { }
    	virtual std::string run() { return "Callback::run"; }
    };
    
    class Caller {
    private:
    	Callback *callback_;
    public:
    	Caller(): callback_(0) { }
    	~Caller() { delCallback(); }
    	void delCallback() { delete callback_; callback_ = 0; }
    	void setCallback(Callback *cb) { delCallback(); callback_ = cb; }
    	std::string call();
    C
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Fri May 12 12:00:07 GMT 2023
    - 529 bytes
    - Viewed (0)
  2. tensorflow/c/eager/tape.h

      // Accumulate will forward op executions to the tape while the backward
      // function is running; this effectively adds the backward tape to the active
      // set (but does not require complicated callbacks to the language bindings).
      Status ForwardpropFromTape(
          const string& op_type, const std::vector<TapeTensor>& output_tensors,
          const std::function<BackwardFunction*()>& backward_function_getter,
    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)
  3. tensorflow/c/eager/c_api_experimental.h

        TFE_CancellationManager*);
    TF_CAPI_EXPORT extern bool TFE_CancellationManagerRegisterCallback(
        TFE_CancellationManager*, TFE_CancellationToken token,
        const TFE_CancelCallback* c_callback, const char* callback_name);
    TF_CAPI_EXPORT extern bool TFE_CancellationManagerDeregisterCallback(
        TFE_CancellationManager*, TFE_CancellationToken token);
    TF_CAPI_EXPORT extern bool TFE_CancellationManagerTryDeregisterCallback(
    C
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Wed Feb 21 22:37:46 GMT 2024
    - 39.5K bytes
    - Viewed (0)
  4. src/cmd/cgo/internal/test/callback_c.c

    // Copyright 2011 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    #include <string.h>
    
    #include "_cgo_export.h"
    
    void
    callback(void *f)
    {
    	// use some stack space
    	volatile char data[64*1024];
    
    	data[0] = 0;
    	goCallback(f);
            data[sizeof(data)-1] = 0;
    }
    
    void
    callGoFoo(void)
    {
    	extern void goFoo(void);
    C
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Fri May 12 12:00:02 GMT 2023
    - 933 bytes
    - Viewed (0)
  5. src/cmd/cgo/internal/test/callback_c_gccgo.c

    Austin Clements <******@****.***> 1683224724 -0400
    C
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Fri May 12 12:00:02 GMT 2023
    - 452 bytes
    - Viewed (0)
  6. tensorflow/c/c_api_experimental.h

    // Set XLA's internal BuildXlaOpsPassFlags.tf_xla_enable_lazy_compilation to the
    // value of 'enabled'. Also returns the original value of that flag.
    //
    // Use in tests to allow XLA to fallback to TF classic. This has global effect.
    TF_CAPI_EXPORT unsigned char TF_SetXlaEnableLazyCompilation(
        unsigned char enable);
    TF_CAPI_EXPORT unsigned char TF_SetTfXlaCpuGlobalJit(unsigned char enable);
    
    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)
  7. tensorflow/c/experimental/filesystem/plugins/gcs/expiring_lru_cache.h

      const uint64_t max_age_;
    
      /// The maximum number of entries in the cache. A value of 0 means there is no
      /// limit on entry count.
      const size_t max_entries_;
    
      /// The callback to read timestamps.
      std::function<uint64_t()> timer_seconds_;
    
      /// Guards access to the cache and the LRU list.
      absl::Mutex mu_;
    
      /// The cache (a map from string key to Entry).
    C
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Jul 09 19:31:22 GMT 2020
    - 6.3K bytes
    - Viewed (0)
  8. src/cmd/cgo/internal/test/callback_c_gc.c

    Austin Clements <******@****.***> 1683224724 -0400
    C
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Fri May 12 12:00:02 GMT 2023
    - 592 bytes
    - Viewed (0)
  9. tensorflow/c/experimental/filesystem/plugins/gcs/ram_file_block_cache.h

    ///
    /// This class should be shared by read-only random access files on a remote
    /// filesystem (e.g. GCS).
    class RamFileBlockCache {
     public:
      /// The callback executed when a block is not found in the cache, and needs to
      /// be fetched from the backing filesystem. This callback is provided when the
      /// cache is constructed. It returns total bytes read ( -1 in case of errors
    C
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Mon Aug 31 04:46:34 GMT 2020
    - 10.6K bytes
    - Viewed (0)
  10. tensorflow/c/eager/immediate_execution_context.h

      virtual void ClearCachesAndThreadExecutors() = 0;
    
      // Initialize the step resource container for a training step. This is used
      // in current TF runtime. For tfrt, it is used by fallback op handler.
      virtual void StartStep() = 0;
      // Destroy the step resource container for a training step.
      virtual void EndStep() = 0;
    
      // Return the Eager Executor for current thread. Please note that Eager
    C
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Jul 06 08:34:00 GMT 2023
    - 12.3K bytes
    - Viewed (0)
Back to top