MCPcopy
hub / github.com/modelscope/ms-swift / choice

Method choice

swift/ui/base.py:185–191  ·  view source on GitHub ↗

Get choice by elem_id

(cls, elem_id)

Source from the content-addressed store, hash-verified

183
184 @classmethod
185 def choice(cls, elem_id):
186 """Get choice by elem_id"""
187 for sub_ui in BaseUI.sub_ui:
188 _choice = sub_ui.choice(elem_id)
189 if _choice:
190 return _choice
191 return cls.choice_dict.get(elem_id, [])
192
193 @classmethod
194 def default(cls, elem_id):

Callers 15

run_datasetFunction · 0.80
test_model_archFunction · 0.80
preprocessMethod · 0.80
preprocessMethod · 0.80
preprocessMethod · 0.80
preprocessMethod · 0.80
preprocessMethod · 0.80
preprocessMethod · 0.80
preprocessMethod · 0.80
preprocessMethod · 0.80
switch_active_layersMethod · 0.80

Calls

no outgoing calls

Tested by 1

test_model_archFunction · 0.64