Skip to content

Commit

Permalink
Replacing deprecated logging.warn with logging.warning
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 612920076
Change-Id: I49605fc1ef4fa2b9f5cbd053baa2851fe7eb253f
  • Loading branch information
esonghori authored and copybara-github committed Mar 5, 2024
1 parent 927c8df commit 93db1bf
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions circuit_training/dreamplace/dreamplace_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,7 @@ def print_and_save_result(
logging.info('**************************************************\n')


def load_plc(
netlist_file, output_dir, init_placement=None
):
def load_plc(netlist_file, output_dir, init_placement=None):
"""Loads the netlist and initial plc."""
t = time.time()
plc = util.create_placement_cost(
Expand Down Expand Up @@ -110,7 +108,7 @@ def get_dreamplace_params(
else:
params.num_bins_x = 128
params.num_bins_y = 128
logging.warn(
logging.warning(
'Niether bin size or canvas size is provided, '
'use the default num_bins: 128x128.'
)
Expand Down

0 comments on commit 93db1bf

Please sign in to comment.