| 436 | } |
| 437 | |
| 438 | inline bool if_convert_format(const Format src_fmt, const FT& dst_fmt) { |
| 439 | if ((src_fmt == FT::NCHW && dst_fmt == FT::DEFAULT) || |
| 440 | (src_fmt == FT::DEFAULT && dst_fmt == FT::NCHW)) { |
| 441 | return false; |
| 442 | } else { |
| 443 | return true; |
| 444 | } |
| 445 | } |
| 446 | |
| 447 | inline ValueRefList unify_inputs_format( |
| 448 | const Span<ValueRef>& inputs, const FT& dst_fmt, const std::string& scope, |
no outgoing calls
no test coverage detected