Performance Sampler Configuration File
The following table describes the fields in the sampler_config_tf.proto file. Find the file in /amct_tensorflow/proto/sampler_config_tf.proto under the AMCT installation directory.
Parameter |
Required/Optional |
Type |
Field |
Description |
|---|---|---|---|---|
SamplerConfig |
- |
- |
- |
Performance sampler configuration. |
Optional |
AscendSamplerConfig |
ascend_sampler_config |
Performance sampler configuration for Ascend hardware. |
|
AscendSamplerConfig |
- |
- |
- |
Performance sampler configuration for Ascend hardware. |
Required |
String |
soc_version |
Ascend SoC version. Currently, only the following versions are supported:
|
|
Required |
String |
input_shape |
Input shape. |
|
Required |
DistributeConfig |
distribute_config |
Distribution configuration file. |
|
Required |
LogLevel |
log |
Log level of performance sampling. The options are null, debug, info, warning, and error.
|
|
Optional |
AtcConfig |
atc |
Passthrough configuration for ATC. |
|
AtcConfig |
- |
- |
- |
Passthrough configuration for ATC. |
Repeated |
MapFieldEntry |
options |
ATC option. |
|
MapFieldEntry |
- |
- |
- |
ATC option. |
Required |
String |
key |
Key of an ATC option. |
|
Required |
String |
value |
Value of an ATC option. |
|
DistributeConfig |
Required |
String |
ip |
IP address of the server where the NCS package is located. |
Required |
String |
port |
Port of the server where the NCS package is located. |
The following is an example of the performance sampler configuration file (sampler_config.cfg):
ascend_sampler_config: {
soc_version: "xxx"
input_shape: "input:32,224,224,3"
distribute_config:{
ip:'xx.xx.xx.xx'
port:'8000'
}
log: null
atc: {
options: [
{key: "input_format", value: "NHWC"},
{key: "mode", value: "1"}
]
}
}