public class DJLCommonUtils extends Object
| 构造器和说明 |
|---|
DJLCommonUtils() |
| 限定符和类型 | 方法和说明 |
|---|---|
static boolean |
isNDArrayEmpty(ai.djl.ndarray.NDArray ndArray)
判断 NDArray 是否为空
|
static boolean |
isServingPropertiesExists(Path modelPath)
检查模型目录中是否存在 "serving.properties" 文件
|
public static boolean isServingPropertiesExists(Path modelPath)
modelPath - 模型目录路径public static boolean isNDArrayEmpty(ai.djl.ndarray.NDArray ndArray)
ndArray - Copyright © 2025. All rights reserved.