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

Function Initialize

tensorflow/contrib/tensor_forest/kernels/tree_utils.h:150–153  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

148// Initializes everything in the given tensor to the given value.
149template <typename T>
150void Initialize(Tensor counts, T val = 0) {
151 auto flat = counts.unaligned_flat<T>();
152 std::fill(flat.data(), flat.data() + flat.size(), val);
153}
154
155// Returns a function that accesses the (i,j)-th element of the specified two
156// dimensional tensor.

Callers 4

ComputeMethod · 0.50
ComputeMethod · 0.50
ComputeMethod · 0.50
ExtractFromProtoMethod · 0.50

Calls 3

fillFunction · 0.50
dataMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected