- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for CreateUninitialized (0.25 sec)
-
tensorflow/c/experimental/saved_model/core/revived_types/variable.h
class Variable : public TensorHandleConvertible { public: // Creates an uninitialized resource variable. Note that a caller must // call "assign" to associate a value with the variable. static Status CreateUninitialized( ImmediateExecutionContext* ctx, DataType dtype, TensorShape shape, absl::optional<std::string> name, const char* raw_device_name, const std::vector<std::string>& component_devices,
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Aug 30 19:43:25 UTC 2022 - 2.8K bytes - Viewed (0) -
tensorflow/c/experimental/saved_model/core/revived_types/variable.cc
} Status Variable::ReadValue(ImmediateTensorHandlePtr* out) { return internal::ReadVariable(ctx_, handle_.get(), dtype_, out); } Status Variable::CreateUninitialized( ImmediateExecutionContext* ctx, DataType dtype, TensorShape shape, absl::optional<std::string> name, const char* raw_device_name, const std::vector<std::string>& component_devices,
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Oct 08 20:55:40 UTC 2020 - 4.4K bytes - Viewed (0) -
tensorflow/c/experimental/saved_model/core/saved_variable_loading_test.cc
std::vector<int64_t> shape_vector = std::get<1>(test_params); TensorShape shape(shape_vector); // Create the variable. Status status; std::unique_ptr<Variable> var; TF_EXPECT_OK(Variable::CreateUninitialized(context(), dtype, shape, absl::nullopt, nullptr, {}, &var)); // Create a TensorHandle ImmediateTensorHandlePtr expected_handle =
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Feb 27 09:34:33 UTC 2024 - 6.2K bytes - Viewed (0) -
tensorflow/c/experimental/saved_model/core/saved_model_utils.cc
for (const auto& component : variable.experimental_distributed_variable_components()) { component_devices.push_back(component.device()); } TF_RETURN_IF_ERROR(Variable::CreateUninitialized( ctx, dtype, shape, name, variable.device().empty() ? nullptr : variable.device().c_str(), component_devices, output)); return Status(); } Status LoadTFConcreteFunction(
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Jan 12 19:17:46 UTC 2023 - 24K bytes - Viewed (0)