View source on GitHub |
Auto-detects the model's file prefix if possible.
tfdf.inspector.detect_model_file_prefix(
model_path: str
) -> str
Raises ValueError if more than one prefix is detected or if the model directory is invalid.
Args | |
---|---|
model_path
|
Path to the model's directory. |
Returns | |
---|---|
File prefix of the model. |