MCPcopy Create free account
hub / github.com/drinkingcoder/NeuralMarker / expand_dim

Function expand_dim

core/utils/utils.py:201–204  ·  view source on GitHub ↗
(tensor, dim, desired_dim_len)

Source from the content-addressed store, hash-verified

199 return fundamental_matrix.astype(np.float32)
200
201def expand_dim(tensor, dim, desired_dim_len):
202 sz = list(tensor.size())
203 sz[dim] = desired_dim_len
204 return tensor.expand(tuple(sz))
205
206
207def reverse_mapping(flow, grid_map):

Callers 2

forwardMethod · 0.90
forwardMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected