lớp tĩnh công khai Interpreter.Options
Một lớp tuỳ chọn để kiểm soát hành vi của trình thông dịch trong thời gian chạy.
Công trình công cộng
Tuỳ chọn()
|
|
Tuỳ chọn(các tuỳ chọn InterpreterApi.Options)
|
Phương thức công khai
Interpreter.Options | |
Interpreter.Options |
addDelegateFactory(DelegateFactoryDelegateFactory)
Thêm
DelegateFactory sẽ được gọi để áp dụng Delegate đã tạo trong quá trình tạo trình phiên dịch. |
Interpreter.Options |
setAllowBufferHandleOutput(boolean allow)
Nâng cao: Đặt nếu đầu ra tay cầm vùng đệm được cho phép.
|
Interpreter.Options |
setAllowFp16PrecisionForFp32(boolean allow)
Phương thức này không còn được dùng nữa. Ưu tiên sử dụng NnApiDelegate.Options#setAllowFp16(boolean
enabled).
|
Interpreter.Options |
setCancellable(boolean allow)
Nâng cao: Đặt xem có thể huỷ phiên dịch hay không.
|
Interpreter.Options |
setNumThreads(int numThreads)
Thiết lập số lượng luồng cần dùng cho các hoạt động hỗ tr |