Skip to content

Commit

Permalink
device output
Browse files Browse the repository at this point in the history
  • Loading branch information
matsen committed Jun 6, 2024
1 parent 5f90930 commit 248068e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions netam/framework.py
Original file line number Diff line number Diff line change
Expand Up @@ -360,6 +360,10 @@ def load_pcp_df(pcp_df_path_gz, sample_count=None, chosen_v_families=None):

def add_shm_model_outputs_to_pcp_df(pcp_df, crepe_prefix, device=None):
crepe = load_crepe(crepe_prefix, device=device)
print(f"supposed to be using {device}")
# get device of crepe.model
actual_device = next(crepe.model.parameters()).device
print(f"actual device is {actual_device}")
rates, csps = trimmed_shm_model_outputs_of_crepe(crepe, pcp_df["parent"])
pcp_df["rates"] = rates
pcp_df["subs_probs"] = csps
Expand Down

0 comments on commit 248068e

Please sign in to comment.