Skip to content

Conversation

@yf225
Copy link
Contributor

@yf225 yf225 commented Nov 1, 2019

Stack from ghstack:

This PR is BC-breaking in the following way:

Previously, C++ torch::tensor with an integer literal or a braced-init-list of
integer literals produces a tensor with dtype being the type of the integer literal(s). After this PR, it always produces a tensor of dtype at::kLong (aka. int64_t), matching Python torch.tensor behavior.

Differential Revision: D18307248

yf225 pushed a commit that referenced this pull request Nov 1, 2019
@yf225 yf225 added module: bc-breaking Related to a BC-breaking change module: cpp Related to C++ API labels Nov 1, 2019
@yf225 yf225 requested a review from zou3519 November 1, 2019 22:10
yf225 pushed a commit that referenced this pull request Nov 4, 2019
…is not specified"


This PR is BC-breaking in the following way:

Previously, C++ `torch::tensor` with an integer literal or a braced-init-list of
integer literals produces a tensor with dtype being the type of the integer literal(s). After this PR, it always produces a tensor of dtype `at::kLong` (aka. int64_t), matching Python `torch.tensor` behavior.

[ghstack-poisoned]
@kostmo
Copy link
Member

kostmo commented Nov 4, 2019

CircleCI build failures summary

As of commit 0b6e696:

  • 1/2 recognized as flaky
  • 1/2 broken upstream. You may want to rebase on the latest viable branch.
  • 1/2 failures introduced in this PR

Here are the reasons each build failed.


This comment was automatically generated by Dr. CI.
Follow this link to opt-out of these comments for your Pull Requests.

Please report bugs/suggestions on the GitHub issue tracker.

This comment has been revised 1 time(s).

@facebook-github-bot
Copy link
Contributor

@yf225 merged this pull request in 026fd36.

@facebook-github-bot facebook-github-bot deleted the gh/yf225/24/head branch November 8, 2019 15:16
yf225 pushed a commit that referenced this pull request Nov 11, 2019
@yf225 yf225 mentioned this pull request Nov 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Merged module: bc-breaking Related to a BC-breaking change module: cpp Related to C++ API

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants