MCPcopy
hub / github.com/ray-project/ray / convert

Method convert

python/ray/dashboard/modules/job/cli_utils.py:22–26  ·  view source on GitHub ↗
(self, value, param, ctx)

Source from the content-addressed store, hash-verified

20 name = "BOOL | TEXT"
21
22 def convert(self, value, param, ctx):
23 if isinstance(value, bool):
24 return value
25 else:
26 return bool_cast(value)
27
28
29def add_common_job_options(func):

Callers 15

fetch_imagesMethod · 0.80
_read_streamMethod · 0.80
_apply_preprocess_pilMethod · 0.80
__call__Method · 0.80
load_imageFunction · 0.80
__call__Method · 0.80
process_rowMethod · 0.80
decode_imagesFunction · 0.80
preprocessFunction · 0.80
decodeFunction · 0.80
deserialize_imageFunction · 0.80

Calls 1

bool_castFunction · 0.85

Tested by

no test coverage detected