- Sort Score
- Result 10 results
- Languages All
Results 11 - 18 of 18 for Content (0.2 sec)
-
tensorflow/c/experimental/filesystem/plugins/gcs/gcs_filesystem.cc
(TF_GetCode(status) != TF_OUT_OF_RANGE)) { return -1; } int64_t read; auto content_length = stream.headers().find("content-length"); if (content_length == stream.headers().end()) { // When we read a file with offset that is bigger than the actual file size. // GCS will return an empty header (e.g no `content-length` header). In this // case, we will set read to `0` and continue. read = 0;
C++ - Registered: Tue Apr 30 12:39:09 GMT 2024 - Last Modified: Wed Aug 23 06:55:53 GMT 2023 - 46.9K bytes - Viewed (0) -
tensorflow/c/eager/c_api.cc
/*jit_compile_rewrite=*/opts->jit_compile_rewrite); #if !defined(IS_MOBILE_PLATFORM) eager_context->SetDistributedManager( std::make_unique<tensorflow::EagerContextDistributedManager>( eager_context)); #endif // !IS_MOBILE_PLATFORM return tensorflow::wrap(eager_context); } void TFE_DeleteContext(TFE_Context* ctx) { if (ctx == nullptr) { return; }
C++ - Registered: Tue Apr 30 12:39:09 GMT 2024 - Last Modified: Tue Mar 12 20:00:09 GMT 2024 - 43.9K bytes - Viewed (2) -
tensorflow/c/eager/c_api_test_util.cc
#include "tensorflow/core/protobuf/rewriter_config.pb.h" #include "tensorflow/core/util/port.h" using tensorflow::string; using tensorflow::tstring; TFE_TensorHandle* TestScalarTensorHandle(TFE_Context* ctx, float value) { float data[] = {value}; TF_Status* status = TF_NewStatus(); TF_Tensor* t = TFE_AllocateHostTensor(ctx, TF_FLOAT, nullptr, 0, status); memcpy(TF_TensorData(t), &data[0], TF_TensorByteSize(t));
C++ - Registered: Tue Apr 30 12:39:09 GMT 2024 - Last Modified: Wed Feb 21 22:37:46 GMT 2024 - 23.5K bytes - Viewed (2) -
tensorflow/c/c_api_experimental_test.cc
protected: ShapeInferenceTest() : status_(TF_NewStatus()), tfe_context_options_(TFE_NewContextOptions()) { tfe_context_ = TFE_NewContext(tfe_context_options_, status_); CHECK_EQ(TF_OK, TF_GetCode(status_)) << TF_Message(status_); } ~ShapeInferenceTest() override { TFE_DeleteContextOptions(tfe_context_options_); TFE_DeleteContext(tfe_context_); TF_DeleteStatus(status_); }
C++ - Registered: Tue Apr 30 12:39:09 GMT 2024 - Last Modified: Tue Jan 17 22:27:52 GMT 2023 - 13.1K bytes - Viewed (1) -
tensorflow/c/eager/c_api_unified_experimental_graph.cc
#include <memory> #include <utility> #include <vector> #include "absl/strings/str_cat.h" #include "tensorflow/c/c_api.h" #include "tensorflow/c/eager/abstract_context.h" #include "tensorflow/c/eager/c_api_internal.h" #include "tensorflow/c/eager/c_api_unified_experimental.h" #include "tensorflow/c/eager/c_api_unified_experimental_internal.h" #include "tensorflow/c/eager/graph_function.h"
C++ - Registered: Tue Apr 30 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_experimental_test.cc
TFE_CancelCallback callback2; bool callback2_invoked = false; callback2.context = &callback2_invoked; callback2.callback = [](void* context) { *reinterpret_cast<bool*>(context) = true; }; TFE_CancellationToken token2 = TFE_CancellationManagerGetToken(c_mgr); EXPECT_TRUE(TFE_CancellationManagerRegisterCallback(c_mgr, token2, &callback2,
C++ - Registered: Tue Apr 30 12:39:09 GMT 2024 - Last Modified: Thu Aug 03 03:14:26 GMT 2023 - 31.5K bytes - Viewed (1) -
tensorflow/c/eager/c_api_unified_experimental_test.cc
* my_add2 = b + b * return my_add1, my_add2 * * Now we will execute this function with an eager context: * * output1, output2 = two_adds(2.0, 3.0) * * and check that we got 5.0 and 6.0 as results. */ // Build eager context. TFE_ContextOptions* opts = TFE_NewContextOptions(); TFE_ContextOptionsSetTfrt(opts, std::get<1>(GetParam()));
C++ - Registered: Tue Apr 30 12:39:09 GMT 2024 - Last Modified: Fri May 19 21:44:52 GMT 2023 - 39.1K bytes - Viewed (0) -
tensorflow/c/experimental/filesystem/modular_filesystem.cc
Env* env = Env::Default(); void* dso_handle; TF_RETURN_IF_ERROR(env->LoadDynamicLibrary(dso_path.c_str(), &dso_handle)); // Step 2: Load symbol for `TF_InitPlugin` void* dso_symbol; TF_RETURN_WITH_CONTEXT_IF_ERROR( env->GetSymbolFromLibrary(dso_handle, "TF_InitPlugin", &dso_symbol), "Failed to load TF_InitPlugin symbol for DSO: ", dso_path); // Step 3: Call `TF_InitPlugin` TF_FilesystemPluginInfo info;
C++ - Registered: Tue Apr 30 12:39:09 GMT 2024 - Last Modified: Wed Sep 06 19:12:29 GMT 2023 - 23.1K bytes - Viewed (0)