Skip to content

Commit

Permalink
smal tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
dfalbel committed Dec 14, 2023
1 parent 4d83bd0 commit 23071c1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .Rbuildignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
^\.Rproj\.user$
^.github.*
^.vscode.*
^.cache.*
tools/torchgen/.Rbuildignore
^README\.Rmd$
^_pkgdown\.yml$
Expand All @@ -24,6 +25,8 @@ tools/torchgen/.Rbuildignore
^build\-lantern.*$
^src/Makevars$
^lib/.*lantern
compile_flags.*
mnist-r.*

# remove vignettes from CRAN
# ^vignettes/distributions\.Rmd
Expand Down
2 changes: 1 addition & 1 deletion R/device.R
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ Device <- R7Class(
)

#' @export
as.character.torch_device <- function(x) {
as.character.torch_device <- function(x, ...) {
chr <- x$type
if (!is.null(x$index)) {
chr <- paste0(chr, ":", x$index)
Expand Down

0 comments on commit 23071c1

Please sign in to comment.