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

Function VB

tensorflow/core/common_runtime/executor_test.cc:120–124  ·  view source on GitHub ↗

A bool val -> Tensor

Source from the content-addressed store, hash-verified

118
119// A bool val -> Tensor<bool>
120Tensor VB(const bool val) {
121 Tensor tensor(DT_BOOL, TensorShape({}));
122 tensor.scalar<bool>()() = val;
123 return tensor;
124}
125
126// A double val -> Tensor<double>
127Tensor VD(const double val) {

Callers 1

TEST_FFunction · 0.70

Calls 1

TensorShapeClass · 0.50

Tested by

no test coverage detected