MCPcopy 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

testSqueezeMethod · 0.95

Calls 2

tensor_squeezeMethod · 0.95
wrapMethod · 0.95

Tested by 1

testSqueezeMethod · 0.76