- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 31 for if (0.44 sec)
-
tensorflow/c/env.h
// it. This is accomplished by traversing the directory tree rooted at dirname // and deleting entries as they are encountered. // // If dirname itself is not readable or does not exist, *undeleted_dir_count is // set to 1, *undeleted_file_count is set to 0 and an appropriate status (e.g. // TF_NOT_FOUND) is returned. // // If dirname and all its descendants were successfully deleted, TF_OK is // returned and both error counters are set to zero. //
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/parallel_device/parallel_device_testlib.h
TFE_NewOp(context, "TPUReplicatedInput", status), TFE_DeleteOp); if (TF_GetCode(status) != TF_OK) return nullptr; TFE_OpSetAttrInt(op.get(), "N", num_replicas); for (int i = 0; i < num_replicas; ++i) { TFE_OpAddInput(op.get(), components[i], status); if (TF_GetCode(status) != TF_OK) return nullptr; } TFE_OpSetDevice(op.get(), device, status); if (TF_GetCode(status) != TF_OK) return nullptr;
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/eager/abstract_context.h
virtual Status RemoveFunction(const string& func) = 0; private: const AbstractContextKind kind_; }; namespace internal { struct AbstractContextDeleter { void operator()(AbstractContext* p) const { if (p != nullptr) { p->Release(); } } }; } // namespace internal using AbstractContextPtr = std::unique_ptr<AbstractContext, internal::AbstractContextDeleter>; } // namespace tensorflow
C - Registered: Tue Apr 30 12:39:09 GMT 2024 - Last Modified: Sun Oct 24 11:16:58 GMT 2021 - 3K bytes - Viewed (0) -
tensorflow/c/eager/parallel_device/parallel_device.h
// Allocate a parallel device named `device_name` which forwards operations to // `underlying_devices`, maintaining "parallel tensors" with components placed // on each underlying device. // // For example if `device_name` is // "/job:localhost/replica:0/task:0/device:CUSTOM:0" // and `underlying_devices` is // {"/job:localhost/replica:0/task:0/device:GPU:0", // "/job:localhost/replica:0/task:0/device:GPU:1"}
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) -
tensorflow/c/eager/c_api_test_util.h
TFE_TensorHandle* TestAxisTensorHandle(TFE_Context* ctx); // Return an op taking minimum of `input` long `axis` dimension. TFE_Op* MinOp(TFE_Context* ctx, TFE_TensorHandle* input, TFE_TensorHandle* axis); // If there is a device of type `device_type`, returns true // and sets 'device_name' accordingly. // `device_type` must be either "GPU" or "TPU". bool GetDeviceName(TFE_Context* ctx, tensorflow::string* device_name,
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) -
tensorflow/c/experimental/filesystem/plugins/gcs/cleanup.h
// // Example: // void func() { // FILE* fp = fopen("data.txt", "r"); // if (fp == nullptr) return; // auto fp_cleaner = gtl::MakeCleanup([fp] { fclose(fp); }); // // No matter what, fclose(fp) will happen. // DataObject d; // while (ReadDataObject(fp, &d)) { // if (d.IsBad()) { // LOG(ERROR) << "Bad Data"; // return; // } // PushGoodData(d);
C - Registered: Tue Apr 30 12:39:09 GMT 2024 - Last Modified: Thu Jul 09 11:16:00 GMT 2020 - 3.4K bytes - Viewed (0) -
tensorflow/c/c_test.c
TF_Status* status = TF_NewStatus(); TF_NewWritableFile(full_path, &h, status); if (TF_GetCode(status) != TF_OK) { fprintf(stderr, "TF_NewWritableFile failed: %s\n", TF_Message(status)); return 1; } fprintf(stderr, "wrote %s\n", full_path); free(full_path); TF_CloseWritableFile(h, status); if (TF_GetCode(status) != TF_OK) { fprintf(stderr, "TF_CloseWritableFile failed: %s\n", TF_Message(status));
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_internal.h
#define TF_VALIDATE_STRUCT_SIZE(STRUCT_NAME, STRUCT_OBJ, SIZE_VALUE_NAME) \ do { \ if (STRUCT_OBJ.struct_size == 0) { \ return tensorflow::Status(absl::StatusCode::kFailedPrecondition, \ "Expected initialized `" #STRUCT_NAME \
C - Registered: Tue Apr 30 12:39:09 GMT 2024 - Last Modified: Mon Mar 13 17:40:56 GMT 2023 - 2.5K bytes - Viewed (0) -
tensorflow/c/eager/abstract_operation.h
// The value returned may be different from the one set by SetDeviceName, but // it will be compatible with it: the name will be updated by device placement // logic to refer to the specific device chosen. // // Example: If one calls `op->SetDeviceName("/device:GPU")`, the value // returned by DeviceName should be "/device:GPU:*" until a particular GPU is // chosen for the operation by the device placement logic in the
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)