I have two PyTorch tensors A with shape [30, 11, 32, 64] and B with shape [30, 11, 89]. My goal is to create a tensor C with shape [30, 11, 89, 32, 64] where the tensor A should be extended and replicated in the third dimension and then be multiplied with tensor B at the appropriate dimensions.
How can this be accomplished in PyTorch?