| 1035 | } |
| 1036 | |
| 1037 | inline std::vector<DataType> GetLayerInOutDatatype(const Layer* layer) |
| 1038 | { |
| 1039 | DataType dataTypeIn = layer->GetNumInputSlots() == 0 ? DataType::Float32 : |
| 1040 | layer->GetInputSlot(0).GetConnectedOutputSlot()->GetTensorInfo().GetDataType(); |
| 1041 | DataType dataTypeOut = layer->GetNumOutputSlots() == 0 ? DataType::Float32 : |
| 1042 | layer->GetOutputSlot(0).GetTensorInfo().GetDataType(); |
| 1043 | return {dataTypeIn, dataTypeOut}; |
| 1044 | } |
| 1045 | |
| 1046 | bool CheckFp16Support(BackendsMap& backends, |
| 1047 | const std::vector<BackendId>& availablePreferredBackends) |
no test coverage detected