Skip to content

Allow Schema class from core to be used to create input-blocks#634

Merged
marcromeyn merged 3 commits intomainfrom
core-schema/inputs
Mar 10, 2023
Merged

Allow Schema class from core to be used to create input-blocks#634
marcromeyn merged 3 commits intomainfrom
core-schema/inputs

Conversation

@marcromeyn
Copy link
Copy Markdown
Contributor

@marcromeyn marcromeyn commented Mar 9, 2023

Goals ⚽

The goal is to deprecate the Schema class in merlin_standard_lib in favor of the one in merlin-core. In order to give our users some time for this breaking change, this PR adds support for providing both the Schema definitions to create input-blocks.

The next step would be to do the same for the Trainer class.

Testing Details 🔍

This PR adds some parameterization in order to test the creation of input-blocks from both the Schema definitions.

@marcromeyn marcromeyn self-assigned this Mar 9, 2023
@marcromeyn marcromeyn added the enhancement New feature or request label Mar 9, 2023
@marcromeyn marcromeyn requested a review from nv-alaiacano March 9, 2023 15:08
@marcromeyn marcromeyn marked this pull request as ready for review March 9, 2023 15:09
@github-actions
Copy link
Copy Markdown

github-actions bot commented Mar 9, 2023

Optional[TabularModule]
"""
schema_copy = schema.copy()
schema_copy = deepcopy(schema)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

is this deepcopy required for the Merlin Core Schema?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

We could add a copy method to the core schema that would avoid the need for deepcopy

NVIDIA-Merlin/core#240

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Allow Schema class from core to work with input-blocks

3 participants