MCPcopy Create free account
hub / github.com/PeizeSun/SparseR-CNN / get_pb_arg_floats

Function get_pb_arg_floats

detectron2/export/shared.py:179–181  ·  view source on GitHub ↗
(pb, arg_name, default_val)

Source from the content-addressed store, hash-verified

177
178
179def get_pb_arg_floats(pb, arg_name, default_val):
180 arg = get_pb_arg(pb, arg_name)
181 return list(map(float, arg.floats)) if arg is not None else default_val
182
183
184def get_pb_arg_ints(pb, arg_name, default_val):

Callers 1

get_outputs_converterMethod · 0.85

Calls 1

get_pb_argFunction · 0.85

Tested by

no test coverage detected