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

Method preprocess

utils/GraphUtils.cpp:71–85  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

69{
70}
71void TFPreproccessor::preprocess(ITensor &tensor)
72{
73 if (tensor.info()->data_type() == DataType::F32)
74 {
75 preprocess_typed<float>(tensor);
76 }
77 else if (tensor.info()->data_type() == DataType::F16)
78 {
79 preprocess_typed<half>(tensor);
80 }
81 else
82 {
83 ARM_COMPUTE_ERROR("NOT SUPPORTED!");
84 }
85}
86
87template <typename T>
88void TFPreproccessor::preprocess_typed(ITensor &tensor)

Callers 1

access_tensorMethod · 0.80

Calls 2

data_typeMethod · 0.45
infoMethod · 0.45

Tested by

no test coverage detected