mirror of
https://github.com/PaddlePaddle/PaddleClas.git
synced 2025-06-03 21:55:06 +08:00
Merge pull request #1492 from cuicheng01/release/2.3
[cherry-pick]update predictor.py
This commit is contained in:
commit
da3aefada0
@ -60,6 +60,7 @@ class Predictor(object):
|
||||
precision_mode=Config.Precision.Half
|
||||
if args.use_fp16 else Config.Precision.Float32,
|
||||
max_batch_size=args.batch_size,
|
||||
workspace_size=1 << 30,
|
||||
min_subgraph_size=30)
|
||||
|
||||
config.enable_memory_optim()
|
||||
|
Loading…
x
Reference in New Issue
Block a user