- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 54 for reinterpret (0.19 sec)
-
tensorflow/c/conversion_macros.h
return reinterpret_cast<cpp_impl *>(w); \ } \ \ inline const cpp_impl *unwrap(const wrapper *w) { \ return reinterpret_cast<const cpp_impl *>(w); \
C - Registered: Tue Mar 26 12:39:09 GMT 2024 - Last Modified: Mon May 04 16:24:03 GMT 2020 - 1.7K bytes - Viewed (0) -
tensorflow/c/experimental/grappler/grappler.cc
TF_GraphProperties* TF_NewGraphProperties(const TF_GrapplerItem* item) { return reinterpret_cast<TF_GraphProperties*>( new tensorflow::grappler::GraphProperties( *reinterpret_cast<const tensorflow::grappler::GrapplerItem*>(item))); } void TF_DeleteGraphProperties(TF_GraphProperties* graph_properties) { if (graph_properties == nullptr) return; delete reinterpret_cast<tensorflow::grappler::GraphProperties*>( graph_properties);
C++ - Registered: Tue Feb 27 12:39:08 GMT 2024 - Last Modified: Wed Sep 06 19:12:29 GMT 2023 - 15K bytes - Viewed (1) -
tensorflow/c/env.cc
::tensorflow::Set_TF_Status_from_Status(status, s); if (s.ok()) { *handle = reinterpret_cast<TF_WritableFileHandle*>(f.release()); } } void TF_CloseWritableFile(TF_WritableFileHandle* handle, TF_Status* status) { auto* cc_file = reinterpret_cast<::tensorflow::WritableFile*>(handle); TF_SetStatus(status, TF_OK, ""); ::tensorflow::Set_TF_Status_from_Status(status, cc_file->Close());
C++ - Registered: Tue Mar 26 12:39:09 GMT 2024 - Last Modified: Wed Aug 11 01:20:50 GMT 2021 - 7K bytes - Viewed (0) -
tensorflow/c/experimental/next_pluggable_device/c_api.cc
TF_OpKernelContext* ctx) { auto* cc_ctx = reinterpret_cast<tensorflow::OpKernelContext*>(ctx); return reinterpret_cast<TF_CoordinationServiceAgent*>( cc_ctx->coordination_service_agent()); } bool TF_CoordinationServiceIsInitialized(TF_CoordinationServiceAgent* agent) { if (agent == nullptr) return false; auto* cc_agent = reinterpret_cast<tsl::CoordinationServiceAgent*>(agent);
C++ - Registered: Tue Feb 27 12:39:08 GMT 2024 - Last Modified: Tue Jan 09 00:52:04 GMT 2024 - 13.9K bytes - Viewed (1) -
tensorflow/c/eager/custom_device_testutil.cc
return TFE_TensorHandleDim(reinterpret_cast<LoggedTensor*>(data)->tensor, dim_index, status); } int LoggedTensorNumDims(void* data, TF_Status* status) { return TFE_TensorHandleNumDims(reinterpret_cast<LoggedTensor*>(data)->tensor, status); } void LoggedTensorDeallocator(void* data) { delete reinterpret_cast<LoggedTensor*>(data); }
C++ - Registered: Tue Mar 26 12:39:09 GMT 2024 - Last Modified: Wed Mar 03 20:47:31 GMT 2021 - 8.3K bytes - Viewed (0) -
tensorflow/c/eager/c_api_unified_experimental_graph.cc
if (num_dims == kUnknownRank) { return absl::OkStatus(); } std::vector<int64_t> dims(num_dims, kUnknownDim); TF_GraphGetTensorShape(graph_, output_, reinterpret_cast<int64_t*>(dims.data()), num_dims, &status); TF_RETURN_IF_ERROR(StatusFromTF_Status(&status)); TF_RETURN_IF_ERROR(tensorflow::TensorShapeUtils::MakeShape(dims, shape));
C++ - Registered: Tue Mar 26 12:39:09 GMT 2024 - Last Modified: Tue Mar 12 20:00:09 GMT 2024 - 15.4K bytes - Viewed (1) -
tensorflow/c/eager/c_api_unified_experimental_eager.cc
TF_Status* s) { auto handle = dyn_cast<ImmediateExecutionTensorHandle>(unwrap(at)); if (!handle) { string msg = StrCat("Not an eager tensor handle.", reinterpret_cast<uintptr_t>(at)); TF_SetStatus(s, TF_INVALID_ARGUMENT, msg.c_str()); return nullptr; } return wrap(handle); } TFE_Context* TF_ExecutionContextGetTFEContext(TF_ExecutionContext* ctx,
C++ - Registered: Tue Mar 26 12:39:09 GMT 2024 - Last Modified: Thu Jun 25 04:40:46 GMT 2020 - 3.2K bytes - Viewed (0) -
tensorflow/c/eager/parallel_device/parallel_device.cc
void ParallelTensorDeallocator(void* data) { delete reinterpret_cast<ParallelTensor*>(data); } // Used as an argument to TFE_NewCustomDeviceTensorHandle, for computing the // number of dimensions of a parallel tensor. int ParallelTensorNumDims(void* data, TF_Status* status) { const std::vector<int64_t>* shape; Status s = reinterpret_cast<ParallelTensor*>(data)->Shape(&shape); if (!s.ok()) {
C++ - Registered: Tue Mar 26 12:39:09 GMT 2024 - Last Modified: Wed Mar 29 22:05:31 GMT 2023 - 18.3K bytes - Viewed (0) -
tensorflow/c/experimental/grappler/grappler_test.cc
TEST(TF_GrapplerItem, NodesToPreserve) { GrapplerItem item; item.fetch = std::vector<string>{"Conv", "BiasAdd"}; std::unordered_set<string> nodes_preserved = item.NodesToPreserve(); TF_GrapplerItem* c_item = reinterpret_cast<TF_GrapplerItem*>(&item); int list_total_size = 0; for (const string& s : nodes_preserved) { list_total_size += s.size(); } size_t storage_size = 0; int num_values = 0;
C++ - Registered: Tue Feb 27 12:39:08 GMT 2024 - Last Modified: Thu Apr 13 22:30:58 GMT 2023 - 11.6K bytes - Viewed (0) -
tensorflow/c/eager/c_api.cc
C++ - Registered: Tue Mar 26 12:39:09 GMT 2024 - Last Modified: Tue Mar 12 20:00:09 GMT 2024 - 43.9K bytes - Viewed (2)