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

Function MakeResourceHandle

tensorflow/core/framework/resource_mgr.h:300–307  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

298
299template <typename T>
300ResourceHandle MakeResourceHandle(
301 OpKernelContext* ctx, const string& container, const string& name,
302 const std::vector<DtypeAndPartialTensorShape>& dtypes_and_shapes = {}) {
303 return MakeResourceHandle(
304 container.empty() ? ctx->resource_manager()->default_container()
305 : container,
306 name, *ctx->device(), MakeTypeIndex<T>(), dtypes_and_shapes);
307}
308
309Status MakeResourceHandleToOutput(OpKernelContext* context, int output_index,
310 const string& container, const string& name,

Callers 2

MakeResourceHandleMethod · 0.70
ComputeMethod · 0.50

Calls 3

emptyMethod · 0.45
resource_managerMethod · 0.45
deviceMethod · 0.45

Tested by

no test coverage detected