yezdata commited on
Commit
ff42f17
·
verified ·
1 Parent(s): 14f6a86

update V1.5 README

Browse files
Files changed (1) hide show
  1. README.md +6 -1
README.md CHANGED
@@ -90,7 +90,12 @@ inputs = tokenizer("I am so happy you are here!", return_tensors="pt")
90
  model.eval()
91
  with torch.no_grad():
92
  # Automatically keeps Dropout active, even when in model.eval
93
- mc_logits = model.mc_forward(inputs['input_ids'], inputs['attention_mask'], n_samples=N_SAMPLES, max_batch_size=MAX_BATCH_SIZE)
 
 
 
 
 
94
 
95
  # Bayesian Post-processing
96
  all_probs = torch.sigmoid(mc_logits) # (n_samples, B, 28)
 
90
  model.eval()
91
  with torch.no_grad():
92
  # Automatically keeps Dropout active, even when in model.eval
93
+ mc_logits = model.mc_forward(
94
+ inputs['input_ids'],
95
+ inputs['attention_mask'],
96
+ n_samples=N_SAMPLES,
97
+ max_batch_size=MAX_BATCH_SIZE
98
+ )
99
 
100
  # Bayesian Post-processing
101
  all_probs = torch.sigmoid(mc_logits) # (n_samples, B, 28)