| 43 | } |
| 44 | |
| 45 | void AddAssetsTensorsToInputs(const StringPiece export_dir, |
| 46 | const std::vector<AssetFileDef>& asset_file_defs, |
| 47 | std::vector<std::pair<string, Tensor>>* inputs) { |
| 48 | if (asset_file_defs.empty()) { |
| 49 | return; |
| 50 | } |
| 51 | for (auto& asset_file_def : asset_file_defs) { |
| 52 | Tensor assets_file_path_tensor = CreateStringTensor(io::JoinPath( |
| 53 | export_dir, kSavedModelAssetsDirectory, asset_file_def.filename())); |
| 54 | inputs->push_back( |
| 55 | {asset_file_def.tensor_info().name(), assets_file_path_tensor}); |
| 56 | } |
| 57 | } |
| 58 | |
| 59 | Status RunOnce( |
| 60 | const RunOptions& run_options, |
no test coverage detected