Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/BabitMF/bmf
/ squeeze
Method
squeeze
bmf/hmp/java/src/main/java/com/bytedance/hmp/Tensor.java:152–156 ·
view source on GitHub ↗
(long dim)
Source
from the content-addressed store, hash-verified
150
}
151
152
public
Tensor squeeze(long dim)
153
{
154
long nptr = Api.tensor_squeeze(ptr, dim);
155
return
wrap(nptr, true);
156
}
157
158
public
Tensor unsqueeze(long dim)
159
{
Callers
1
testSqueeze
Method · 0.95
Calls
2
tensor_squeeze
Method · 0.95
wrap
Method · 0.95
Tested by
1
testSqueeze
Method · 0.76