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

Set input and output size for a model, and query if they've been adequately set. #43

Open
adamhutchings opened this issue Oct 9, 2023 · 0 comments
Labels

Comments

@adamhutchings
Copy link
Contributor

This is to implement the functions get_input_size, get_output_size, set_input_size, set_output_size,and is_specified.

As per the API document:

get_input_size
Scope: jml::Model::
Arguments:
Expected constraints:
Returns:
unsigned
Description:
This function queries the input size for a model.

get_output_size
Scope: jml::Model::
Arguments:
Expected constraints:
Returns:
unsigned
Description:
This function queries the output size for a model.

set_input_size
Scope: jml::Model::
Arguments:
unsigned size
Expected constraints:
size > 0
Returns: void
Description:
This function sets the input size for a model. This function errors if the model already has attached layers or training data.

set_output_size
Scope: jml::Model::
Arguments:
unsigned size
Expected constraints:
size > 0
Returns: void
Description:
This function sets the output size for a model. This function errors if the model already has attached layers or training data.

is_specified
Scope: jml::Model::
Arguments:
Expected constraints:
Returns:
bool
Description:
This function queries whether a given model is fully specified, and ready to be given training data and layers. This should return true if input and output size have been specified, and false otherwise.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant