UMCU commited on
Commit
3f87fc8
·
verified ·
1 Parent(s): 2198535

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +2 -2
README.md CHANGED
@@ -90,9 +90,9 @@ def get_feature_vector(text):
90
  def reform(features, how='softmax'):
91
  if how == 'softmax':
92
  return torch.nn.functional.softmax(features)
93
- elif how = 'gumbel':
94
  return torch.nn.functional.gumbel_softmax(features)
95
- elif how = 'normalize':
96
  return torch.nn.functional.normalize(features.reshape(1,-1))
97
 
98
  feature_vector = reform(get_feature_vector(text))
 
90
  def reform(features, how='softmax'):
91
  if how == 'softmax':
92
  return torch.nn.functional.softmax(features)
93
+ elif how == 'gumbel':
94
  return torch.nn.functional.gumbel_softmax(features)
95
+ elif how == 'normalize':
96
  return torch.nn.functional.normalize(features.reshape(1,-1))
97
 
98
  feature_vector = reform(get_feature_vector(text))