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

Method plot

dreamplace/BasicPlace.py:1323–1338  ·  view source on GitHub ↗

@brief plot layout @param params parameters @param placedb placement database @param iteration optimization step @param pos locations of cells

(self, params, placedb, iteration, pos)

Source from the content-addressed store, hash-verified

1321 return hpwl, overflow, max_density
1322
1323 def plot(self, params, placedb, iteration, pos):
1324 """
1325 @brief plot layout
1326 @param params parameters
1327 @param placedb placement database
1328 @param iteration optimization step
1329 @param pos locations of cells
1330 """
1331 tt = time.time()
1332 path = "%s/%s" % (params.result_dir, params.design_name())
1333 figname = "%s/plot/iter%s.png" % (path, "{:04}".format(iteration))
1334 os.system("mkdir -p %s" % (os.path.dirname(figname)))
1335 if isinstance(pos, np.ndarray):
1336 pos = torch.from_numpy(pos)
1337 self.op_collections.draw_place_op(pos, figname)
1338 logging.info("plotting to %s takes %.3f seconds" % (figname, time.time() - tt))
1339
1340 def dump(self, params, placedb, pos, filename):
1341 """

Callers 15

finished_runs_over_timeFunction · 0.80
interactive_HBS_plotFunction · 0.80
arif.pyFile · 0.80
one_descent_stepMethod · 0.80
__call__Method · 0.80
plot_lineFunction · 0.80
plot_coordsFunction · 0.80
plot_boundsFunction · 0.80
add_originFunction · 0.80
plot_lineFunction · 0.80

Calls 1

design_nameMethod · 0.80

Tested by

no test coverage detected