Home
last modified time | relevance | path

Searched refs:nn_module (Results 1 – 18 of 18) sorted by relevance

/external/pytorch/torch/jit/
D_recursive.py75 def make_stub_from_method(nn_module, method_name): argument
76 func = getattr(nn_module, method_name)
185 def infer_concrete_type_builder(nn_module, share_types=True): argument
192 concrete_type_builder = torch._C.ConcreteModuleTypeBuilder(type(nn_module))
193 if isinstance(nn_module, (torch.nn.ModuleDict)):
195 if isinstance(nn_module, (torch.nn.ModuleList, torch.nn.Sequential)):
197 if isinstance(nn_module, (torch.nn.ParameterList)):
199 if isinstance(nn_module, (torch.nn.ParameterDict)):
202 class_annotations = get_annotations(nn_module)
203 if isinstance(nn_module, (torch.ao.quantization.QuantWrapper)):
[all …]
D_check.py61 def check(self, nn_module: torch.nn.Module) -> None:
62 source_lines = inspect.getsource(nn_module.__class__.__init__)
77 self.class_level_annotations = list(nn_module.__annotations__.keys())
/external/pytorch/torch/_export/
Dnon_strict_utils.py115 nn_module, argument
137 combined_args = _combine_args(nn_module, args, kwargs)
154 code = nn_module.forward.__code__
189 original_signature = inspect.signature(nn_module.forward)
/external/pytorch/torch/_dynamo/variables/
D__init__.py88 from .nn_module import (
Dbuiltin.py272 from .nn_module import NNModuleVariable
1294 from .nn_module import NNModuleVariable
Dbuilder.py188 from .nn_module import (
/external/pytorch/torch/testing/_internal/
Djit_metaprogramming_utils.py590 def create_script_module(self, nn_module, constructor_args, *args, **kwargs): argument
609 self.submodule = nn_module(*constructor_args)
677 nn_module = kwargs['constructor']
679 nn_module = getattr(torch.nn, name)
681 if "FunctionalModule" in str(nn_module):
716 …args, mod = f_args_variable, create_script_module(None, nn_module, constructor_args, *f_args_varia…
Djit_utils.py627 def checkModule(self, nn_module, args): argument
632 sm = torch.jit.script(nn_module)
635 eager_out = nn_module(*args)
/external/pytorch/torch/_dynamo/
Dutils.py1949 nn_module = tracer.output_graph.nn_modules[node.target]
1950 if not is_lazy_module(nn_module):
1951 nn_module = copy.deepcopy(nn_module)
1955 nn_module(*args, **kwargs)
1957 nn_module = None
1960 real_value = run_node(tracer, node, args, kwargs, nn_module)
Dcodegen.py27 from .variables.nn_module import NNModuleVariable
Doutput_graph.py100 from .variables.nn_module import NNModuleVariable
Dsymbolic_convert.py121 from .variables.nn_module import NNModuleVariable, UnspecializedNNModuleVariable
/external/executorch/examples/qualcomm/scripts/
Dmobilebert_fine_tune.py286 nn_module=model,
/external/executorch/backends/qualcomm/utils/
Dutils.py434 nn_module: torch.nn.Module,
555 graph_module = torch.export.export(nn_module, sample_input).module()
/external/pytorch/test/functorch/
Dtest_control_flow.py415 nn_module = Nested()
418 return nn_module(
423 return nn_module(
487 nn_module = torch.nn.Linear(4, 4)
490 return nn_module(x)
493 return x * nn_module(x)
504 grads = torch.autograd.grad(result, (nn_module.weight,), grad_out)
509 (nn_module.weight,),
517 return torch.autograd.grad(result, (nn_module.weight,), grad_out)
/external/pytorch/torch/onnx/_internal/exporter/
D_core.py267 for name, nn_module in nn_module_stack.values():
269 nn_module_name = _get_qualified_module_name(nn_module)
/external/executorch/backends/qualcomm/tests/
Dtest_qnn_delegate.py1742 nn_module=module,
1789 nn_module=module,
1825 nn_module=module,
/external/pytorch/test/
Dtest_jit.py16076 nn_module = kwargs['constructor']
16078 nn_module = getattr(torch.nn, module_name)
16080 if "FunctionalModule" in str(nn_module):
16108 self.submodule = nn_module(*constructor_args)
16126 module = nn_module(*constructor_args)