- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 74 for uniqBy (0.16 sec)
-
tensorflow/c/experimental/filesystem/modular_filesystem_test.cc
// ensures that two consecutive runs are unlikely to clash. class ModularFileSystemTest : public ::testing::TestWithParam<std::string> { public: // Initializes `root_dir_` to a unique value made of `::testing::TempDir()`, a // static random value unique for all the tests in one invocation, and the // current test name. // // Since the test name contains `/` (due to parameters), this function // replaces `/` with `_`. //
C++ - Registered: Tue Apr 30 12:39:09 GMT 2024 - Last Modified: Fri May 27 20:25:58 GMT 2022 - 71K bytes - Viewed (0) -
tensorflow/c/checkpoint_reader.h
BuildV2VarMaps(); // Invariant: exactly one of "reader_" and "v2_reader_" is non-null. std::unique_ptr<TensorSliceReader> reader_; std::unique_ptr<BundleReader> v2_reader_; std::unique_ptr<TensorSliceReader::VarToShapeMap> var_to_shape_map_; std::unique_ptr<TensorSliceReader::VarToDataTypeMap> var_to_data_type_map_; CheckpointReader(const CheckpointReader&) = delete;
C - Registered: Tue Apr 30 12:39:09 GMT 2024 - Last Modified: Thu Oct 12 08:49:52 GMT 2023 - 3.1K bytes - Viewed (0) -
tensorflow/c/checkpoint_reader.cc
if (!status.ok()) out_tensor->reset(); } } if (!status.ok()) { tsl::Set_TF_Status_from_Status(out_status, status); } } std::pair<std::unique_ptr<TensorSliceReader::VarToShapeMap>, std::unique_ptr<TensorSliceReader::VarToDataTypeMap>> CheckpointReader::BuildV2VarMaps() { CHECK(v2_reader_ != nullptr); CHECK(v2_reader_->status().ok());
C++ - Registered: Tue Apr 30 12:39:09 GMT 2024 - Last Modified: Fri Aug 25 21:29:12 GMT 2023 - 5.5K bytes - Viewed (0) -
tensorflow/c/experimental/filesystem/modular_filesystem.cc
// register/use filesystems. namespace tensorflow { using UniquePtrTo_TF_Status = ::std::unique_ptr<TF_Status, decltype(&TF_DeleteStatus)>; Status ModularFileSystem::NewRandomAccessFile( const std::string& fname, TransactionToken* token, std::unique_ptr<RandomAccessFile>* result) { if (ops_->new_random_access_file == nullptr) return errors::Unimplemented(tensorflow::strings::StrCat(
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) -
tensorflow/c/experimental/grappler/grappler_internal.h
class Cluster; struct TFStatusDeleter { void operator()(TF_Status* s) const { TF_DeleteStatus(s); } }; using OwnedTFStatus = std::unique_ptr<TF_Status, TFStatusDeleter>; struct TFBufferDeleter { void operator()(TF_Buffer* buf) const { TF_DeleteBuffer(buf); } }; using OwnedTFBuffer = std::unique_ptr<TF_Buffer, TFBufferDeleter>; class CGraphOptimizer : public CustomGraphOptimizer { public:
C - Registered: Tue Feb 27 12:39:08 GMT 2024 - Last Modified: Wed Jun 08 08:58:23 GMT 2022 - 3.5K bytes - Viewed (1) -
tensorflow/c/eager/c_api_experimental_test.cc
server_def.set_job_name("worker"); server_def.set_task_index(0); std::unique_ptr<tensorflow::ServerInterface> w0; ASSERT_TRUE( factory->NewServer(server_def, ServerFactory::Options(), &w0).ok()); ASSERT_TRUE(w0->Start().ok()); server_def.set_task_index(1); std::unique_ptr<tensorflow::ServerInterface> w1; ASSERT_TRUE(
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
Status s = StatusFromTF_Status(status.get()); CHECK_EQ(errors::OK, s.code()) << s.message(); } }; TEST_P(UnifiedCAPI, TestBasicEager) { std::unique_ptr<TF_Status, decltype(&TF_DeleteStatus)> status( TF_NewStatus(), TF_DeleteStatus); 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/eager/unified_api_testutil.h
Status TestTensorHandleWithDims(AbstractContext* ctx, const T* data, const int64_t* dims, int num_dims, AbstractTensorHandle** tensor) { std::unique_ptr<TF_Status, decltype(&TF_DeleteStatus)> status( TF_NewStatus(), TF_DeleteStatus); TFE_Context* eager_ctx = TF_ExecutionContextGetTFEContext(wrap(ctx), status.get());
C - Registered: Tue Apr 30 12:39:09 GMT 2024 - Last Modified: Tue Feb 27 13:57:45 GMT 2024 - 4K bytes - Viewed (0) -
tensorflow/c/experimental/gradients/tape/tape_operation.cc
} Status TapeOperation::SetAttrBoolList(const char* attr_name, const unsigned char* values, int num_values) { std::unique_ptr<bool[]> b(new bool[num_values]); for (int i = 0; i < num_values; ++i) { b[i] = values[i]; } forward_op_.attrs.Set(attr_name, gtl::ArraySlice<const bool>(b.get(), num_values));
C++ - Registered: Tue Feb 27 12:39:08 GMT 2024 - Last Modified: Tue Jun 07 01:53:35 GMT 2022 - 9K bytes - Viewed (1) -
tensorflow/c/c_api_test.cc
ASSERT_EQ(TF_OK, TF_GetCode(s_)) << TF_Message(s_); EXPECT_TF_META("v", list.size(), TF_ATTR_STRING, list_total_size); std::unique_ptr<void*[]> values(new void*[list.size()]); std::unique_ptr<size_t[]> lens(new size_t[list.size()]); std::unique_ptr<char[]> storage(new char[list_total_size]); TF_OperationGetAttrStringList(oper, "v", values.get(), lens.get(),
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)