Skip to content

More intuitive constructor names for TypedVarInfo and UntypedVarInfo #862

@yebai

Description

@yebai

Current way to construct typed and untyped VarInfo:

# Untyped VarInfo 
vi = VarInfo()
model(rng, vi)
vi

# Typed VarInfo 
VarInfo(rng, model)

A more intuitive way would be

# Untyped VarInfo 
UntypedVarInfo(rng, model)


# Typed VarInfo 
TypedVarInfo(rng, model)

See, e.g.: https://github.com/TuringLang/DynamicPPL.jl/pull/861/files#diff-453c0f6cda4a57b858cf8a049aa4e0d01085433ca084c71982ff18da3684e324R38-R46

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions