Skip to content
#

Deep learning

Deep learning is an AI function and subset of machine learning, used for processing large amounts of complex data.

Here are 40,506 public repositories matching this topic...

davidberard98
davidberard98 commented Dec 10, 2021

🚀 The feature, motivation and pitch

JIT serialization & freezing uses equality checks for things like common subexpression elimination (CSE).

Since aten::equal isn't implemented for sparse tensors, sparseTensorA.equals(sparseTensorB) fails, preventing CSE during freezing.

repro:

import torch

x = torch.rand((3, 4)).to_sparse()
y = torch.rand((3, 4))
print(torch.equal(x, 

Data science Python notebooks: Deep learning (TensorFlow, Theano, Caffe, Keras), scikit-learn, Kaggle, big data (Spark, Hadoop MapReduce, HDFS), matplotlib, pandas, NumPy, SciPy, Python essentials, AWS, and various command lines.

  • Updated Nov 4, 2021
  • Python
matthewdeng
matthewdeng commented Dec 6, 2021

Problem

When checkpointing a Torch model's state_dict, there may be some inconsistencies when saving/loading depending on whether the model is wrapped in DDP.

Proposal

Provide a utility method that always fetches the non-DDP version of the state_dict.

Without DDP:

model.state_dict()

With DDP:

model.module.state_dict()

Also see

[torch.nn.modu

Wikipedia
Wikipedia