Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions test/TorchSharpTest/TestTorchTensor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7167,15 +7167,15 @@ public void Float64HFFT2()
}

[Fact]
[TestOf(nameof(fft.hfft2))]
[TestOf(nameof(fft.hfftn))]
public void Float32HFFTN()
{
var input = torch.rand(new long[] { 5, 5, 5, 5 }, complex64);
var output = fft.hfft2(input);
var output = fft.hfftn(input);
Assert.Equal(new long[] { 5, 5, 5, 8 }, output.shape);
Assert.Equal(ScalarType.Float32, output.dtype);

var inverted = fft.ihfft2(output);
var inverted = fft.ihfftn(output);
Assert.Equal(new long[] { 5, 5, 5, 5 }, inverted.shape);
Assert.Equal(ScalarType.ComplexFloat32, inverted.dtype);
}
Expand Down