MCPcopy Create free account
hub / github.com/MotrixLab/AiOS / forward

Method forward

models/aios/backbones/backbone.py:122–131  ·  view source on GitHub ↗
(self, tensor_list: NestedTensor)

Source from the content-addressed store, hash-verified

120 super().__init__(backbone, position_embedding)
121
122 def forward(self, tensor_list: NestedTensor):
123 xs = self[0](tensor_list)
124 out: List[NestedTensor] = []
125 pos = []
126 for name, x in xs.items():
127 out.append(x)
128
129 pos.append(self[1](x).to(x.tensors.dtype))
130
131 return out, pos
132
133
134def build_backbone(args):

Callers

nothing calls this directly

Calls 2

itemsMethod · 0.45
toMethod · 0.45

Tested by

no test coverage detected