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

Function Constant

tensorflow/core/util/tensor_bundle/tensor_bundle_test.cc:53–57  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

51
52template <typename T>
53Tensor Constant(T v, TensorShape shape) {
54 Tensor ret(DataTypeToEnum<T>::value, shape);
55 ret.flat<T>().setConstant(v);
56 return ret;
57}
58
59template <typename T>
60Tensor Constant_2x3(T v) {

Callers 3

Constant_2x3Function · 0.70
TestNonStandardShapesFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected