MCPcopy Create free account
hub / github.com/ARM-software/ComputeLibrary / get_tensor_descriptor

Function get_tensor_descriptor

arm_compute/graph/Utils.h:54–58  ·  view source on GitHub ↗

Returns the tensor descriptor of a given tensor * * @param[in] g Graph that the tensor belongs to * @param[in] tid Tensor ID * * @return Tensor descriptor if tensor was found else empty descriptor */

Source from the content-addressed store, hash-verified

52 * @return Tensor descriptor if tensor was found else empty descriptor
53 */
54inline TensorDescriptor get_tensor_descriptor(const Graph &g, TensorID tid)
55{
56 const Tensor *tensor = g.tensor(tid);
57 return (tensor != nullptr) ? tensor->desc() : TensorDescriptor();
58}
59/** Sets an accessor on a given tensor
60 *
61 * @param[in] tensor Tensor to set the accessor to

Calls 2

TensorDescriptorClass · 0.70
tensorMethod · 0.45

Tested by

no test coverage detected