MCPcopy Create free account
hub / github.com/THUYimingLi/BackdoorBox / parse

Function parse

core/attacks/ISSBA.py:77–80  ·  view source on GitHub ↗
(x)

Source from the content-addressed store, hash-verified

75 n (int): Number of repetitions x.
76 """
77 def parse(x):
78 if isinstance(x, collections.abc.Iterable):
79 return tuple(x)
80 return tuple(repeat(x, n))
81
82 return parse
83

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected