Build fix
PiperOrigin-RevId: 239089368
This commit is contained in:
parent
7737fbf246
commit
17a8ee5006
@ -112,7 +112,7 @@ void FillDiagHelper(const TfLiteTensor* input, TfLiteTensor* output) {
|
||||
return FillDiag<uint8_t>(input, output, batch_size, row_size, col_size);
|
||||
}
|
||||
default:
|
||||
return FillDiag<float_t>(input, output, batch_size, row_size, col_size);
|
||||
return FillDiag<float>(input, output, batch_size, row_size, col_size);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -57,7 +57,7 @@ template <typename T>
|
||||
class MatrixDiagOpTest : public ::testing::Test {};
|
||||
|
||||
using TypesUnderTest =
|
||||
::testing::Types<TypeUnion<int32_t>, TypeUnion<float_t>, TypeUnion<int16_t>,
|
||||
::testing::Types<TypeUnion<int32_t>, TypeUnion<float>, TypeUnion<int16_t>,
|
||||
TypeUnion<int8_t>, TypeUnion<uint8_t>>;
|
||||
TYPED_TEST_SUITE(MatrixDiagOpTest, TypesUnderTest);
|
||||
|
||||
|
@ -533,11 +533,11 @@ template <typename T>
|
||||
struct TypeUnion;
|
||||
|
||||
template <>
|
||||
struct TypeUnion<float_t> {
|
||||
struct TypeUnion<float> {
|
||||
public:
|
||||
static const TensorType tensor_type = TensorType::TensorType_FLOAT32;
|
||||
static const TfLiteType tflite_type = TfLiteType::kTfLiteFloat32;
|
||||
typedef float_t ScalarType;
|
||||
typedef float ScalarType;
|
||||
};
|
||||
|
||||
template <>
|
||||
|
Loading…
x
Reference in New Issue
Block a user