Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 13 for carking (0.19 sec)

  1. src/cmd/cgo/internal/test/callback_c_gccgo.c

    // license that can be found in the LICENSE file.
    
    //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)
  2. tensorflow/c/eager/c_api_experimental.h

    // does not set the device name. If it's not `NULL`, then it attempts to parse
    // and set the device name. It's effectively `TFE_OpSetDevice`, but it is faster
    // than separately calling it because if the existing op has the same
    // `raw_device_name`, it skips parsing and just leave as it is.
    TF_CAPI_EXPORT extern void TFE_OpReset(TFE_Op* op_to_reset,
                                           const char* op_or_function_name,
    C
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Wed Feb 21 22:37:46 GMT 2024
    - 39.5K bytes
    - Viewed (0)
  3. tensorflow/c/experimental/grappler/grappler.h

    // Delete NewFunctionLibraryDefinition.
    TF_CAPI_EXPORT extern void TF_DeleteFunctionLibraryDefinition(
        TF_FunctionLibraryDefinition* fn_lib);
    
    // Shorthand for calling LookUp to get the OpDef from FunctionLibraryDefinition
    // given op name. The returned OpDef is represented by TF_Buffer.
    TF_CAPI_EXPORT extern void TF_LookUpOpDef(TF_FunctionLibraryDefinition* fn_lib,
    C
    - Registered: Tue Feb 27 12:39:08 GMT 2024
    - Last Modified: Wed Aug 03 18:08:43 GMT 2022
    - 12.5K bytes
    - Viewed (0)
  4. tensorflow/c/c_api.h

    //   materialized in the address space of the calling process.
    // * int is used as an index into arrays.
    // * Deletion functions are safe to call on nullptr.
    //
    // Questions left to address:
    // * Might at some point need a way for callers to provide their own Env.
    // * Maybe add TF_TensorShape that encapsulates dimension info.
    //
    // Design decisions made:
    // * Backing store for tensor memory has an associated deallocation
    C
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Thu Oct 26 21:08:15 GMT 2023
    - 82.3K bytes
    - Viewed (3)
  5. tensorflow/c/eager/parallel_device/parallel_device_testlib.h

      static Variable* Create(TFE_Context* context, TF_DataType type,
                              const int64_t* dims, const int num_dims,
                              const char* device, TF_Status* status);
      // Dereferences the backing buffer for the variable. Note that since this can
      // fail (it runs operations), it must be called explicitly and the resulting
      // `status` checked.
      void Destroy(TFE_Context* context, TF_Status* status);
    
    C
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Tue Feb 09 01:12:35 GMT 2021
    - 6.9K bytes
    - Viewed (0)
  6. tensorflow/c/eager/c_api.h

    ==============================================================================*/
    
    #ifndef TENSORFLOW_C_EAGER_C_API_H_
    #define TENSORFLOW_C_EAGER_C_API_H_
    
    // C API extensions to experiment with eager execution of kernels.
    // WARNING: Unlike tensorflow/c/c_api.h, the API here is not guaranteed to be
    // stable and can change without notice.
    
    #include "tensorflow/c/c_api.h"
    #include "tensorflow/c/c_api_macros.h"
    
    #ifdef __cplusplus
    extern "C" {
    C
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Thu Apr 27 21:07:00 GMT 2023
    - 22.8K bytes
    - Viewed (1)
  7. src/cmd/cgo/internal/test/callback_c_gc.c

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    //go:build gc
    
    #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 crosscall2(void (*fn)(void *, int), void *, int);
    extern void _cgo_panic(void *, int);
    extern void _cgo_allocate(void *, int);
    
    void
    callPanic(void)
    {
    C
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Fri May 12 12:00:02 GMT 2023
    - 592 bytes
    - Viewed (0)
  8. tensorflow/c/experimental/filesystem/filesystem_interface.h

      void (*sync)(const TF_WritableFile* file, TF_Status* status);
    
      /// Closes `*file`.
      ///
      /// Flushes all buffers and deallocates all resources.
      ///
      /// Calling `close` must not result in calling `cleanup`.
      ///
      /// Core TensorFlow will never call `close` twice.
      void (*close)(const TF_WritableFile* file, TF_Status* status);
    } TF_WritableFileOps;
    C
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Fri May 27 17:36:54 GMT 2022
    - 53.1K bytes
    - Viewed (0)
  9. tensorflow/c/experimental/filesystem/plugins/gcs/ram_file_block_cache.h

    /// 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
      /// ). The `status` should be `TF_OK` as long as the read from the remote
    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. src/cmd/cgo/internal/test/issue20910.c

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    #include <assert.h>
    #include <stdlib.h>
    #include <string.h>
    #include "_cgo_export.h"
    
    /* Test calling a Go function with multiple return values.  */
    
    void
    callMulti(void)
    {
    	struct multi_return result = multi();
    	assert(strcmp(result.r0, "multi") == 0);
    	assert(result.r1 == 0);
    	free(result.r0);
    C
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Fri May 12 12:00:02 GMT 2023
    - 459 bytes
    - Viewed (0)
Back to top