← 返回卡片

原书出处

Causal AI

核验版本的摘录快照 · 导入于 2026-11-14T08:43:24.528Z

def proposal_given_prince(): #2 prince = encode(PRINCE_STORY) #2 king = pyro.sample( #3 "King", #3 TransformerModelDistribution(prince2king_model, prince) #3 ) #3 king_and_prince = torch.cat([king, prince], dim=1) #3 kingdom = pyro.sample( #4 "Kingdom", #4 TransformerModelDistribution(kingdom_model, king_and_prince) #4 ) #4 vignette = (convert_to_text(king) + #5 PRINCE_STORY + #5 convert_to_text(kingdom)) #5 return vignette #1 We condition the model on this value of the Prince variable.

此预览只包含定位所需的摘录和上下文。

原书定位详情

来源:a19c7933-4eda-4176-aebd-30fe7e1ad292

正文位置:extracted/Causal AI/_epub-src/OEBPS/Text/chapter-13.xhtml

EPUB SHA-256:e55e7dc9d7966ea79311f2bc8d5bef7371a6dbb65240f11a2b3e44180b934e72