Fix MSAN failure in delegate_test
Added inital value of input0 in StaticOutputRFFT() PiperOrigin-RevId: 334107533 Change-Id: I6e691aef799e942bccf2de667aafe97feb6daf63
This commit is contained in:
parent
1c3145aeba
commit
516c0875a7
tensorflow/lite/delegates/flex
@ -129,7 +129,6 @@ tf_cc_test(
|
||||
srcs = ["delegate_test.cc"],
|
||||
tags = [
|
||||
"no_gpu", # GPU + flex is not officially supported.
|
||||
"nomsan", # b/169431678
|
||||
],
|
||||
deps = [
|
||||
":delegate",
|
||||
|
@ -15,6 +15,7 @@ limitations under the License.
|
||||
#include "tensorflow/lite/delegates/flex/delegate.h"
|
||||
|
||||
#include <cstdint>
|
||||
#include <vector>
|
||||
|
||||
#include <gmock/gmock.h>
|
||||
#include <gtest/gtest.h>
|
||||
@ -361,6 +362,7 @@ TEST_F(DelegateTest, StaticOutputRFFT) {
|
||||
|
||||
// Define inputs.
|
||||
SetShape(0, {3, 512});
|
||||
SetValues(0, std::vector<float>(3 * 512, 1.0f));
|
||||
|
||||
ASSERT_TRUE(Invoke());
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user