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

Function CreateStringTensor

serving/processor/serving/util.cc:11–15  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9namespace {
10
11Tensor CreateStringTensor(const string& value) {
12 Tensor tensor(DT_STRING, TensorShape({}));
13 tensor.scalar<string>()() = value;
14 return tensor;
15}
16
17}
18

Callers 1

AddAssetsTensorsToInputsFunction · 0.70

Calls 1

TensorShapeClass · 0.50

Tested by

no test coverage detected