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

Function V

tensorflow/core/kernels/data/single_threaded_executor_test.cc:96–100  ·  view source on GitHub ↗

A float val -> Tensor

Source from the content-addressed store, hash-verified

94
95// A float val -> Tensor<float>
96Tensor V(const float val) {
97 Tensor tensor(DT_FLOAT, TensorShape({}));
98 tensor.scalar<float>()() = val;
99 return tensor;
100}
101
102// A int32 val -> Tensor<int32>
103Tensor VI(const int32 val) {

Callers 2

TEST_FFunction · 0.70

Calls 4

TensorShapeClass · 0.50
IsScalarFunction · 0.50
dtypeMethod · 0.45
shapeMethod · 0.45

Tested by

no test coverage detected