Skip to content

Commit

Permalink
Change default device to CPU to avoid crashing.
Browse files Browse the repository at this point in the history
  • Loading branch information
linyiLYi committed Nov 5, 2022
1 parent f95a178 commit 6952954
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ class MainActivity : AppCompatActivity() {
private lateinit var surfaceView: SurfaceView

/** 修改默认计算设备:CPU、GPU、NNAPI(AI加速器) */
private var device = Device.NNAPI
private var device = Device.CPU

/** 定义几个计数器 */
private var forwardheadCounter = 0
Expand Down

0 comments on commit 6952954

Please sign in to comment.