Skip to content

Failed to run TfCnn example from User Guide: ERROR find objects: parse jsonnet snippet: params.libsonnet:22:5-13 Expected a comma before next field. #863

Closed
@dakoner

Description

@dakoner

I am getting an error when I try to run the TfCnn example from the User Guide:
The docs say to run:

CNN_JOB_NAME=mycnnjob
ks generate tf-cnn ${CNN_JOB_NAME} --name=${CNN_JOB_NAME}
ks apply ${KF_ENV} -c ${CNN_JOB_NAME}

I get the error:
ERROR find objects: parse jsonnet snippet: params.libsonnet:22:5-13 Expected a comma before next field.

When I looked at components/params.libsonnet, I see it has added a 'mycynnjob' stanza after the components stanza, but it omits the comma between the two components:

components: {
// Component-level parameters, defined initially from 'ks prototype use ...'
// Each object below should correspond to a component in the components/ directory
....
} /// THERE NEEDS TO BE A TRAILING COMMA HERE
mycnnjob: {
batch_size: 32,
....
}

I'm not sure why this is happening, I guess it is some sort of issue with 'ks generate'?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions