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

Function V

tensorflow/core/common_runtime/executor_test.cc:106–110  ·  view source on GitHub ↗

A float val -> Tensor

Source from the content-addressed store, hash-verified

104
105// A float val -> Tensor<float>
106Tensor V(const float val) {
107 Tensor tensor(DT_FLOAT, TensorShape({}));
108 tensor.scalar<float>()() = val;
109 return tensor;
110}
111
112// A int32 val -> Tensor<int32>
113Tensor VI(const int32 val) {

Callers 3

TEST_FFunction · 0.70
BuildConcurrentAddAssignFunction · 0.70

Calls 4

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

Tested by

no test coverage detected