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

Install AMCT using the user account that deploys the CANN software package in the online inference environment. This section uses a non-root user as an example.

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