mirror of
https://github.com/saymrwulf/pytorch.git
synced 2026-05-15 21:00:47 +00:00
Summary: All pretty minor. I avoided renaming `class DestructableMock` to `class DestructibleMock` and similar such symbol renames (in this PR). Pull Request resolved: https://github.com/pytorch/pytorch/pull/49815 Reviewed By: VitalyFedyunin Differential Revision: D25734507 Pulled By: mruberry fbshipit-source-id: bbe8874a99d047e9d9814bf92ea8c036a5c6a3fd
12 lines
357 B
C++
12 lines
357 B
C++
#include <c10/core/Stream.h>
|
|
|
|
namespace c10 {
|
|
|
|
// Not very parsable, but I don't know a good compact syntax for streams.
|
|
// Feel free to change this into something more compact if needed.
|
|
std::ostream& operator<<(std::ostream& stream, const Stream& s) {
|
|
stream << "stream " << s.id() << " on device " << s.device();
|
|
return stream;
|
|
}
|
|
|
|
} // namespace c10
|