Spaces:
Runtime error
Runtime error
Commit
·
fd58d47
1
Parent(s):
6f02ff7
stuff
Browse files
app.py
CHANGED
@@ -47,6 +47,7 @@ def respond(input):
|
|
47 |
|
48 |
out = model.out(model.decoder(outputs[:i].unsqueeze(0), e_outputs, src_mask, trg_mask))
|
49 |
out = torch.nn.functional.softmax(out, dim=-1).detach()
|
|
|
50 |
print(out[:, -1].data[0])
|
51 |
print(out[:, -1].data[0].shape)
|
52 |
print(np.sum(out[:, -1].data[0]))
|
|
|
47 |
|
48 |
out = model.out(model.decoder(outputs[:i].unsqueeze(0), e_outputs, src_mask, trg_mask))
|
49 |
out = torch.nn.functional.softmax(out, dim=-1).detach()
|
50 |
+
print(out.shape)
|
51 |
print(out[:, -1].data[0])
|
52 |
print(out[:, -1].data[0].shape)
|
53 |
print(np.sum(out[:, -1].data[0]))
|