Comments (4)
This probably needs a design doc
from pytorch.
From internal discussion: there is a preference towards avoiding actual serialization of dispatch-related args. We should store them as class properties instead -> query them from the cls
arg within _make_wrapper_subclass()
. This has a few benefits:
- No need to change the serialization format
- Decreased BC surface - serializing dispatch keys in particular is not something we want to do
We also discussed whether a default impl for subclasses that just works is valuable, as another option is to require a manual __reduce_ex__()
impl for each new subclass. @albanD has the opinion that it is valuable and should be present; there are already quite a few things to think about for subclasses.
from pytorch.
What are you using the serialization for? Is it just multiprocessing?
from pytorch.
The serialization is used for both multiprocessing and torch.load()
/ torch.save()
:
Lines 394 to 404 in 13462ec
from pytorch.
Related Issues (20)
- ERROR: Could not find a version that satisfies the requirement torch (from versions: none) HOT 1
- fatal: not a git repository: '.git' HOT 1
- `store_param_remainders` from Apex DistributedFusedAdam
- Unify async_save and sync_save in state_dict_saver from distributed checkpointing
- Segmentation fault when importing `sklearn.model_selection` HOT 2
- Should `torch.Size` convert np.ndarrays to lists of ints? HOT 1
- torch.topk results differ on CPU and CUDA
- Tensors of the same index must be on the same device and the same dtype except step tensors that can be CPU and float32 notwithstanding. HOT 4
- A UserWarning occurs after CBAM attention is added HOT 2
- DISABLED test_large_mmaped_weights_non_abi_compatible_cuda (__main__.AOTInductorTestNonABICompatibleCuda) HOT 1
- Tensor Parallel cannot work when tp mesh size is 1 HOT 2
- No way to config profiling scope in torch.autograd.profile
- Comparing dynamic shapes fails with KeyError HOT 1
- lacking checking for ConvTranspose's parameters when running with GPUs
- Migrate `CalculateSmallVectorDefaultInlinedElements` to constexpr Function for SmallVector HOT 1
- [BUG] torch.linalg.lstsq returning wrong result. HOT 3
- RuntimeError: grid_sampler_2d_cpu not implemented for Half HOT 3
- make_graphed_callables don't work with FSDP at all even on a simple network HOT 3
- Inconsistent gradients of Conv2d layers when training the same model using CPU and GPU HOT 1
- Tensor slicing reducing dimensionality of tensor HOT 4
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.