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

Function compute

tensorflow/c/c_test.c:40–46  ·  view source on GitHub ↗

A compute function. This will never actually get called in this test, it's just nice to know that it compiles.

Source from the content-addressed store, hash-verified

38// A compute function. This will never actually get called in this test, it's
39// just nice to know that it compiles.
40void compute(void* kernel, TF_OpKernelContext* ctx) {
41 TF_Tensor* input;
42 TF_Status* s = TF_NewStatus();
43 TF_GetInput(ctx, 0, &input, s);
44 TF_DeleteTensor(input);
45 TF_DeleteStatus(s);
46}
47
48// Exercises tensorflow's C API.
49int main(int argc, char** argv) {

Callers 6

DoAllReduceMethod · 0.50
ComputeMethod · 0.50
operator()Method · 0.50

Calls 4

TF_NewStatusFunction · 0.85
TF_GetInputFunction · 0.85
TF_DeleteTensorFunction · 0.85
TF_DeleteStatusFunction · 0.85

Tested by

no test coverage detected