I got two arrays :
A
B
Array A
contains a batch of RGB images, with shape:
[batch, Width, Height, 3]
whereas Array B
contains coefficients needed for a "transformation-like" operation on images, with shape:
[batch, 4, 4, 3]
To put it simply, the operation for a single image is a multiplication that outputs an environment map (normalMap * Coefficients
).
The output I want should hold shape:
[batch, Width, Height, 3]
I tried using torch.bmm
but failed. Is this possible somehow?
torch.nn.functional.conv2d
? – Bleier