mirror of
https://github.com/wassname/ray.git
synced 2026-07-02 00:46:14 +08:00
[rllib]convert export format to lower case while validating (#4088)
* convert export format to lower case while validating * fix lint error
This commit is contained in:
@@ -217,11 +217,13 @@ class ExportFormat(object):
|
||||
Raises:
|
||||
ValueError if the format is unknown.
|
||||
"""
|
||||
for export_format in export_formats:
|
||||
if export_format not in [
|
||||
for i in range(len(export_formats)):
|
||||
export_formats[i] = export_formats[i].strip().lower()
|
||||
if export_formats[i] not in [
|
||||
ExportFormat.CHECKPOINT, ExportFormat.MODEL
|
||||
]:
|
||||
raise TuneError("Unsupported export format: " + export_format)
|
||||
raise TuneError("Unsupported export format: " +
|
||||
export_formats[i])
|
||||
|
||||
|
||||
class Trial(object):
|
||||
|
||||
Reference in New Issue
Block a user