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

Function _join_field_name

caffe2/python/schema.py:37–45  ·  view source on GitHub ↗
(prefix, suffix)

Source from the content-addressed store, hash-verified

35
36
37def _join_field_name(prefix, suffix):
38 if prefix and suffix:
39 return '{}{}{}'.format(prefix, FIELD_SEPARATOR, suffix)
40 elif prefix:
41 return prefix
42 elif suffix:
43 return suffix
44 else:
45 return ''
46
47
48def _normalize_field(field_or_type_or_blob, keep_blobs=True):

Callers 3

field_namesMethod · 0.85
field_namesMethod · 0.85
field_namesMethod · 0.85

Calls 1

formatMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…