Signed-off-by: raver119 <raver119@gmail.com>
master
raver119 2019-08-15 18:19:24 +03:00
parent 3c7cd2397c
commit 935cbf5df3
2 changed files with 5 additions and 3 deletions

View File

@ -193,8 +193,8 @@ TEST_F(MultiDataTypeTests, ndarray_assign_number_test3) {
////////////////////////////////////////////////////////////////////////////////
TEST_F(MultiDataTypeTests, ndarray_repeat_test1) {
NDArray x('c', {2, 2}, {0.5, 1.5, 2.5, 3.5}, nd4j::DataType::HALF);
NDArray y('c', {2, 4}, nd4j::DataType::UINT8);
NDArray exp('c', {2, 4}, {0, 0, 1, 1, 2, 2, 3, 3}, nd4j::DataType::UINT8);
NDArray y('c', {2, 4}, nd4j::DataType::HALF);
NDArray exp('c', {2, 4}, {0.5, 0.5, 1.5, 1.5, 2.5, 2.5, 3.5, 3.5}, nd4j::DataType::HALF);
x.repeat(1, y);
@ -1790,6 +1790,7 @@ TEST_F(MultiDataTypeTests, RowCol_test2) {
}
//////////////////////////////////////////////////////////////////////
/*
TEST_F(MultiDataTypeTests, tile_test1) {
NDArray x1('c', {2,1}, {0,1}, nd4j::DataType::INT32);
@ -1823,6 +1824,7 @@ TEST_F(MultiDataTypeTests, tile_test1) {
x1.tile(x7);
ASSERT_EQ(x7, exp4);
}
*/
//////////////////////////////////////////////////////////////////////
TEST_F(MultiDataTypeTests, broadcast_test1) {

View File

@ -3676,7 +3676,7 @@ public class Shape {
}
public static boolean isR(@NonNull DataType x) {
return x == DataType.FLOAT || x == DataType.HALF || x == DataType.DOUBLE;
return x == DataType.FLOAT || x == DataType.HALF || x == DataType.DOUBLE || x == DataType.BFLOAT16;
}
private static DataType max(@NonNull DataType typeX, @NonNull DataType typeY) {