public void setAccelerator(String accelerator) {
        this.accelerator = accelerator;
    }
<p>
The target accelerator for the model. Currently, Amazon Lookout for Vision only supports NVIDIA (Nvidia graphics
processing unit) and CPU accelerators. If you specify NVIDIA as an accelerator, you must also specify the
<code>gpu-code</code>, <code>trt-ver</code>, and <code>cuda-ver</code> compiler options. If you don't specify an
accelerator, Lookout for Vision uses the CPU for compilation and we highly recommend that you use the
<a>GreengrassConfiguration$CompilerOptions</a> field. For example, you can use the following compiler options for
CPU:
</p>
<ul>
<li>
<p>
<code>mcpu</code>: CPU micro-architecture. For example, <code>{'mcpu': 'skylake-avx512'}</code>
</p>
</li>
<li>
<p>
<code>mattr</code>: CPU flags. For example, <code>{'mattr': ['+neon', '+vfpv4']}</code>
</p>
</li>
</ul>

@param accelerator
       The target accelerator for the model. Currently, Amazon Lookout for Vision only supports NVIDIA (Nvidia
       graphics processing unit) and CPU accelerators. If you specify NVIDIA as an accelerator, you must also
       specify the <code>gpu-code</code>, <code>trt-ver</code>, and <code>cuda-ver</code> compiler options. If
       you don't specify an accelerator, Lookout for Vision uses the CPU for compilation and we highly recommend
       that you use the <a>GreengrassConfiguration$CompilerOptions</a> field. For example, you can use the
       following compiler options for CPU: </p>
       <ul>
       <li>
       <p>
       <code>mcpu</code>: CPU micro-architecture. For example, <code>{'mcpu': 'skylake-avx512'}</code>
       </p>
       </li>
       <li>
       <p>
       <code>mattr</code>: CPU flags. For example, <code>{'mattr': ['+neon', '+vfpv4']}</code>
       </p>
       </li>
@see TargetPlatformAccelerator
aws-java-sdk-lookoutforvision/src/main/java/com/amazonaws/services/lookoutforvision/model/TargetPlatform.java