Skip to content

Commit

Permalink
Bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
bbimber committed Jan 31, 2025
1 parent 01d16df commit c4d5bf8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/sctour.R
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ PredictScTourPseudotime <- function(seuratObj,
embeddingOutFile <- R.utils::getAbsolutePath(paste0(outputBasePath, 'embeddings.csv'), mustWork = FALSE)

# See: https://dev-discuss.pytorch.org/t/bc-breaking-change-torch-load-is-being-flipped-to-use-weights-only-true-by-default-in-the-nightlies-after-137602/2573
Sys.setenv('TORCH_FORCE_NO_WEIGHTS_ONLY_LOAD', 1)
Sys.setenv('TORCH_FORCE_NO_WEIGHTS_ONLY_LOAD' = 1)

newstr <- paste0("PredictPseudotime(GEXfile = '", GEXOutfile,
"', model_file = '", R.utils::getAbsolutePath(modelFile, mustWork = FALSE),
Expand Down

0 comments on commit c4d5bf8

Please sign in to comment.