MCPcopy Index your code
hub / github.com/pytorch/pytorch / schema_check

Function schema_check

caffe2/python/schema.py:1295–1299  ·  view source on GitHub ↗
(schema, previous=None)

Source from the content-addressed store, hash-verified

1293
1294
1295def schema_check(schema, previous=None):
1296 record = as_record(schema)
1297 if previous is not None:
1298 assert equal_schemas(schema, previous)
1299 return record
1300
1301
1302def data_type_for_dtype(dtype):

Callers

nothing calls this directly

Calls 2

as_recordFunction · 0.85
equal_schemasFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…