Update 1/model.py
This commit is contained in:
parent
7041fd52b8
commit
c21cdfaff2
10
1/model.py
10
1/model.py
@ -6,11 +6,6 @@ import string
|
||||
|
||||
class TritonPythonModel:
|
||||
def initialize(self, args):
|
||||
"""
|
||||
모델이 로드될 때 딱 한 번만 호출됩니다.
|
||||
`initialize` 함수를 구현하는 것은 선택 사항입니다. 이 함수를 통해 모델은
|
||||
이 모델과 관련된 모든 상태를 초기화할 수 있습니다.
|
||||
"""
|
||||
self.logger = pb_utils.Logger
|
||||
|
||||
self.model_name = args["model_name"]
|
||||
@ -42,9 +37,4 @@ class TritonPythonModel:
|
||||
return responses
|
||||
|
||||
def finalize(self):
|
||||
"""
|
||||
모델 실행이 완료된 후 Triton 서버가 종료될 때 한 번 호출되는 함수입니다.
|
||||
`finalize` 함수를 구현하는 것은 선택 사항입니다. 이 함수를 통해 모델은
|
||||
종료 전에 필요한 모든 정리 작업을 수행할 수 있습니다.
|
||||
"""
|
||||
pass
|
||||
Loading…
Reference in New Issue
Block a user