How to create Keras's encoder-decoder model's endpoint?

0

Hi,
I'm just started to use sagemaker.
Now, I'm testing encoder-decoder model for regression.
The model is coded in Sagemaker's script mode, and finished learning on a Jupyter notebook.

The learning code is written by keras + tensorflow, and the model is based on the encoder decoder model. It is similar to the Keras's seq2seq example linked below.
Below, I will take this as an example.
https://keras.io/examples/lstm_seq2seq/

In the above model, there are "encoder_model" and "decoder_model" apart from "model" to be trained, and in the inference, "encoder_model" and "decoder_model" are used to generate the prediction by the function "decode_sequence (input_seq)".
I would like to deploy this function "decode_sequence (input_seq)" as an endpoint, but it doesn't work as usual with estimator.deploy () and I don't know how to implement it.

Is there any sample code or resources to solve this?
Thanks in advance.

steve13
질문됨 5년 전244회 조회
1개 답변
0

Thanks, the problem was self resolved.
What should I do was to code "decode sequence" withint the "keras_model_fn".

steve13
답변함 5년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠