- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 22 for sizeof (0.17 sec)
-
src/cmd/cgo/internal/test/callback_c.c
#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); goFoo(); } void IntoC(void) { BackIntoGo(); } void Issue1560InC(void) { Issue1560FromC(); }
C - Registered: Tue Apr 23 11:13:09 GMT 2024 - Last Modified: Fri May 12 12:00:02 GMT 2023 - 933 bytes - Viewed (0) -
tensorflow/c/eager/parallel_device/parallel_device_lib.h
const ParallelDevice& parallel_device, std::vector<TensorHandlePtr> components, absl::Span<const int64_t> shape, TF_Status* status); size_t num_tensors() const { return tensors_.size(); } TFE_TensorHandle* tensor(size_t index) const { return tensors_[index].get(); } // If the `shape` argument to `FromTensorHandles` is specified, returns that. //
C - Registered: Tue Apr 30 12:39:09 GMT 2024 - Last Modified: Tue Apr 25 15:21:13 GMT 2023 - 12.9K bytes - Viewed (0) -
tensorflow/c/c_test.c
fprintf(stderr, "TF_GetLocalTempDirectories returned no results\n"); return 1; } char file_name[100]; time_t t = time(NULL); snprintf(file_name, sizeof(file_name), "test-%d-%ld.txt", getpid(), t); size_t length = 2 + strlen(path) + strlen(file_name); char* full_path = malloc(length); snprintf(full_path, length, "%s/%s", path, file_name); TF_WritableFileHandle* h;
C - Registered: Tue Apr 30 12:39:09 GMT 2024 - Last Modified: Wed Apr 24 20:50:35 GMT 2024 - 2.8K bytes - Viewed (0) -
tensorflow/c/c_api_macros.h
#ifndef TF_Bool #define TF_Bool unsigned char #endif // TF_Bool // Macro used to calculate struct size for maintaining ABI stability across // different struct implementations. #ifndef TF_OFFSET_OF_END #define TF_OFFSET_OF_END(TYPE, MEMBER) \ (offsetof(TYPE, MEMBER) + sizeof(((TYPE *)0)->MEMBER)) #endif // TF_OFFSET_OF_END
C - Registered: Tue Apr 30 12:39:09 GMT 2024 - Last Modified: Sat May 13 04:44:45 GMT 2023 - 1.6K bytes - Viewed (1) -
tensorflow/c/c_api.h
int64_t list_size; // Type of elements of the list if is_list != 0. // Type of the single value stored in the attribute if is_list == 0. TF_AttrType type; // Total size the attribute value. // The units of total_size depend on is_list and type. // (1) If type == TF_ATTR_STRING and is_list == 0 // then total_size is the byte size of the string // valued attribute.
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/experimental/filesystem/plugins/gcs/gcs_filesystem.h
uint64_t block_size; // Reads smaller than block_size will trigger a read // of block_size. std::unique_ptr<ExpiringLRUCache<GcsFileStat>> stat_cache; GCSFile(google::cloud::storage::Client&& gcs_client); // This constructor is used for testing purpose only. GCSFile(google::cloud::storage::Client&& gcs_client, bool compose, uint64_t block_size, size_t max_bytes, uint64_t max_staleness,
C - Registered: Tue Apr 30 12:39:09 GMT 2024 - Last Modified: Mon Aug 31 04:37:41 GMT 2020 - 5.2K bytes - Viewed (0) -
tensorflow/c/eager/parallel_device/parallel_device_testlib.h
// Helper to un-pack `num_replicas` TFE_TensorHandles from one parallel handle. template <std::size_t num_replicas> void ExtractPerDeviceValues( TFE_Context* context, TFE_TensorHandle* input, std::array<TensorHandlePtr, num_replicas>* components, TF_Status* status); // Helper to pack `num_replicas` TFE_TensorHandles into one parallel handle. template <std::size_t num_replicas> TensorHandlePtr CreatePerDeviceValues( TFE_Context* context,
C - Registered: Tue Apr 30 12:39:09 GMT 2024 - Last Modified: Tue Feb 09 01:12:35 GMT 2021 - 6.9K bytes - Viewed (0) -
tensorflow/c/env.h
typedef struct TF_Thread TF_Thread; typedef struct TF_ThreadOptions { // Thread stack size to use (in bytes), zero implies that the system default // will be used. size_t stack_size; // Guard area size to use near thread stacks to use (in bytes), zero implies // that the system default will be used. size_t guard_size; // The NUMA node to use, -1 implies that there should be no NUMA affinity for // this thread.
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) -
tensorflow/c/experimental/filesystem/plugins/posix/copy_file.h
#include <sys/stat.h> namespace tf_posix_filesystem { // Transfers up to `size` bytes from `dst_fd` to `src_fd`. // // This method uses `sendfile` if available (i.e., linux 2.6.33 or later) or an // intermediate buffer if not. // // Returns number of bytes transferred or -1 on failure. int CopyFileContents(int dst_fd, int src_fd, off_t size); } // namespace tf_posix_filesystem
C - Registered: Tue Apr 23 12:39:09 GMT 2024 - Last Modified: Fri Nov 22 21:23:55 GMT 2019 - 1.2K bytes - Viewed (0) -
tensorflow/c/eager/c_api_test_util.h
// Return a shape op fetching the shape of `a`. TFE_Op* ShapeOp(TFE_Context* ctx, TFE_TensorHandle* a); // Return an allreduce op adding up input tensor `in` from `group_size` workers. TFE_Op* AllReduceOp(TFE_Context* ctx, TFE_TensorHandle* in, int group_size); // Return a SendOp op `op_name` with send input tensor `in` and attributes // `send_device`, `recv_device`, and `send_device_incarnation` set.
C - Registered: Tue Apr 30 12:39:09 GMT 2024 - Last Modified: Mon Jul 17 23:43:59 GMT 2023 - 7.7K bytes - Viewed (0)