(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)
| 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 | |
| 46 | class DensityMap(object): |
nothing calls this directly
no outgoing calls
no test coverage detected