Searched refs:fx_pytree (Results 1 – 6 of 6) sorted by relevance
/aosp_15_r20/external/pytorch/test/inductor/ |
H A D | test_aot_inductor_utils.py | 11 import torch.fx._pytree as fx_pytree namespace 105 flat_inputs = fx_pytree.tree_flatten_spec((args, kwargs), in_spec)
|
/aosp_15_r20/external/executorch/exir/ |
H A D | tracer.py | 32 import torch.fx._pytree as fx_pytree namespace 752 args = fx_pytree.tree_flatten_spec(args, gm.in_spec) # type: ignore[assignment]
|
/aosp_15_r20/external/executorch/exir/program/ |
H A D | _program.py | 71 from torch.fx import _pytree as fx_pytree unknown 326 … args = fx_pytree.tree_flatten_spec(user_args, self.call_spec.in_spec) # type: ignore[assignment]
|
/aosp_15_r20/external/pytorch/torch/fx/ |
H A D | graph.py | 5 from . import _pytree as fx_pytree unknown 70 _register_custom_builtin('fx_pytree', 'import torch.fx._pytree as fx_pytree', fx_pytree)
|
/aosp_15_r20/external/pytorch/torch/export/ |
H A D | unflatten.py | 12 import torch.fx._pytree as fx_pytree namespace 670 return gm.graph.call_function(fx_pytree.tree_flatten_spec, (node, spec_node))
|
/aosp_15_r20/external/pytorch/test/ |
H A D | test_fx.py | 28 import torch.fx._pytree as fx_pytree namespace 3608 fx_pytree.register_pytree_flatten_spec(Foo, lambda x, _: [x.a, x.b])
|