| 27 | using Iterator = LayerList::const_iterator; // Const so pointers in the list can't be modified externally. |
| 28 | |
| 29 | const 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 |
no test coverage detected