MCPcopy Create free account
hub / github.com/pytorch/pytorch / dict_to_features

Function dict_to_features

scripts/release_notes/common.py:129–138  ·  view source on GitHub ↗
(dct)

Source from the content-addressed store, hash-verified

127
128
129def dict_to_features(dct):
130 return Features(
131 title=dct["title"],
132 body=dct["body"],
133 pr_number=dct["pr_number"],
134 files_changed=dct["files_changed"],
135 labels=dct["labels"],
136 author=dct["author"],
137 accepters=tuple(dct["accepters"]),
138 )
139
140
141def features_to_dict(features):

Callers 1

read_from_diskMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…