-
Notifications
You must be signed in to change notification settings - Fork 733
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Infernce Model string support of TFNet (#2452)
Noted InferenceModel predict batchSize is removed
- Loading branch information
Song Jiaming
authored
Jun 15, 2020
1 parent
e30d782
commit f6cd19f
Showing
6 changed files
with
77 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
36 changes: 36 additions & 0 deletions
36
zoo/src/test/scala/com/intel/analytics/zoo/serving/InferenceSpec.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
/* | ||
* Copyright 2018 Analytics Zoo Authors. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
|
||
package com.intel.analytics.zoo.serving | ||
|
||
import com.intel.analytics.bigdl.tensor.Tensor | ||
import com.intel.analytics.zoo.serving.utils.{ClusterServingHelper, SerParams} | ||
import org.scalatest.{FlatSpec, Matchers} | ||
|
||
class InferenceSpec extends FlatSpec with Matchers { | ||
"TF String input" should "work" in { | ||
// val configPath = "/home/litchy/pro/analytics-zoo/config.yaml" | ||
val str = "abc|dff|aoa" | ||
val eleList = str.split("\\|") | ||
// val helper = new ClusterServingHelper(configPath) | ||
// helper.initArgs() | ||
// val param = new SerParams(helper) | ||
// val model = helper.loadInferenceModel() | ||
// val res = model.doPredict(t) | ||
// res | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters