- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 38 for TF_Buffer (0.1 sec)
-
tensorflow/c/tf_buffer.cc
} delete buffer; } TF_Buffer TF_GetBuffer(TF_Buffer* buffer) { return *buffer; } } // end extern "C" namespace tensorflow { Status MessageToBuffer(const tensorflow::protobuf::MessageLite& in, TF_Buffer* out) { if (out->data != nullptr) { return errors::InvalidArgument("Passing non-empty TF_Buffer is invalid."); } const size_t proto_size = in.ByteSizeLong();
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Sun Apr 14 21:57:32 UTC 2024 - 3K bytes - Viewed (0) -
tensorflow/c/tf_buffer.h
// Useful for passing *out* a protobuf. TF_CAPI_EXPORT extern TF_Buffer* TF_NewBuffer(void); TF_CAPI_EXPORT extern void TF_DeleteBuffer(TF_Buffer*); TF_CAPI_EXPORT extern TF_Buffer TF_GetBuffer(TF_Buffer* buffer); #ifdef __cplusplus } /* end extern "C" */ #endif
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 27 21:07:00 UTC 2023 - 2K bytes - Viewed (0) -
tensorflow/c/tf_buffer_internal.h
#include <memory> #include "tensorflow/c/tf_buffer.h" #include "tensorflow/core/platform/protobuf.h" // IWYU pragma: keep #include "tensorflow/core/platform/status.h" namespace tensorflow { Status MessageToBuffer(const tensorflow::protobuf::MessageLite& in, TF_Buffer* out); Status BufferToMessage(const TF_Buffer* in, tensorflow::protobuf::MessageLite* out);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri Aug 25 19:02:47 UTC 2023 - 1.4K bytes - Viewed (0) -
tensorflow/c/safe_ptr.h
Safe_TF_StatusPtr make_safe(TF_Status* status); // Safe containers for an owned TF_Buffer. On destruction, the handle // will be deleted by TF_DeleteBuffer. using Safe_TF_BufferPtr = std::unique_ptr<TF_Buffer, detail::TFBufferDeleter>; Safe_TF_BufferPtr make_safe(TF_Buffer* buffer); } // namespace tensorflow
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Mar 22 19:17:09 UTC 2023 - 2.3K bytes - Viewed (0) -
tensorflow/c/experimental/next_pluggable_device/c_api.h
// 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( const char* key, int64_t key_size, TF_CoordinationServiceAgent* agent,
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Dec 20 20:01:06 UTC 2023 - 7.2K bytes - Viewed (0) -
tensorflow/c/BUILD
) cc_library( name = "tf_buffer_hdrs", hdrs = [ "tf_buffer.h", ], visibility = ["//visibility:public"], deps = [ ":c_api_macros_hdrs", ], ) cc_library( name = "tf_buffer", srcs = [ "tf_buffer.cc", ], hdrs = [ "tf_buffer.h", ], copts = tf_copts(), visibility = ["//visibility:public"],
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Mar 27 18:00:18 UTC 2024 - 30.3K bytes - Viewed (0) -
tensorflow/c/experimental/grappler/grappler_test.cc
#include "tensorflow/core/platform/test.h" namespace tensorflow { namespace grappler { namespace { void optimize_func(void* optimizer, const TF_Buffer* graph_buf, const TF_GrapplerItem* item, TF_Buffer* optimized_graph_buf, TF_Status* tf_status) {} void PopulateDefaultParam(TP_OptimizerRegistrationParams* params) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 13 22:30:58 UTC 2023 - 11.6K bytes - Viewed (0) -
tensorflow/c/experimental/grappler/grappler.cc
#include <unordered_set> #include <vector> #include "absl/status/status.h" #include "tensorflow/c/c_api_macros.h" #include "tensorflow/c/experimental/grappler/grappler_internal.h" #include "tensorflow/c/tf_buffer.h" #include "tensorflow/c/tf_buffer_internal.h" #include "tensorflow/c/tf_status.h" #include "tensorflow/c/tf_status_helper.h" #include "tensorflow/core/framework/function.h" #include "tensorflow/core/framework/op.h"
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Sep 06 19:12:29 UTC 2023 - 15K bytes - Viewed (0) -
tensorflow/c/experimental/grappler/grappler_internal.h
void operator()(TF_Status* s) const { TF_DeleteStatus(s); } }; using OwnedTFStatus = std::unique_ptr<TF_Status, TFStatusDeleter>; struct TFBufferDeleter { void operator()(TF_Buffer* buf) const { TF_DeleteBuffer(buf); } }; using OwnedTFBuffer = std::unique_ptr<TF_Buffer, TFBufferDeleter>; class CGraphOptimizer : public CustomGraphOptimizer { public: explicit CGraphOptimizer(TP_Optimizer optimizer, const char* device_type)
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Jun 08 08:58:23 UTC 2022 - 3.5K bytes - Viewed (0) -
tensorflow/c/experimental/grappler/grappler.h
// by create_func. The second param is input graph. The third param is // GrapplerItem. The fourth param is output graph. void (*optimize_func)(void*, const TF_Buffer*, const TF_GrapplerItem*, TF_Buffer*, TF_Status*); // [Optional] // Destroy function for optimizer. If Create function is provided, destroy // function is must. void (*destroy_func)(void*); } TP_Optimizer;
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Aug 03 18:08:43 UTC 2022 - 12.5K bytes - Viewed (0)