You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Right now inside a ParallelBlock, we broadcast it’s inputs to all the branches. Each branch then filters the features it needs. This leads to some unexpected behaviour when you try to save a branch to be served since the resulting TF-model will expect all features.
This shows up for instance inside a TwoTowerModel where we would like to serve the query-tower, we currently have a hacky workaround that does the pre-filtering in that case (source). We would like to create a more general solution.
Additional context
Proposal, have a flag pre_filter_features=True to the ParallelBlock. Inside the call-method we would check for each branch if it contains a schema-param. If so, we do the pre-filtering.
The text was updated successfully, but these errors were encountered:
Description
Right now inside a
ParallelBlock
, we broadcast it’s inputs to all the branches. Each branch then filters the features it needs. This leads to some unexpected behaviour when you try to save a branch to be served since the resulting TF-model will expect all features.This shows up for instance inside a
TwoTowerModel
where we would like to serve the query-tower, we currently have a hacky workaround that does the pre-filtering in that case (source). We would like to create a more general solution.Additional context
Proposal, have a flag
pre_filter_features=True
to theParallelBlock
. Inside the call-method we would check for each branch if it contains aschema
-param. If so, we do the pre-filtering.The text was updated successfully, but these errors were encountered: