jupyterjazz pewh commited on
Commit
fa78e35
1 Parent(s): 80ffb06

Update custom_st.py to be compatible with Python 3.8 (#55)

Browse files

- Update custom_st.py to be compatible with Python 3.8 (e20f32ee20be7027372c7a14a95892829fa42ae9)


Co-authored-by: pewhpewh <[email protected]>

Files changed (1) hide show
  1. custom_st.py +1 -1
custom_st.py CHANGED
@@ -190,7 +190,7 @@ class Transformer(nn.Module):
190
  )
191
  return output
192
 
193
- def get_config_dict(self) -> dict[str, Any]:
194
  return {key: self.__dict__[key] for key in self.config_keys}
195
 
196
  def save(self, output_path: str, safe_serialization: bool = True) -> None:
 
190
  )
191
  return output
192
 
193
+ def get_config_dict(self) -> Dict[str, Any]:
194
  return {key: self.__dict__[key] for key in self.config_keys}
195
 
196
  def save(self, output_path: str, safe_serialization: bool = True) -> None: