Skip to content

Conversation

@goldsborough
Copy link
Contributor

@goldsborough goldsborough commented Jul 19, 2018

Added operator<< overloads for at::TensorOptions on request of @ebetica

Example output:

TensorOptions(dtype=Double, device=cpu, layout=Strided, requires_grad=false)

@ezyang @apaszke

Copy link
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.

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

@goldsborough
Copy link
Contributor Author

@pytorchbot retest this please

2 similar comments
@goldsborough
Copy link
Contributor Author

@pytorchbot retest this please

@goldsborough
Copy link
Contributor Author

@pytorchbot retest this please

@goldsborough goldsborough force-pushed the tensor-options-cout branch from da52faa to 2b320e4 Compare July 23, 2018 18:01
} // namespace at

inline std::ostream& operator<<(std::ostream& stream, at::Layout layout) {
return stream << ((layout == at::kStrided) ? "Strided" : "Sparse");

This comment was marked as off-topic.

Copy link
Contributor

@ezyang ezyang left a comment

Choose a reason for hiding this comment

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

Approved with nits fixed.

Copy link
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.

@goldsborough is landing this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

zdevito pushed a commit to zdevito/ATen that referenced this pull request Jul 23, 2018
Summary:
Added `operator<<` overloads for `at::TensorOptions` on request of ebetica

Example output:

```
TensorOptions(dtype=Double, device=cpu, layout=Strided, requires_grad=false)
```

ezyang apaszke
Pull Request resolved: pytorch/pytorch#9606

Differential Revision: D8925191

Pulled By: goldsborough

fbshipit-source-id: 0503bc2851268276e9561d918290bc723e437c9c
@goldsborough goldsborough deleted the tensor-options-cout branch July 23, 2018 22:51
jramseyer pushed a commit to jramseyer/pytorch that referenced this pull request Jul 30, 2018
Summary:
Added `operator<<` overloads for `at::TensorOptions` on request of ebetica

Example output:

```
TensorOptions(dtype=Double, device=cpu, layout=Strided, requires_grad=false)
```

ezyang apaszke
Pull Request resolved: pytorch#9606

Differential Revision: D8925191

Pulled By: goldsborough

fbshipit-source-id: 0503bc2851268276e9561d918290bc723e437c9c
goodlux pushed a commit to goodlux/pytorch that referenced this pull request Aug 15, 2018
Summary:
Added `operator<<` overloads for `at::TensorOptions` on request of ebetica

Example output:

```
TensorOptions(dtype=Double, device=cpu, layout=Strided, requires_grad=false)
```

ezyang apaszke
Pull Request resolved: pytorch#9606

Differential Revision: D8925191

Pulled By: goldsborough

fbshipit-source-id: 0503bc2851268276e9561d918290bc723e437c9c
@ezyang ezyang added the merged label Jun 26, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants