- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for CreateUninitializedResourceVariable (0.45 sec)
-
tensorflow/c/experimental/saved_model/core/ops/variable_ops_test.cc
TEST_F(VariableOpsTest, CreateVariableSuccessful) { // Create a DT_Resource TensorHandle that points to a scalar DT_FLOAT tensor ImmediateTensorHandlePtr handle; TF_EXPECT_OK(internal::CreateUninitializedResourceVariable( context(), DT_FLOAT, {}, nullptr, &handle)); // The created TensorHandle should be a DT_Resource EXPECT_EQ(handle->DataType(), DT_RESOURCE); } // Sanity check for variable destruction
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri Aug 21 19:26:54 UTC 2020 - 3.8K bytes - Viewed (0) -
tensorflow/c/experimental/saved_model/core/revived_types/variable.cc
const std::vector<std::string>& component_devices, std::unique_ptr<Variable>* output) { ImmediateTensorHandlePtr handle; if (component_devices.empty()) { TF_RETURN_IF_ERROR(internal::CreateUninitializedResourceVariable( ctx, dtype, shape, raw_device_name, &handle)); output->reset( new Variable(ctx, dtype, shape, std::move(name), std::move(handle))); return Status(); }
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/ops/variable_ops.h
// unitialized TF2 tf.Variable. // https://github.com/tensorflow/tensorflow/blob/516608035f85cec8b126712b0ff8407220206b22/tensorflow/python/ops/resource_variable_ops.py#L1867-L1872 Status CreateUninitializedResourceVariable(ImmediateExecutionContext* ctx, DataType dtype, TensorShape shape, const char* raw_device_name,
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Aug 30 21:44:45 UTC 2022 - 3.2K bytes - Viewed (0) -
tensorflow/c/experimental/saved_model/core/ops/variable_ops.cc
#include "tensorflow/core/platform/errors.h" #include "tensorflow/core/platform/status.h" #include "tensorflow/core/platform/types.h" namespace tensorflow { namespace internal { Status CreateUninitializedResourceVariable(ImmediateExecutionContext* ctx, DataType dtype, TensorShape shape, const char* raw_device_name,
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Apr 23 11:28:19 UTC 2024 - 5K bytes - Viewed (0)