MCPcopy Create free account
hub / github.com/ARM-software/armnn / OverrideDataType

Function OverrideDataType

src/backends/backendsCommon/WorkloadFactory.cpp:29–41  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

27using Iterator = LayerList::const_iterator; // Const so pointers in the list can't be modified externally.
28
29const TensorInfo OverrideDataType(const TensorInfo& info, Optional<DataType> type)
30{
31 if (!type)
32 {
33 return info;
34 }
35
36 return TensorInfo(info.GetShape(),
37 type.value(),
38 info.GetQuantizationScale(),
39 info.GetQuantizationOffset(),
40 info.IsConstant());
41}
42
43} // anonymous namespace
44

Callers 1

Calls 6

IsConstantMethod · 0.80
TensorInfoClass · 0.50
GetShapeMethod · 0.45
valueMethod · 0.45
GetQuantizationScaleMethod · 0.45
GetQuantizationOffsetMethod · 0.45

Tested by

no test coverage detected