mirror of
https://github.com/nerfstudio-project/nerfstudio.git
synced 2026-12-06 15:59:16 +08:00
fixing documentation for unfinished module ordering function
This commit is contained in:
1 parent
f17192a93e
commit
c7911281c3
1 file changed
+9
-14
+9
-14
@@ -15,11 +15,7 @@ class GraphInputs:
|
|||||||
|
|
||||||
|
|
||||||
class Graph(nn.Module):
|
class Graph(nn.Module):
|
||||||
"""_summary_
|
"""_summary_ """
|
||||||
|
|
||||||
Args:
|
|
||||||
nn (_type_): _description_
|
|
||||||
"""
|
|
||||||
|
|
||||||
def __init__(self, modules_config: dict) -> None:
|
def __init__(self, modules_config: dict) -> None:
|
||||||
super().__init__()
|
super().__init__()
|
||||||
@@ -34,17 +30,16 @@ class Graph(nn.Module):
|
|||||||
module_dict["meta_data"]["in_dim"] = in_dim
|
module_dict["meta_data"]["in_dim"] = in_dim
|
||||||
self.modules[module_name] = module(**module_dict["meta_data"])
|
self.modules[module_name] = module(**module_dict["meta_data"])
|
||||||
|
|
||||||
def get_module_order(self, modules_config: list):
|
def get_module_order(self, modules_config: dict) -> list:
|
||||||
"""Generates a graph to determine the order in which the graph should execute
|
"""Generates a graph to determine the order in which the modules should execute
|
||||||
|
|
||||||
Args:
|
Args:
|
||||||
modules_config (list): _description_
|
modules_config (dict): module definitions that make up the network
|
||||||
|
|
||||||
Returns:
|
Returns:
|
||||||
_type_: _description_
|
list: ordering of the module names that should be executed
|
||||||
"""
|
"""
|
||||||
# raise NotImplementedError
|
raise NotImplementedError
|
||||||
return modules_config
|
|
||||||
|
|
||||||
def forward(self, x):
|
def forward(self, x):
|
||||||
"""_summary_
|
"""_summary_
|
||||||
@@ -52,6 +47,6 @@ class Graph(nn.Module):
|
|||||||
Args:
|
Args:
|
||||||
x (_type_): _description_
|
x (_type_): _description_
|
||||||
"""
|
"""
|
||||||
# raise NotImplementedError
|
# for name in self.module_order:
|
||||||
for name in self.module_order:
|
# x = self.modules[name](x)
|
||||||
x = self.modules[name](x)
|
raise NotImplementedError
|
||||||
Reference in new issue
Block a user