Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 14 for allocated (0.19 sec)

  1. tensorflow/c/eager/parallel_device/parallel_device.h

    // `underlying_devices` and `b` on the second. Running `a_unpacked, b_unpacked =
    // TPUReplicatedOutput(input=x, num_replicas=2)` un-packs the parallel tensor
    // into its components.
    //
    // The filled `device` struct and the allocated `device_info` struct may be
    // passed to TFE_RegisterCustomDevice. The `device_name` arguments must match.
    void AllocateParallelDevice(const char* device_name,
                                const char* const* underlying_devices,
    C
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Jun 04 21:49:16 GMT 2020
    - 2.9K bytes
    - Viewed (0)
  2. tensorflow/c/c_api.h

    //
    // Conventions:
    // * We use the prefix TF_ for everything in the API.
    // * Objects are always passed around as pointers to opaque structs
    //   and these structs are allocated/deallocated via the API.
    // * TF_Status holds error information.  It is an object type
    //   and therefore is passed around as a pointer to an opaque
    //   struct as mentioned above.
    C
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Oct 26 21:08:15 GMT 2023
    - 82.3K bytes
    - Viewed (3)
  3. tensorflow/c/eager/abstract_operation.h

      //
      // WARNING: The destructor of this class is marked as protected to disallow
      // clients from directly destroying this object since it may manage it's own
      // lifetime through ref counting. Thus this must be allocated on the heap and
      // clients MUST call Release() in order to destroy an instance of this class.
      virtual void Release() = 0;
    
      virtual Status Reset(const char* op, const char* raw_device_name) = 0;
    
    C
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Wed Jul 14 16:20:41 GMT 2021
    - 6.8K bytes
    - Viewed (0)
  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/filesystem_interface.h

    ///
    /// Since memory that is allocated by the DSO gets transferred to core
    /// TensorFlow, we need to provide a way for the allocation and deallocation to
    /// match. This is why this structure also defines `plugin_memory_allocate` and
    /// `plugin_memory_free` members.
    ///
    /// All memory allocated by the plugin that will be owned by core TensorFlow
    /// must be allocated using the allocator in this structure. Core TensorFlow
    C
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Fri May 27 17:36:54 GMT 2022
    - 53.1K bytes
    - Viewed (0)
  6. tensorflow/c/eager/c_api.h

                                                    TF_Status* status);
    
    // Execute the operation defined by 'op' and return handles to computed
    // tensors in `retvals`.
    //
    // 'retvals' must point to a pre-allocated array of TFE_TensorHandle* and
    // '*num_retvals' should be set to the size of this array. It is an error if
    // the size of 'retvals' is less than the number of outputs. This call sets
    // *num_retvals to the number of outputs.
    C
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Apr 27 21:07:00 GMT 2023
    - 22.8K bytes
    - Viewed (1)
  7. tensorflow/c/env.h

    // \brief Get a pointer to a symbol from a dynamic library.
    //
    // "handle" should be a pointer returned from a previous call to
    // TF_LoadLibraryFromEnv. On success, place OK in status and return a pointer to
    // the located symbol. Otherwise returns nullptr and set error status.
    TF_CAPI_EXPORT extern void* TF_GetSymbolFromLibrary(void* handle,
                                                        const char* symbol_name,
    C
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Sat Jan 09 02:53:27 GMT 2021
    - 9.6K bytes
    - Viewed (0)
  8. tensorflow/c/experimental/next_pluggable_device/c_api.h

        TF_CoordinationServiceAgent* agent, TF_Status* status);
    
    // Obtains key-value from coordination service agent. The returned `TF_Buffer`
    // is a newly allocated buffer to hold the string key-value, and caller is
    // responsible for managing the lifetime. If error, `status` will be set and a
    // nullptr will be returned.
    TF_CAPI_EXPORT extern TF_Buffer* TF_CoordinationServiceGetKeyValue(
    C
    - Registered: Tue Feb 27 12:39:08 GMT 2024
    - Last Modified: Wed Dec 20 20:01:06 GMT 2023
    - 7.2K bytes
    - Viewed (0)
  9. src/cmd/cgo/internal/test/callback_c_gccgo.c

    //go:build gccgo
    
    #include "_cgo_export.h"
    #include <stdint.h>
    #include <stdio.h>
    #include <stdlib.h>
    
    /* Test calling panic from C.  This is what SWIG does.  */
    
    extern void _cgo_panic(const char *);
    extern void *_cgo_allocate(size_t);
    
    void
    callPanic(void)
    {
    	_cgo_panic("panic from C");
    C
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Fri May 12 12:00:02 GMT 2023
    - 452 bytes
    - Viewed (0)
  10. tensorflow/c/eager/tape.h

            backward_function_getter, backward_function_deleter);
        return absl::OkStatus();
      }
      if (!ShouldRecord(input_tensor_id, input_dtypes)) {
        return absl::OkStatus();
      }
    
      // We may need to allocate zero inputs for trainable dtypes we don't have JVPs
      // for. Make sure they get cleaned up.
      std::vector<Gradient*> new_zeros;
      auto delete_new_zeros = gtl::MakeCleanup([&new_zeros, this] {
    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)
Back to top