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

Feature: read metadata if present #38

Merged
merged 1 commit into from
Feb 14, 2023
Merged

Feature: read metadata if present #38

merged 1 commit into from
Feb 14, 2023

Conversation

rouson
Copy link
Contributor

@rouson rouson commented Feb 14, 2023

This PR adds the capability to read a metadata JSON object if it is present before the hidden_layers array and formatted as follows:

    "metadata": {
        "modelName": "Network",
        "modelAuthor": "Joe Bloggs",
        "compilationDate": "2023-02-09 16:10:18.544724",
        "usingSkipConnections": false
    },

The corresponding information is used to construct a metadata_t object that is a new component in the inference_engine_t derive type. If no metadata JSON object is found, then the metadata_t component is constructed with empty strings and a .false.. The primary purpose of the new metadata object is to specify whether skip connections will be used between hidden layers.

@rouson rouson merged commit 9a1095e into main Feb 14, 2023
@rouson rouson deleted the read-metadata branch February 14, 2023 07:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant