Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use identity model
Browse files Browse the repository at this point in the history
Tabrizian committed Sep 6, 2023
1 parent 66fdb7a commit 1e09252
Showing 2 changed files with 44 additions and 3 deletions.
43 changes: 43 additions & 0 deletions qa/L0_request_cancellation/models/model/config.pbtxt
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
# Copyright 2023, NVIDIA CORPORATION & AFFILIATES. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
# * Redistributions of source code must retain the above copyright
# notice, this list of conditions and the following disclaimer.
# * Redistributions in binary form must reproduce the above copyright
# notice, this list of conditions and the following disclaimer in the
# documentation and/or other materials provided with the distribution.
# * Neither the name of NVIDIA CORPORATION nor the names of its
# contributors may be used to endorse or promote products derived
# from this software without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS ``AS IS'' AND ANY
# EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
# PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
# CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
# PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
# OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

backend: "identity"
name: "model"
max_batch_size: 64
input {
name: "INPUT0"
data_type: TYPE_INT32
dims: 1000
}
output {
name: "OUTPUT0"
data_type: TYPE_INT32
dims: 1000
}
instance_group {
kind: KIND_CPU
}

4 changes: 1 addition & 3 deletions qa/L0_request_cancellation/test.sh
Original file line number Diff line number Diff line change
@@ -41,9 +41,7 @@ DATADIR=${DATADIR:="/data/inferenceserver/${REPO_VERSION}"}

RET=0

mkdir -p models/
cp -r $DATADIR/qa_identity_model_repository/libtorch_nobatch_zero_1_bool models/model
sed -i 's/name:.*/name: "model"/' models/model/config.pbtxt
mkdir -p models/model/1

SERVER_LOG=server.log
LD_LIBRARY_PATH=/opt/tritonserver/lib:$LD_LIBRARY_PATH ./request_cancellation_test > $SERVER_LOG

0 comments on commit 1e09252

Please sign in to comment.