- Sort Score
- Result 10 results
- Languages All
Results 1 - 5 of 5 for destroy_resource_ (0.27 sec)
-
tensorflow/c/experimental/saved_model/core/revived_types/restored_resource.cc
// did not have their destroy_resource function saved, meaning they will // leak resources. // // Check that handle is null before calling destroy_resource function in case // destructor is invoked unintentionally. if (destroy_resource_ != nullptr && handle() != nullptr) { Status status = ExecuteNoArgDummyReturnFunction(destroy_resource_); if (!status.ok()) { LOG(WARNING)
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri Apr 14 19:16:58 UTC 2023 - 3.1K bytes - Viewed (0) -
tensorflow/c/experimental/saved_model/core/revived_types/partially_revived_objects.cc
} } TFConcreteFunction* destroy_resource = nullptr; if (resource_revival_state.destroy_resource != nullptr) { destroy_resource = revived->concrete_functions.Find( resource_revival_state.destroy_resource->node_id); if (destroy_resource == nullptr) { return absl::FailedPreconditionError(absl::StrCat( "'destroy_resource' function with node id ",
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue May 09 20:11:48 UTC 2023 - 23.7K bytes - Viewed (0) -
tensorflow/c/experimental/saved_model/core/saved_model_utils.cc
resource.initialize = &objects->concrete_functions[child_node_id]; } else if (child.local_name() == "_destroy_resource" && obj_graph.nodes(child.node_id()).kind_case() == SavedObject::kFunction) { resource.destroy_resource = &objects->concrete_functions[child_node_id]; } } } objects->signatures_map = std::move(signatures_map);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Jan 12 19:17:46 UTC 2023 - 24K bytes - Viewed (0) -
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)