Skip to content

Commit

Permalink
Implemented suggestions from Oliver
Browse files Browse the repository at this point in the history
  • Loading branch information
gabrielspmoreira committed Mar 15, 2023
1 parent b503c4c commit 2c0e9a2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion merlin/models/tf/core/encoder.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ def batch_predict(

return merlin.io.Dataset(predictions)

def call(self, inputs, targets=None, training=False, testing=False, **kwargs):
def call(self, inputs, *, targets=None, training=False, testing=False, **kwargs):
inputs = self._prepare_features(inputs, targets=targets)
if isinstance(inputs, tuple):
inputs, targets = inputs
Expand Down
2 changes: 1 addition & 1 deletion merlin/models/tf/models/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ def get_output_schema(export_path: str) -> Schema:
col_schema = ColumnSchema(
output_name,
dtype=output_spec.dtype.as_numpy_dtype,
dims=((0, None), (shape[1], shape[1])),
dims=(None, shape[1]),
)

output_schema.column_schemas[output_name] = col_schema
Expand Down

0 comments on commit 2c0e9a2

Please sign in to comment.