Skip to content

Commit

Permalink
Updates on djl_converter (#3187)
Browse files Browse the repository at this point in the history
* Updates on djl_converter

* Update
  • Loading branch information
xyang16 authored May 14, 2024
1 parent 98c856d commit e62674c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,6 @@ def converter_args():
if args.output_dir is None:
args.output_dir = "."

if not os.path.exists(args.output_dir):
raise ValueError(f"Invalid output directory: {args.output_dir}.")

return args


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
"ForSequenceClassification": "text-classification",
"ForMultipleChoice": "text-classification",
"ForMaskedLM": "fill-mask",
"BertModel": "sentence-similarity",
}
SUPPORTED_TASKS = {
"fill-mask": FillMaskConverter(),
Expand Down

0 comments on commit e62674c

Please sign in to comment.