MCPcopy Create free account
hub / github.com/OpenNMT/CTranslate2 / raise_unsupported

Function raise_unsupported

python/ctranslate2/converters/utils.py:107–114  ·  view source on GitHub ↗
(reasons)

Source from the content-addressed store, hash-verified

105
106
107def raise_unsupported(reasons):
108 message = (
109 "The model you are trying to convert is not supported by CTranslate2. "
110 "We identified the following reasons:\n"
111 )
112 for reason in reasons:
113 message += "\n- " + reason
114 raise ValueError(message)
115
116
117class ConfigurationChecker:

Callers 1

validateMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected