enumerate the parameter names inside chain C
1 import std.traits; 2 3 auto mlp = MLP!(float, HostStorage)(3); 4 static assert(variableNames!(typeof(mlp)) == [".fc1.weight", ".fc1.bias", 5 ".fc2.weight", ".fc2.bias", ".fc3.weight", ".fc3.bias"]);
See Implementation
enumerate the parameter names inside chain C