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

Function VD

tensorflow/core/common_runtime/executor_test.cc:127–131  ·  view source on GitHub ↗

A double val -> Tensor

Source from the content-addressed store, hash-verified

125
126// A double val -> Tensor<double>
127Tensor VD(const double val) {
128 Tensor tensor(DT_DOUBLE, TensorShape({}));
129 tensor.scalar<double>()() = val;
130 return tensor;
131}
132
133// Tensor<float> -> a float val.
134float V(const Tensor& tensor) {

Callers 1

TEST_FFunction · 0.70

Calls 1

TensorShapeClass · 0.50

Tested by

no test coverage detected