- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 10 for calling (0.35 sec)
-
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) -
tensorflow/c/eager/c_api_experimental.h
// TFE_ExecutorWaitForAllPendingNodes before calling this API if you want to // make sure all nodes are finished. TF_CAPI_EXPORT extern void TFE_DeleteExecutor(TFE_Executor*); // Returns true if the executor is in async mode. TF_CAPI_EXPORT extern bool TFE_ExecutorIsAsync(TFE_Executor*); // Causes the calling thread to block till all ops dispatched in this executor
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) -
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) -
tensorflow/c/c_api.h
// of stdbool.h is avoided and unsigned char is used instead. // * size_t is used to represent byte sizes of objects that are // 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.
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) -
tensorflow/c/eager/tape.h
// Tell the forward accumulator to watch tensor_id, with a Tensor tangent // vector `tangent` of matching shape and dtype. Tangents are the "vector" in // "Jacobian-vector product"; `Watch`ing a new Tensor and immediately calling // FetchJVP for it would return `tangent`. void Watch(int64_t tensor_id, Gradient* tangent); // Removes the gradient associated with tensor_id. Should be called when the
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) -
tensorflow/c/c_api_experimental.h
// in `input_shapes`. // // The results are returned in `output_shapes` and // `output_resource_shapes_and_types`. The caller is responsible for freeing the // memory in these buffers by calling `TF_DeleteShapeAndTypeList`. TF_CAPI_EXPORT extern void TFE_InferShapes( TFE_Op* op, TF_ShapeAndTypeList* input_shapes, TF_Tensor** input_tensors, TF_ShapeAndTypeList* input_tensor_as_shapes,
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) -
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) -
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) -
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 30 12:39:09 GMT 2024 - Last Modified: Fri May 27 17:36:54 GMT 2022 - 53.1K bytes - Viewed (0) -
tensorflow/c/eager/c_api.h
// Some TF ops need a step container to be set to limit the lifetime of some // resources (mostly TensorArray and Stack, used in while loop gradients in // graph mode). Calling this on a context tells it to start a step. TF_CAPI_EXPORT extern void TFE_ContextStartStep(TFE_Context* ctx); // Ends a step. When there is no active step (that is, every started step has
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)