Open chongxi opened 3 months ago
def get_bert_inf(phones, word2ph, norm_text, language): language=language.replace("all_","") if language == "zh": bert = get_bert_feature(norm_text, word2ph).to(device)#.to(dtype) else: bert = torch.zeros( (1024, len(phones)), dtype=torch.float16 if is_half == True else torch.float32, ).to(device) return bert
According to this code, bert is only calculated when then language is Chinese?
Yes
According to this code, bert is only calculated when then language is Chinese?