Preparing the User

PyTorch/ONNX/TensorFlow/Caffe Scenario

Any user (root or non-root) is allowed to perform the AMCT installation procedure. This section uses a non-root user as an example.

  • To install the tool as the root user, skip this section.
  • To install the tool as an existing non-root user, ensure that the user has the read, write, and execute permissions on the $HOME directory.
  • To install the tool as a new non-root user, perform the following steps as the root user. The following uses a new non-root user as an example to execute the AMCT installation.
    1. Create an AMCT installation user and set the user's $HOME directory:
      useradd -d /home/username -m username
    2. Set the user password:
      passwd username
      username is the name of the AMCT installation user. The umask value of the user must be at least 0027.
      • To check the umask value, run the umask command.
      • To change the umask value, run the umask NewValue command.

TensorFlow, Ascend

Perform AMCT installation as the user who has installed CANN in the online inference environment. This section uses a non-root user as an example.

For details about the permission of a non-root user, see "Preparing Users" in the CANN Software Installation Guide.