MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / DeleteResource

Function DeleteResource

tensorflow/core/framework/resource_mgr.cc:327–330  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

325}
326
327Status DeleteResource(OpKernelContext* ctx, const ResourceHandle& p) {
328 TF_RETURN_IF_ERROR(internal::ValidateDevice(ctx, p));
329 return ctx->resource_manager()->Delete(p);
330}
331
332Status ResourceHandlesShape(shape_inference::InferenceContext* c) {
333 int n;

Callers

nothing calls this directly

Calls 3

ValidateDeviceFunction · 0.85
DeleteMethod · 0.45
resource_managerMethod · 0.45

Tested by

no test coverage detected