- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for TF_GetLocalTempDirectories (0.42 sec)
-
tensorflow/c/c_test.c
} // Exercises tensorflow's C API. int main(int argc, char** argv) { TF_InitMain(argv[0], &argc, &argv); struct TF_StringStream* s = TF_GetLocalTempDirectories(); const char* path; if (!TF_StringStreamNext(s, &path)) { fprintf(stderr, "TF_GetLocalTempDirectories returned no results\n"); return 1; } char file_name[100]; time_t t = time(NULL);
C - Registered: Tue Apr 23 12:39:09 GMT 2024 - Last Modified: Wed Jan 15 17:51:26 GMT 2020 - 2.8K bytes - Viewed (0) -
tensorflow/c/env_test.cc
#include "tensorflow/core/platform/test.h" #include "tensorflow/core/platform/types.h" #define ASSERT_TF_OK(x) ASSERT_EQ(TF_OK, TF_GetCode(x)) TEST(TestEnv, TestDirHandling) { TF_StringStream* tempdirs = TF_GetLocalTempDirectories(); const char* tempdir; bool found = false; while (TF_StringStreamNext(tempdirs, &tempdir)) { found = true; TF_Status* s = TF_NewStatus(); ::tensorflow::string dirpath =
C++ - Registered: Tue Apr 23 12:39:09 GMT 2024 - Last Modified: Mon Dec 10 20:52:48 GMT 2018 - 4.2K bytes - Viewed (0) -
tensorflow/c/env.cc
status, ::tensorflow::Env::Default()->GetChildren(dirname, children)); auto* list = new TF_StringStream; list->list = children; list->position = 0; return list; } TF_StringStream* TF_GetLocalTempDirectories() { auto* tmpdirs = new std::vector<::tensorflow::string>; ::tensorflow::Env::Default()->GetLocalTempDirectories(tmpdirs); auto* list = new TF_StringStream; list->list = tmpdirs;
C++ - Registered: Tue Apr 23 12:39:09 GMT 2024 - Last Modified: Wed Aug 11 01:20:50 GMT 2021 - 7K bytes - Viewed (0) -
tensorflow/c/env.h
// temporary storage. You can iterate through the list with TF_StringStreamNext. // The caller is responsible for freeing the list (see TF_StringStreamDone). TF_CAPI_EXPORT extern TF_StringStream* TF_GetLocalTempDirectories(void); // Creates a temporary file name with an extension. // The caller is responsible for freeing the returned pointer. TF_CAPI_EXPORT extern char* TF_GetTempFileName(const char* extension);
C - Registered: Tue Apr 23 12:39:09 GMT 2024 - Last Modified: Sat Jan 09 02:53:27 GMT 2021 - 9.6K bytes - Viewed (0)