MCPcopy Create free account
hub / github.com/NVlabs/AutoDMP / forward

Method forward

dreamplace/ops/density_map/density_map.py:32–43  ·  view source on GitHub ↗
(pos, node_size_x, node_size_y, bin_center_x, bin_center_y,
                initial_density_map, xl, yl, xh, yh, bin_size_x, bin_size_y,
                num_movable_nodes, num_filler_nodes)

Source from the content-addressed store, hash-verified

30 """
31 @staticmethod
32 def forward(pos, node_size_x, node_size_y, bin_center_x, bin_center_y,
33 initial_density_map, xl, yl, xh, yh, bin_size_x, bin_size_y,
34 num_movable_nodes, num_filler_nodes):
35 if pos.is_cuda:
36 func = density_map_cuda.forward
37 else:
38 func = density_map_cpp.forward
39 output = func(pos.view(pos.numel()), node_size_x, node_size_y,
40 bin_center_x, bin_center_y, initial_density_map, xl, yl,
41 xh, yh, bin_size_x, bin_size_y, num_movable_nodes,
42 num_filler_nodes)
43 return output
44
45
46class DensityMap(object):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected