Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
9
namespace {
10
11
Tensor CreateStringTensor(const string& value) {
12
Tensor tensor(DT_STRING, TensorShape({}));
13
tensor.scalar<string>()() = value;
14
return tensor;
15
}
16
17
}
18
Callers
1
AddAssetsTensorsToInputs
Function · 0.70
Calls
1
TensorShape
Class · 0.50
Tested by
no test coverage detected