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

Function CreateStringTensor

tensorflow/cc/saved_model/loader.cc:157–161  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

155}
156
157Tensor CreateStringTensor(const string& value) {
158 Tensor tensor(DT_STRING, TensorShape({}));
159 tensor.scalar<tstring>()() = value;
160 return tensor;
161}
162
163void AddAssetsTensorsToInputs(const StringPiece export_dir,
164 const std::vector<AssetFileDef>& asset_file_defs,

Callers 1

AddAssetsTensorsToInputsFunction · 0.70

Calls 1

TensorShapeClass · 0.50

Tested by

no test coverage detected