| 106 | } |
| 107 | |
| 108 | bool ShouldWarmup(SignatureDef& sig_def) { |
| 109 | for (auto it : sig_def.inputs()) { |
| 110 | if (it.second.dtype() == DT_STRING) return false; |
| 111 | } |
| 112 | return true; |
| 113 | } |
| 114 | |
| 115 | void StringReplace(std::string& strBig, const std::string& strsrc, |
| 116 | const std::string& strdst) { |