Omnibus commited on
Commit
2d13de9
·
verified ·
1 Parent(s): ee99dde

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -19,7 +19,8 @@ def load_bin(model_name,file_name):
19
  print("#######")
20
  print(dir(r))
21
  torch.set_printoptions(profile="full")
22
- result=torch.frombuffer(r.content,dtype=torch.get_default_dtype(),offset=1)
 
23
  print(dir(result))
24
  #result = torch.frombuffer(io.BytesIO(),dtype=torch.get_default_dtype())
25
  #result = torch.from_numpy(r.content)
 
19
  print("#######")
20
  print(dir(r))
21
  torch.set_printoptions(profile="full")
22
+ #result=torch.frombuffer(r.content,dtype=torch.get_default_dtype(),offset=1)
23
+ result=torch.frombuffer(r.content,dtype=torch.float32,offset=1)
24
  print(dir(result))
25
  #result = torch.frombuffer(io.BytesIO(),dtype=torch.get_default_dtype())
26
  #result = torch.from_numpy(r.content)