- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for TF_StringView (0.27 sec)
-
tensorflow/c/kernels_test.cc
TF_OpKernelConstruction_GetAttrType(ctx, "SomeDataTypeAttr", &type, status); EXPECT_EQ(TF_OK, TF_GetCode(status)); EXPECT_EQ(TF_FLOAT, type); TF_DeleteStatus(status); // Exercise kernel NodeDef name read TF_StringView name_string_view = TF_OpKernelConstruction_GetName(ctx); std::string node_name = "SomeNodeName"; std::string candidate_node_name = std::string(name_string_view.data, name_string_view.len);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Sep 06 19:12:29 UTC 2023 - 50.4K bytes - Viewed (0) -
tensorflow/c/c_api.h
// Used to return strings across the C API. The caller does not take ownership // of the underlying data pointer and is not responsible for freeing it. typedef struct TF_StringView { const char* data; size_t len; } TF_StringView; // -------------------------------------------------------------------------- // TF_SessionOptions holds options that can be passed during session creation.
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Oct 26 21:08:15 UTC 2023 - 82.3K bytes - Viewed (0)