- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for DestroyResource (0.28 sec)
-
tensorflow/c/experimental/saved_model/core/ops/variable_ops.h
// the cleanup that occurs in a tf.Variable's EagerResourceDeleter: // https://github.com/tensorflow/tensorflow/blob/516608035f85cec8b126712b0ff8407220206b22/tensorflow/python/ops/resource_variable_ops.py#L289-L290 Status DestroyResource(ImmediateExecutionContext* ctx, ImmediateExecutionTensorHandle* handle); } // namespace internal } // namespace tensorflow
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
return errors::Internal("Unexpected tensor handle kind."); } output->reset( reinterpret_cast<ImmediateExecutionTensorHandle*>(owned_value.release())); return Status(); } Status DestroyResource(ImmediateExecutionContext* ctx, ImmediateExecutionTensorHandle* handle) { ImmediateOpPtr destroy_op(ctx->CreateOperation()); TF_RETURN_IF_ERROR(destroy_op->Reset("DestroyResourceOp", nullptr));
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Apr 23 11:28:19 UTC 2024 - 5K bytes - Viewed (0) -
tensorflow/c/experimental/saved_model/core/ops/variable_ops_test.cc
ImmediateTensorHandlePtr handle; TF_EXPECT_OK(internal::CreateUninitializedResourceVariable( context(), DT_FLOAT, {}, nullptr, &handle)); // Destroy the variable TF_EXPECT_OK(internal::DestroyResource(context(), handle.get())); } // Sanity check for handle assignment and reading TEST_F(VariableOpsTest, AssignVariableAndReadSuccessful) { // Create a DT_Resource TensorHandle that points to a scalar DT_FLOAT tensor
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
Variable::~Variable() { // If the handle is null (perhaps because variable was std::moved from), then // we don't have to do anything. if (handle_ == nullptr) { return; } Status status = internal::DestroyResource(ctx_, handle_.get()); if (!status.ok()) { LOG(ERROR) << "Error destroying variable: " << name_ << "due to: " << status; } } DataType Variable::dtype() { return dtype_; }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Oct 08 20:55:40 UTC 2020 - 4.4K bytes - Viewed (0)