| { |
| "nodes": [ |
| { |
| "op": "null", |
| "param": {}, |
| "name": "data", |
| "inputs": [], |
| "backward_source_id": -1, |
| "attr": { |
| "ctx_group": "stage1", |
| "lr_mult": "0.2" |
| } |
| }, |
| { |
| "op": "null", |
| "param": {}, |
| "name": "fc1_weight", |
| "inputs": [], |
| "backward_source_id": -1, |
| "attr": { |
| "ctx_group": "stage1", |
| "wd_mult": "0.3", |
| "weight_lr_mult": "1.2" |
| } |
| }, |
| { |
| "op": "null", |
| "param": {}, |
| "name": "fc1_bias", |
| "inputs": [], |
| "backward_source_id": -1, |
| "attr": { |
| "ctx_group": "stage1", |
| "wd_mult": "0.3", |
| "weight_lr_mult": "1.2" |
| } |
| }, |
| { |
| "op": "FullyConnected", |
| "param": { |
| "no_bias": "False", |
| "num_hidden": "128" |
| }, |
| "name": "fc1", |
| "inputs": [[0, 0], [1, 0], [2, 0]], |
| "backward_source_id": -1, |
| "attr": { |
| "ctx_group": "stage1", |
| "wd_mult": "0.3", |
| "weight_lr_mult": "1.2" |
| } |
| }, |
| { |
| "op": "Activation", |
| "param": {"act_type": "relu"}, |
| "name": "relu1", |
| "inputs": [[3, 0]], |
| "backward_source_id": -1, |
| "attr": {"ctx_group": "stage1"} |
| }, |
| { |
| "op": "null", |
| "param": {}, |
| "name": "fc2_weight", |
| "inputs": [], |
| "backward_source_id": -1, |
| "attr": { |
| "ctx_group": "stage2", |
| "lr_mult": "0.01" |
| } |
| }, |
| { |
| "op": "null", |
| "param": {}, |
| "name": "fc2_bias", |
| "inputs": [], |
| "backward_source_id": -1, |
| "attr": { |
| "ctx_group": "stage2", |
| "lr_mult": "0.01" |
| } |
| }, |
| { |
| "op": "FullyConnected", |
| "param": { |
| "no_bias": "False", |
| "num_hidden": "64" |
| }, |
| "name": "fc2", |
| "inputs": [[4, 0], [5, 0], [6, 0]], |
| "backward_source_id": -1, |
| "attr": { |
| "ctx_group": "stage2", |
| "lr_mult": "0.01" |
| } |
| }, |
| { |
| "op": "Activation", |
| "param": {"act_type": "relu"}, |
| "name": "relu2", |
| "inputs": [[7, 0]], |
| "backward_source_id": -1, |
| "attr": {"ctx_group": "stage2"} |
| }, |
| { |
| "op": "null", |
| "param": {}, |
| "name": "fc3_weight", |
| "inputs": [], |
| "backward_source_id": -1, |
| "attr": {"ctx_group": "stage2"} |
| }, |
| { |
| "op": "null", |
| "param": {}, |
| "name": "fc3_bias", |
| "inputs": [], |
| "backward_source_id": -1, |
| "attr": {"ctx_group": "stage2"} |
| }, |
| { |
| "op": "FullyConnected", |
| "param": { |
| "no_bias": "False", |
| "num_hidden": "10" |
| }, |
| "name": "fc3", |
| "inputs": [[8, 0], [9, 0], [10, 0]], |
| "backward_source_id": -1, |
| "attr": {"ctx_group": "stage2"} |
| }, |
| { |
| "op": "null", |
| "param": {}, |
| "name": "batchnorm0_gamma", |
| "inputs": [], |
| "backward_source_id": -1, |
| "attr": {"ctx_group": "stage2"} |
| }, |
| { |
| "op": "null", |
| "param": {}, |
| "name": "batchnorm0_beta", |
| "inputs": [], |
| "backward_source_id": -1, |
| "attr": {"ctx_group": "stage2"} |
| }, |
| { |
| "op": "BatchNorm", |
| "param": { |
| "eps": "0.001", |
| "fix_gamma": "True", |
| "momentum": "0.9", |
| "use_global_stats": "False" |
| }, |
| "name": "batchnorm0", |
| "inputs": [[11, 0], [12, 0], [13, 0]], |
| "backward_source_id": -1, |
| "attr": {"ctx_group": "stage2"} |
| }, |
| { |
| "op": "null", |
| "param": {}, |
| "name": "softmax_label", |
| "inputs": [], |
| "backward_source_id": -1, |
| "attr": {"ctx_group": "stage2"} |
| }, |
| { |
| "op": "SoftmaxOutput", |
| "param": { |
| "grad_scale": "1", |
| "ignore_label": "-1", |
| "multi_output": "False", |
| "normalization": "null", |
| "out_grad": "False", |
| "preserve_shape": "False", |
| "use_ignore": "False" |
| }, |
| "name": "softmax", |
| "inputs": [[14, 0], [15, 0]], |
| "backward_source_id": -1, |
| "attr": {"ctx_group": "stage2"} |
| } |
| ], |
| "arg_nodes": [0, 1, 2, 5, 6, 9, 10, 12, 13, 15], |
| "heads": [[16, 0]] |
| } |