Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/OpenDriveLab/TCP
/ output_shape
Method
output_shape
roach/models/torch_util.py:98–104 ·
view source on GitHub ↗
(self, inshape)
Source
from the content-addressed store, hash-verified
96
return
x
97
98
def
output_shape(self, inshape):
99
c, h, w = inshape
100
assert c == self.inchan
101
if
getattr(self,
"pool"
, True):
102
return
(self.outchan, (h + 1) // 2, (w + 1) // 2)
103
else
:
104
return
(self.outchan, h, w)
Callers
1
__init__
Method · 0.95
Calls
no outgoing calls
Tested by
no test coverage detected