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

Method allocate_tensor

tensorflow/core/framework/op_kernel.h:1323–1328  ·  view source on GitHub ↗

Internal common method used when allocating tensor memory

Source from the content-addressed store, hash-verified

1321
1322 // Internal common method used when allocating tensor memory
1323 Status allocate_tensor(DataType type, const TensorShape& shape,
1324 Tensor* out_tensor,
1325 AllocatorAttributes allocator_attr) {
1326 return allocate_tensor(type, shape, out_tensor, allocator_attr,
1327 AllocationAttributes());
1328 }
1329
1330 Status allocate_tensor(DataType type, const TensorShape& shape,
1331 Tensor* out_tensor, AllocatorAttributes allocator_attr,

Callers

nothing calls this directly

Calls 2

allocate_tensorFunction · 0.85

Tested by

no test coverage detected