Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/pytorch/pytorch
/ attach_metadata_to_scalars
Function
attach_metadata_to_scalars
caffe2/python/schema.py:1316–1318 ·
view source on GitHub ↗
(field, metadata)
Source
from the content-addressed store, hash-verified
1314
1315
1316
def
attach_metadata_to_scalars(field, metadata):
1317
for
f in field.all_scalars():
1318
f.set_metadata(metadata)
Callers
nothing calls this directly
Calls
2
all_scalars
Method · 0.45
set_metadata
Method · 0.45
Tested by
no test coverage detected
Used in the wild
real call sites across dependent graphs
searching dependent graphs…