Skip to content

Commit 36dcd2c

Browse files
committed
Style transfer MPS working for some weird reason. Come back to here.
1 parent 29b4c11 commit 36dcd2c

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

demos/video/style-transfer/style_transfer.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,8 @@ torch::indexing::Slice slice() {
8989
}
9090

9191
torch::Tensor test_channel(torch::Tensor& input) {
92-
std::cout << "Input sizes: " << input.sizes() << std::endl;
92+
std::cout << "Input device: " << input.device() << std::endl;
93+
9394
int channel_to_disable = 0;
9495
// auto img = input.select(1, channel_to_disable).zero();
9596
auto output = input.clone();

0 commit comments

Comments
 (0)