Skip to content

Instantly share code, notes, and snippets.

@kevkid
kevkid / gist:760bf3fde79b2bc55c9f6543a0343234
Last active September 9, 2020 02:44
Simple multimodal compact bilinear pooling
import torch
import numpy as np
seed = 2
torch.manual_seed(seed)
np.random.seed(seed)
x_img = torch.tensor([8,1,3,0,2])
x_txt = torch.tensor([ 0, 7, 10, 1, 1])
out_dim = 3