Comments (4)
same for me.
Version
PyTorch version: 2.3.0+cu118
Is debug build: False
CUDA used to build PyTorch: 11.8
ROCM used to build PyTorch: N/A
OS: Arch Linux (x86_64)
GCC version: (GCC) 14.1.1 20240507
Clang version: 17.0.6
CMake version: version 3.28.1
Libc version: glibc-2.39
Python version: 3.12.3 (main, Apr 23 2024, 09:16:07) [GCC 13.2.1 20240417] (64-bit runtime)
Python platform: Linux-6.9.1-zen1-1-zen-x86_64-with-glibc2.39
Is CUDA available: True
CUDA runtime version: Could not collect
CUDA_MODULE_LOADING set to: LAZY
GPU models and configuration: GPU 0: NVIDIA GeForce RTX 4070 SUPER
Nvidia driver version: 550.78
cuDNN version: Could not collect
HIP runtime version: N/A
MIOpen runtime version: N/A
Is XNNPACK available: True
CPU:
Architecture: x86_64
CPU op-mode(s): 32-bit, 64-bit
Address sizes: 39 bits physical, 48 bits virtual
Byte Order: Little Endian
CPU(s): 8
On-line CPU(s) list: 0-7
Vendor ID: GenuineIntel
Model name: Intel(R) Core(TM) i7-1065G7 CPU @ 1.30GHz
...
Versions of relevant libraries:
[pip3] numpy==1.26.4
[pip3] torch==2.3.0+cu118
[pip3] torchaudio==2.3.0+cu118
[pip3] torchvision==0.18.0+cu118
[conda] Could not collect
from pytorch.
Does submodules need to be in the __all__
in general?
from pytorch.
Does submodules need to be in the
__all__
in general?
Not when importing them using from torch import utils
or import torch.utils
.
The torch namespace does not directly import utils, it seems to be a side effect of from ._tensor import Tensor
which makes utils available through the torch namespace.
I'm now using import torch.utils.data
so that torch.utils.data.Dataset
and torch.utils.data.Dataloader
are understood by type checkers.
Feel free to close this issue.
from pytorch.
I opened a PR to resolve this.
from pytorch.
Related Issues (20)
- ModuleNotFoundError: No module named 'torchvision' HOT 2
- torch.nn.ConvTranspose2d/torch.nn.ConvTranspose1d lacks a check for the parameter dilation in the model building process
- torch.nn.Linear does not check the value of the out_features parameter HOT 1
- nn.ConvTranspose2d does not check for parameter combinations resulting in convolution output with dimension 0
- torch.nn.BatchNorm1d missing check on values of parameters eps and momentum
- `torch.tensor()` can also be used with a list of the `float`, `complex` or `bool` type tensors which have a single element each HOT 1
- DISABLED test_deepcopy_after_parametrization_swap_True (__main__.TestNNParametrization) HOT 4
- DISABLED test_output_match___rmatmul___cpu_float32 (__main__.TORCH_NN_MODULECPU) HOT 4
- DISABLED test_output_match___rmatmul___cpu_float32 (__main__.TORCH_EXPORT_EXPORTEDPROGRAMCPU) HOT 2
- Importing Batch TorchText.Legacy versus Torchtext Failures HOT 1
- RuntimeError using nested tensor in Apple M1 device MPS HOT 1
- [Dynamo] `trials` argument is ignored when using TVM MetaSchedule
- [AOTI] timm_nfnet performs worse than Inductor due to less constant folding optimization
- Gumbel Vector Quantizer produces NaN when using with torch.compile HOT 4
- aot_function cannot handle index_add HOT 3
- profile not record at::meta_xxx time
- DISABLED test_serialization_parametrization_swap_True (__main__.TestNNParametrization) HOT 2
- DISABLED test_pointwise_bessel_y1_cuda (__main__.GPUTests) HOT 1
- nn.Parameter init position HOT 2
- Run existing eager DTensor tests under torch.compile
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pytorch.