Interpreter.Options

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

Phương thức công khai

Interpreter.Options
addDelegate(Người được uỷ quyền uỷ quyền)
Thêm Delegate để áp dụng trong quá trình tạo phiên dịch.
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