- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 14 for could (0.39 sec)
-
tensorflow/c/c_api.cc
return nullptr; #else tensorflow::ServerDef server_def; if (!server_def.ParseFromArray(proto, static_cast<int>(proto_len))) { status->status = InvalidArgument( "Could not parse provided bytes into a ServerDef protocol buffer"); return nullptr; } std::unique_ptr<tensorflow::ServerInterface> out_server; status->status = tensorflow::NewServer(server_def, &out_server);
C++ - Registered: Tue Apr 30 12:39:09 GMT 2024 - Last Modified: Mon Apr 15 03:35:10 GMT 2024 - 102.3K bytes - Viewed (0) -
tensorflow/c/experimental/filesystem/plugins/posix/posix_filesystem_helper.cc
int dst_fd = open(dst, O_WRONLY | O_CREAT | O_TRUNC, open_mode); if (dst_fd < 0) { close(src_fd); return -1; } // Both files have been opened, do the transfer. // Since errno would be overridden by `close` below, save it here. int error_code = 0; if (CopyFileContents(dst_fd, src_fd, size) < 0) error_code = errno; close(src_fd); close(dst_fd); if (error_code != 0) {
C++ - Registered: Tue Apr 23 12:39:09 GMT 2024 - Last Modified: Thu Jan 16 05:36:52 GMT 2020 - 2.1K bytes - Viewed (1) -
tensorflow/c/experimental/filesystem/plugins/posix/posix_filesystem_static.cc
TF_FilesystemPluginInfo info; TF_InitPlugin(&info); Status status = filesystem_registration::RegisterFilesystemPluginImpl(&info); if (!status.ok()) { VLOG(0) << "Static POSIX filesystem could not be registered: " << status; return false; } return true; } // Perform the actual registration static bool unused = StaticallyRegisterLocalFilesystems();
C++ - Registered: Tue Apr 23 12:39:09 GMT 2024 - Last Modified: Sun Mar 24 20:08:23 GMT 2024 - 1.5K bytes - Viewed (0) -
tensorflow/c/experimental/gradients/array_grad_test.cc
TF_RETURN_IF_ERROR( ops::IdentityN(ctx, inputs, absl::MakeSpan(temp_outputs), "IdentityN")); // Although, `ops::IdentityN` returns 2 tensors, the first tensor isn't needed // for computing gradient so we could safely drop it. outputs[0] = temp_outputs[1]; temp_outputs[0]->Unref(); return absl::OkStatus(); } class CppGradients : public ::testing::TestWithParam<std::tuple<const char*, bool, bool>> { protected:
C++ - Registered: Tue Mar 26 12:39:09 GMT 2024 - Last Modified: Wed Feb 28 13:53:47 GMT 2024 - 5K bytes - Viewed (0) -
tensorflow/c/experimental/filesystem/plugins/posix/posix_filesystem.cc
const char* filename; int fd; } PosixFile; static void Cleanup(TF_RandomAccessFile* file) { auto posix_file = static_cast<PosixFile*>(file->plugin_file); close(posix_file->fd); // This would be safe to free using `free` directly as it is only opaque. // However, it is better to be consistent everywhere. plugin_memory_free(const_cast<char*>(posix_file->filename)); delete posix_file; }
C++ - Registered: Tue Apr 23 12:39:09 GMT 2024 - Last Modified: Sun Mar 24 20:08:23 GMT 2024 - 15.8K bytes - Viewed (0) -
tensorflow/c/experimental/filesystem/plugins/gcs/gcs_filesystem_test.cc
ASSERT_EQ(TF_GetCode(status_), TF_INVALID_ARGUMENT); } TEST_F(GCSFilesystemTest, RandomAccessFile) { tf_gcs_filesystem::Init(filesystem_, status_); ASSERT_TF_OK(status_) << "Could not initialize filesystem. " << TF_Message(status_); std::string filepath = GetURIForPath("a_file"); TF_RandomAccessFile* file = new TF_RandomAccessFile;
C++ - Registered: Tue Apr 23 12:39:09 GMT 2024 - Last Modified: Mon Aug 31 12:04:23 GMT 2020 - 24.9K bytes - Viewed (0) -
tensorflow/c/experimental/gradients/nn_grad_test.cc
// `gradient_checker` only works with model that returns only 1 tensor. // Although, `ops::SparseSoftmaxCrossEntropyWithLogits` returns 2 tensors, the // second tensor isn't needed for computing gradient so we could safely drop // it. outputs[0] = loss; backprop->Unref(); return absl::OkStatus(); } Status BiasAddModel(AbstractContext* ctx, absl::Span<AbstractTensorHandle* const> inputs,
C++ - Registered: Tue Mar 26 12:39:09 GMT 2024 - Last Modified: Wed Feb 28 13:53:47 GMT 2024 - 8.3K bytes - Viewed (0) -
tensorflow/c/experimental/filesystem/plugins/gcs/gcs_filesystem.cc
// case, we will set read to `0` and continue. read = 0; } else if (!absl::SimpleAtoi(content_length->second, &read)) { TF_SetStatus(status, TF_UNKNOWN, "Could not get content-length header"); return -1; } // `TF_OUT_OF_RANGE` isn't considered as an error. So we clear it here. TF_SetStatus(status, TF_OK, "");
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/experimental/filesystem/plugins/gcs/ram_file_block_cache.cc
if (now - it->second->timestamp <= max_staleness_) { // The oldest block is not yet expired. Come back later. break; } // We need to make a copy of the filename here, since it could otherwise // be used within RemoveFile_Locked after `it` is deleted. RemoveFile_Locked(std::string(it->first.first)); } } } void RamFileBlockCache::Flush() { absl::MutexLock lock(&mu_);
C++ - Registered: Tue Apr 23 12:39:09 GMT 2024 - Last Modified: Thu Jul 16 01:39:09 GMT 2020 - 11.1K bytes - Viewed (0) -
tensorflow/c/experimental/filesystem/modular_filesystem_registration.cc
#include "tensorflow/core/platform/env.h" #include "tensorflow/core/platform/errors.h" namespace tensorflow { // Checks that all schemes provided by a plugin are valid. // TODO(b/139060984): More validation could be done here, based on supported // charset, maximum length, etc. Punting it for later. static Status ValidateScheme(const char* scheme) { if (scheme == nullptr) return errors::InvalidArgument(
C++ - Registered: Tue Apr 30 12:39:09 GMT 2024 - Last Modified: Tue Mar 07 22:08:43 GMT 2023 - 12.8K bytes - Viewed (0)