MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / AddAssetsTensorsToInputs

Function AddAssetsTensorsToInputs

serving/processor/serving/util.cc:45–57  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

43}
44
45void 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
59Status RunOnce(
60 const RunOptions& run_options,

Callers 6

RunIncrRestoreCheckpointFunction · 0.70
RunRestoreCheckpointFunction · 0.70
RunRestoreFunction · 0.70
RunIncrMainOpFunction · 0.70
RunMainOpFunction · 0.70
RunInitOpFunction · 0.70

Calls 5

CreateStringTensorFunction · 0.70
nameMethod · 0.65
JoinPathFunction · 0.50
emptyMethod · 0.45
push_backMethod · 0.45

Tested by

no test coverage detected