Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/VisionXLab/OF-Diff
/ forward
Method
forward
ldm/modules/midas/midas/vit.py:51–53 ·
view source on GitHub ↗
(self, x)
Source
from the content-addressed store, hash-verified
49
self.dim1 = dim1
50
51
def
forward(self, x):
52
x = x.transpose(self.dim0, self.dim1)
53
return
x
54
55
56
def
forward_vit(pretrained, x):
Callers
nothing calls this directly
Calls
no outgoing calls
Tested by
no test coverage detected