File size: 890 Bytes
cadeb4d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#!/bin/bash - 
#===============================================================================
#
#          FILE: infer.sh
# 
#         USAGE: ./infer.sh 
# 
#   DESCRIPTION: 
# 
#       OPTIONS: ---
#  REQUIREMENTS: ---
#          BUGS: ---
#         NOTES: ---
#        AUTHOR: fuliucansheng (fuliu), fuliucansheng@gmail.com
#  ORGANIZATION: 
#       CREATED: 05/18/2023 22:50
#      REVISION:  ---
#===============================================================================

set -o nounset                              # Treat unset variables as an error

InputFile=$_InputFilePath_
OutputFile=$_OutputFilePath_

pip --no-cache-dir install --upgrade git+https://dev.azure.com/decui/_git/unitorch@dlis --user


unitorch-infer $1 --test_file $InputFile --output_file $OutputFile --test_batch_size $2

if [ $? -ne 0 ];then
    touch $_CompleteFilePath_
    touch $_ErrorsFilePath_
fi