Open sflc6 opened 4 years ago
In particular, see here: https://github.com/heronsystems/adeptRL/blob/2d8b0d3be9d0530f0df55d7f4b919177f8767388/adept/network/modular_network.py#L216-L238
In the following if-statement:
if dim in head_submodules: continue
type(dim) == int; however, keys of head_submodules are guaranteed to be str due to the line head_submodules[str(dim)] = submod. This suggests that the above if-statement will never continue. Thoughts on this?
type(dim) == int
head_submodules
str
head_submodules[str(dim)] = submod
Perhaps we want dim = str(len(shape)) on line 220?
dim = str(len(shape))
In particular, see here: https://github.com/heronsystems/adeptRL/blob/2d8b0d3be9d0530f0df55d7f4b919177f8767388/adept/network/modular_network.py#L216-L238
In the following if-statement:
type(dim) == int
; however, keys ofhead_submodules
are guaranteed to bestr
due to the linehead_submodules[str(dim)] = submod
. This suggests that the above if-statement will never continue. Thoughts on this?