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

Function Eval

tensorflow/lite/kernels/where.cc:80–94  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

78}
79
80TfLiteStatus Eval(TfLiteContext* context, TfLiteNode* node) {
81 const TfLiteTensor* cond_tensor =
82 GetInput(context, node, kInputConditionTensor);
83 TfLiteTensor* output = GetOutput(context, node, kOutputTensor);
84
85 if (IsDynamicTensor(output)) {
86 TF_LITE_ENSURE_OK(context,
87 ResizeOutputTensor(context, cond_tensor, output));
88 }
89
90 reference_ops::SelectTrueCoords(GetTensorShape(cond_tensor),
91 GetTensorData<bool>(cond_tensor),
92 GetTensorData<int32_t>(output));
93 return kTfLiteOk;
94}
95} // namespace where
96
97TfLiteRegistration* Register_WHERE() {

Callers

nothing calls this directly

Calls 6

GetInputFunction · 0.85
GetOutputFunction · 0.85
IsDynamicTensorFunction · 0.85
SelectTrueCoordsFunction · 0.85
ResizeOutputTensorFunction · 0.70
GetTensorShapeFunction · 0.50

Tested by

no test coverage detected