- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 12 for cleanup (0.18 sec)
-
tensorflow/c/experimental/filesystem/plugins/posix/posix_filesystem.cc
ops->random_access_file_ops->cleanup = tf_random_access_file::Cleanup; ops->random_access_file_ops->read = tf_random_access_file::Read; ops->writable_file_ops = static_cast<TF_WritableFileOps*>( plugin_memory_allocate(TF_WRITABLE_FILE_OPS_SIZE)); ops->writable_file_ops->cleanup = tf_writable_file::Cleanup; ops->writable_file_ops->append = tf_writable_file::Append;
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
// initialize filesystem in each testcase. } void TearDown() override { TF_DeleteStatus(status_); if (filesystem_->plugin_filesystem != nullptr) tf_gcs_filesystem::Cleanup(filesystem_); delete filesystem_; } std::string GetURIForPath(absl::string_view path) { const std::string translated_name = tensorflow::io::JoinPath(root_dir_, path); return translated_name;
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/filesystem/plugins/gcs/ram_file_block_cache.cc
#include <cstring> #include <memory> #include <sstream> #include <utility> #include "absl/synchronization/mutex.h" #include "tensorflow/c/experimental/filesystem/plugins/gcs/cleanup.h" namespace tf_gcs_filesystem { bool RamFileBlockCache::BlockNotStale(const std::shared_ptr<Block>& block) { absl::MutexLock l(&block->mu); if (block->state != FetchState::FINISHED) {
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/eager/custom_device_testutil.cc
#include "tensorflow/c/eager/c_api.h" #include "tensorflow/c/eager/c_api_experimental.h" #include "tensorflow/c/eager/c_api_test_util.h" #include "tensorflow/c/tf_status.h" #include "tensorflow/core/lib/gtl/cleanup.h" #include "tensorflow/core/platform/test.h" namespace { struct LoggingDevice { tensorflow::string device_name; tensorflow::string underlying_device;
C++ - Registered: Tue Apr 30 12:39:09 GMT 2024 - Last Modified: Wed Mar 03 20:47:31 GMT 2021 - 8.3K bytes - Viewed (0) -
tensorflow/c/eager/parallel_device/parallel_device_lib.cc
#include "tensorflow/c/eager/tfe_tensorhandle_internal.h" #include "tensorflow/c/tf_status.h" #include "tensorflow/c/tf_status_internal.h" #include "tensorflow/core/lib/gtl/cleanup.h" #include "tensorflow/core/platform/env.h" #include "tensorflow/core/platform/mutex.h" #include "tensorflow/core/util/device_name_utils.h" namespace tensorflow { namespace parallel_device { namespace {
C++ - Registered: Tue Apr 30 12:39:09 GMT 2024 - Last Modified: Fri Feb 09 07:47:20 GMT 2024 - 25.4K bytes - Viewed (1) -
tensorflow/c/eager/custom_device_test.cc
#include "tensorflow/c/eager/c_api_experimental.h" #include "tensorflow/c/eager/c_api_test_util.h" #include "tensorflow/c/eager/custom_device_testutil.h" #include "tensorflow/c/tf_status.h" #include "tensorflow/core/lib/gtl/cleanup.h" #include "tensorflow/core/platform/test.h" TEST(CUSTOM_DEVICE, RegisterSimpleDevice) { std::unique_ptr<TF_Status, decltype(&TF_DeleteStatus)> status( TF_NewStatus(), TF_DeleteStatus);
C++ - Registered: Tue Apr 30 12:39:09 GMT 2024 - Last Modified: Thu Aug 27 23:39:24 GMT 2020 - 18.4K bytes - Viewed (0) -
tensorflow/c/eager/parallel_device/parallel_device.cc
} result.emplace(std::move(result_content)); return result; } // Used as an argument to TFE_NewCustomDeviceTensorHandle, indicating how // ParallelTensors wrapped in TFE_TensorHandles should be cleaned up once their // reference counts drop to zero. void ParallelTensorDeallocator(void* data) { delete reinterpret_cast<ParallelTensor*>(data); }
C++ - Registered: Tue Apr 30 12:39:09 GMT 2024 - Last Modified: Wed Mar 29 22:05:31 GMT 2023 - 18.3K bytes - Viewed (0) -
tensorflow/c/eager/c_api_unified_experimental_test.cc
// Execute. TF_ExecuteOperation(op, 2, inputs, o, status.get()); ASSERT_EQ(TF_OK, TF_GetCode(status.get())) << TF_Message(status.get()); // Clean up operation and inputs. TF_DeleteAbstractOp(op); TF_DeleteAbstractTensor(at); // Verify the results. ASSERT_EQ(1, TF_OutputListNumOutputs(o)); TF_AbstractTensor* result = TF_OutputListGet(o, 0);
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/c_api_test.cc
ASSERT_EQ(TF_OK, TF_GetCode(s)) << TF_Message(s); EXPECT_EQ(0, num_dims); TF_GraphGetTensorShape(graph, three_out_0, returned_dims, num_dims, s); ASSERT_EQ(TF_OK, TF_GetCode(s)) << TF_Message(s); // Clean up TF_DeleteGraph(graph); TF_DeleteStatus(s); } TEST(CAPI, Graph) { TF_Status* s = TF_NewStatus(); TF_Graph* graph = TF_NewGraph(); // Make a placeholder operation.
C++ - Registered: Tue Apr 30 12:39:09 GMT 2024 - Last Modified: Mon Apr 15 03:35:10 GMT 2024 - 96.9K bytes - Viewed (3) -
tensorflow/c/experimental/filesystem/modular_filesystem_registration.cc
if (ops->init == nullptr) return errors::FailedPrecondition( "Trying to register filesystem without `init` operation"); if (ops->cleanup == nullptr) return errors::FailedPrecondition( "Trying to register filesystem without `cleanup` operation"); return OkStatus(); } // Validates the random access file operations supplied by the plugin.
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)