You need to sign in or sign up before continuing.
Unverified Commit f87255d5 authored by Ikko Eltociear Ashimine's avatar Ikko Eltociear Ashimine Committed by GitHub
Browse files

[fix] typo in flatten_params_wrapper.py (#1103)

heirarchy -> hierarchy
parent 4a98000c
...@@ -58,8 +58,8 @@ class FlatParameter(nn.Parameter): ...@@ -58,8 +58,8 @@ class FlatParameter(nn.Parameter):
raise ValueError("List items need to be Parameter types") raise ValueError("List items need to be Parameter types")
# Flattening involves (1) making a tensor flat (i.e. single dimensional) and (2) making a module # Flattening involves (1) making a tensor flat (i.e. single dimensional) and (2) making a module
# heirarchy flat (using a single tensor to replace a tree of tensors). Therefore, # hierarchy flat (using a single tensor to replace a tree of tensors). Therefore,
# adding back nesting and heirarchy is counter-productive. If nesting is encountered # adding back nesting and hierarchy is counter-productive. If nesting is encountered
# in the future, the reasonable thing to do is likely for the top level FlatParameter to # in the future, the reasonable thing to do is likely for the top level FlatParameter to
# absorb the nested one and keep the result flat, free from hierarchy. # absorb the nested one and keep the result flat, free from hierarchy.
if any(isinstance(p, FlatParameter) for p in params): if any(isinstance(p, FlatParameter) for p in params):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment