Spaces:
Runtime error
Runtime error
arr
Browse files
app.py
CHANGED
|
@@ -227,6 +227,7 @@ def greet(input):
|
|
| 227 |
#ctx = F.one_hot(torch.randint(0, 5, (32,)), 5).to(device=device).float()
|
| 228 |
|
| 229 |
# hero, non-hero, food, spell, side-facing
|
|
|
|
| 230 |
shape = (32, 5)
|
| 231 |
mtx_2d = np.ones(shape) * one_hot_enc
|
| 232 |
ctx = mtx_2d.to(device=device).float()
|
|
|
|
| 227 |
#ctx = F.one_hot(torch.randint(0, 5, (32,)), 5).to(device=device).float()
|
| 228 |
|
| 229 |
# hero, non-hero, food, spell, side-facing
|
| 230 |
+
one_hot_enc = np.array([1, 0, 0, 0, 0])
|
| 231 |
shape = (32, 5)
|
| 232 |
mtx_2d = np.ones(shape) * one_hot_enc
|
| 233 |
ctx = mtx_2d.to(device=device).float()
|