未验证 提交 41441904 编写于 作者: M Mihai Maruseac 提交者: GitHub

Merge pull request #43401 from tensorflow/mihaimaruseac-patch-2

Cast away a const in intermediate API
......@@ -92,7 +92,7 @@ inline int64_t NumElements(const TfLiteTensor* t) {
inline const TfLiteTensor* GetOptionalInputTensor(TfLiteContext* context,
const TfLiteNode* node,
int index) {
return GetInput(context, node, index);
return GetInput(context, const_cast<TfLiteNode*>(node), index);
}
// Determines whether tensor is constant.
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册