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年前

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ