We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b744db7 commit cf11e07Copy full SHA for cf11e07
tests/testthat/test-dtype.R
@@ -7,6 +7,7 @@ test_that("Can create dtypes", {
7
expect_s3_class(torch_double(), "torch_dtype")
8
expect_s3_class(torch_float16(), "torch_dtype")
9
expect_s3_class(torch_half(), "torch_dtype")
10
+ expect_s3_class(torch_bfloat16(), "torch_dtype")
11
expect_s3_class(torch_uint8(), "torch_dtype")
12
expect_s3_class(torch_int8(), "torch_dtype")
13
expect_s3_class(torch_int16(), "torch_dtype")
@@ -47,6 +48,7 @@ test_that("can set select devices using strings", {
47
48
"double" = torch_double(),
49
"float16" = torch_float16(),
50
"half" = torch_half(),
51
+ "bfloat16" = torch_bfloat16(),
52
"uint8" = torch_uint8(),
53
"int8" = torch_int8(),
54
"int16" = torch_int16(),
0 commit comments