-
Notifications
You must be signed in to change notification settings - Fork 733
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Inference Model string support of TFNet #2452
Conversation
Please provide some descriptions/unit tests on how the user is supposed to use this features? E.g., what the user input looks like when sending the requests to cluster serving. |
val sampleKey = inputActivity.toTable.keySet.head | ||
inputActivity.toTable(sampleKey).asInstanceOf[Tensor[Float]].size(1) | ||
} | ||
// val batchSize = if (inputActivity.isTensor) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove unused code
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Noted
import com.intel.analytics.zoo.serving.utils.{ClusterServingHelper, SerParams} | ||
import org.scalatest.{FlatSpec, Matchers} | ||
|
||
class InferenceSpec extends FlatSpec with Matchers { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is this testing anything?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is TODO, nothing is tested so far, this need some string schema currently unknown, will check.
if "string" in key: | ||
# list of string will be converted to Tensor of String | ||
# use | to split | ||
str_concat = '|'.join(value) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what if there is '|' in the original strings?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will check schema, if so, will change to another one.
This will update to doc |
Noted InferenceModel predict batchSize is removed
Noted InferenceModel predict batchSize is removed
Noted InferenceModel predict batchSize is removed
Noted InferenceModel predict batchSize is removed
Noted InferenceModel predict batchSize is removed
Noted InferenceModel predict batchSize is removed
Noted InferenceModel predict batchSize is removed
Noted InferenceModel predict batchSize is removed
Noted InferenceModel predict batchSize is removed
One feature lost for this PR, inferenceModel could not print batchSize anymore, user should print them by themselves before input the Tensor to model.