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

fix: [Workaround] CNTKModel does not output correct result #1076

Merged
merged 3 commits into from
Jun 9, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -532,7 +532,10 @@ class CNTKModel(override val uid: String) extends Model[CNTKModel] with ComplexP
val droppedDF = outputDF.drop(outputDF.columns.filter(_.startsWith(coercionPrefix)): _*)

val unbatchedDF = if (getBatchInput) {
new FlattenBatch().transform(droppedDF)
// TODO: The cache call is a workaround for issue 1075:
// https://github.com/Azure/mmlspark/issues/1075
val cacheAttempted = if (droppedDF.isStreaming) droppedDF else droppedDF.cache()
new FlattenBatch().transform(cacheAttempted)
} else {
droppedDF
}
Expand Down