Skip to content
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

Merged
merged 3 commits into from
Jun 15, 2020

Conversation

Litchilitchy
Copy link
Contributor

One feature lost for this PR, inferenceModel could not print batchSize anymore, user should print them by themselves before input the Tensor to model.

@Litchilitchy Litchilitchy requested a review from glorysdj June 15, 2020 03:54
@Litchilitchy Litchilitchy merged commit f6cd19f into intel-analytics:master Jun 15, 2020
@jason-dai
Copy link
Contributor

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) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove unused code

Copy link
Contributor Author

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 {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is this testing anything?

Copy link
Contributor Author

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)
Copy link
Contributor

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?

Copy link
Contributor Author

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.

@qiyuangong qiyuangong changed the title Infernce Model string support of TFNet Inference Model string support of TFNet Jun 15, 2020
@Litchilitchy
Copy link
Contributor Author

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.

This will update to doc

dding3 pushed a commit to dding3/analytics-zoo that referenced this pull request Jul 20, 2021
Noted InferenceModel predict batchSize is removed
dding3 pushed a commit to dding3/analytics-zoo that referenced this pull request Jul 26, 2021
Noted InferenceModel predict batchSize is removed
dding3 pushed a commit to dding3/analytics-zoo that referenced this pull request Jul 27, 2021
Noted InferenceModel predict batchSize is removed
dding3 pushed a commit to dding3/analytics-zoo that referenced this pull request Jul 30, 2021
Noted InferenceModel predict batchSize is removed
dding3 pushed a commit to dding3/analytics-zoo that referenced this pull request Aug 7, 2021
Noted InferenceModel predict batchSize is removed
dding3 pushed a commit to dding3/analytics-zoo that referenced this pull request Aug 9, 2021
Noted InferenceModel predict batchSize is removed
dding3 pushed a commit to dding3/analytics-zoo that referenced this pull request Aug 9, 2021
Noted InferenceModel predict batchSize is removed
Le-Zheng pushed a commit to Le-Zheng/analytics-zoo that referenced this pull request Sep 10, 2021
Noted InferenceModel predict batchSize is removed
Litchilitchy pushed a commit to Litchilitchy/analytics-zoo that referenced this pull request Sep 23, 2021
Noted InferenceModel predict batchSize is removed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants