Skip to content

Removes @default_floating_dtype decorator#27628

Closed
mruberry wants to merge 20 commits intomasterfrom
default_dtype_removal_p2
Closed

Removes @default_floating_dtype decorator#27628
mruberry wants to merge 20 commits intomasterfrom
default_dtype_removal_p2

Conversation

@mruberry
Copy link
Copy Markdown
Collaborator

@mruberry mruberry commented Oct 9, 2019

One fewer legacy decorator cluttering the test suite.

Functions relying on this decorator were updated or, in the case of test_sparse, the test suite was put back on double by default.

Note: this PR is blocked on #27599.

@pytorchbot pytorchbot added module: cpp-extensions Related to torch.utils.cpp_extension module: dataloader Related to torch.utils.data.DataLoader and Sampler oncall: distributed Add this issue/PR to distributed oncall triage queue module: nn Related to torch.nn module: sparse Related to torch.sparse module: tests Issues related to tests (not the torch.testing module) labels Oct 9, 2019
@mruberry
Copy link
Copy Markdown
Collaborator Author

@pytorchbot rebase this please.

@mruberry
Copy link
Copy Markdown
Collaborator Author

@pytorchbot rebase this please.

@mruberry
Copy link
Copy Markdown
Collaborator Author

@pytorchbot rebase this please.

@mruberry
Copy link
Copy Markdown
Collaborator Author

@pytorchbot rebase this please.

@pytorchbot pytorchbot added the oncall: jit Add this issue/PR to JIT oncall triage queue label Oct 11, 2019
Copy link
Copy Markdown
Contributor

@facebook-github-bot facebook-github-bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mruberry has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

@mruberry mruberry deleted the default_dtype_removal_p2 branch October 12, 2019 19:45
@facebook-github-bot
Copy link
Copy Markdown
Contributor

@mruberry merged this pull request in f6bda1e.

Comment thread test/test_dataloader.py
check_len(DataLoader(self.dataset, batch_size=2), 50)
check_len(DataLoader(self.dataset, batch_size=3), 34)

# FIXME: conversion from np.float64 to torch.DoubleTensor does not work
Copy link
Copy Markdown
Collaborator

@nairbv nairbv Nov 27, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mruberry I think my changes in PR #30486 will fix it, is there an issue filed somewhere tracking this bug?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@nairbv cool! I couldn't find an issue for this, although I thought we had one filed. If I come across it I'll let you know.

thiagocrepaldi pushed a commit to thiagocrepaldi/pytorch that referenced this pull request Feb 4, 2020
Summary:
One fewer legacy decorator cluttering the test suite.

Functions relying on this decorator were updated or, in the case of test_sparse, the test suite was put back on double by default.

Note: this PR is blocked on pytorch#27599.
Pull Request resolved: pytorch#27628

Differential Revision: D17896254

Pulled By: mruberry

fbshipit-source-id: 13d460301f50ef4af7a660372432108164c0de1f
laurentdupin pushed a commit to laurentdupin/pytorch that referenced this pull request Apr 24, 2026
Summary:
One fewer legacy decorator cluttering the test suite.

Functions relying on this decorator were updated or, in the case of test_sparse, the test suite was put back on double by default.

Note: this PR is blocked on pytorch#27599.
Pull Request resolved: pytorch#27628

Differential Revision: D17896254

Pulled By: mruberry

fbshipit-source-id: 13d460301f50ef4af7a660372432108164c0de1f
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Merged module: cpp-extensions Related to torch.utils.cpp_extension module: dataloader Related to torch.utils.data.DataLoader and Sampler module: nn Related to torch.nn module: sparse Related to torch.sparse module: tests Issues related to tests (not the torch.testing module) oncall: distributed Add this issue/PR to distributed oncall triage queue oncall: jit Add this issue/PR to JIT oncall triage queue

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants