MCPcopy Create free account
hub / github.com/densechen/CASS / trim_zeros

Function trim_zeros

tools/utils.py:233–246  ·  view source on GitHub ↗

It's common to have tensors larger than the available data and pad with zeros. This function removes rows that are all zeros. x: [rows, columns].

(x)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

compute_3d_matchesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected