debisoft commited on
Commit
0857505
·
1 Parent(s): b203d27
Files changed (1) hide show
  1. app.py +1 -0
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()