geneflowdecoder 0.1.1__tar.gz → 0.1.2__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {geneflowdecoder-0.1.1/src/geneflowdecoder.egg-info → geneflowdecoder-0.1.2}/PKG-INFO +1 -1
- {geneflowdecoder-0.1.1 → geneflowdecoder-0.1.2}/pyproject.toml +1 -1
- {geneflowdecoder-0.1.1 → geneflowdecoder-0.1.2}/src/geneflowdecoder/_core.py +2 -2
- {geneflowdecoder-0.1.1 → geneflowdecoder-0.1.2}/src/geneflowdecoder/_version.py +1 -1
- {geneflowdecoder-0.1.1 → geneflowdecoder-0.1.2/src/geneflowdecoder.egg-info}/PKG-INFO +1 -1
- {geneflowdecoder-0.1.1 → geneflowdecoder-0.1.2}/LICENSE +0 -0
- {geneflowdecoder-0.1.1 → geneflowdecoder-0.1.2}/README.md +0 -0
- {geneflowdecoder-0.1.1 → geneflowdecoder-0.1.2}/setup.cfg +0 -0
- {geneflowdecoder-0.1.1 → geneflowdecoder-0.1.2}/src/geneflowdecoder/__init__.py +0 -0
- {geneflowdecoder-0.1.1 → geneflowdecoder-0.1.2}/src/geneflowdecoder.egg-info/SOURCES.txt +0 -0
- {geneflowdecoder-0.1.1 → geneflowdecoder-0.1.2}/src/geneflowdecoder.egg-info/dependency_links.txt +0 -0
- {geneflowdecoder-0.1.1 → geneflowdecoder-0.1.2}/src/geneflowdecoder.egg-info/requires.txt +0 -0
- {geneflowdecoder-0.1.1 → geneflowdecoder-0.1.2}/src/geneflowdecoder.egg-info/top_level.txt +0 -0
- {geneflowdecoder-0.1.1 → geneflowdecoder-0.1.2}/tests/test_api.py +0 -0
|
@@ -497,9 +497,9 @@ class GeneFlowDecoder(nn.Module):
|
|
|
497
497
|
# 把 .X 或 obsm 留在 cuda 的情况),强制关闭,避免
|
|
498
498
|
# RuntimeError: cannot pin 'torch.cuda.FloatTensor'
|
|
499
499
|
# 注:_as_tensor 对 cuda 输入原样返回,因此这里 X/z 仍在 GPU。
|
|
500
|
-
assert X.device.type == "cpu" or z.device.type == "cpu" or not pin_memory
|
|
501
500
|
pin_memory = _want_pin_memory(X, z)
|
|
502
|
-
|
|
501
|
+
assert X.device.type == "cpu" or z.device.type == "cpu" or not pin_memory
|
|
502
|
+
|
|
503
503
|
ds = torch.utils.data.TensorDataset(X, z)
|
|
504
504
|
dl = torch.utils.data.DataLoader(
|
|
505
505
|
ds,
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
# -*- coding: utf-8 -*-
|
|
2
|
-
__version__ = "0.1.
|
|
2
|
+
__version__ = "0.1.2"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{geneflowdecoder-0.1.1 → geneflowdecoder-0.1.2}/src/geneflowdecoder.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|