variableNames

enumerate the parameter names inside chain C

enum variableNames (
C
)

Examples

import std.traits;

auto mlp = MLP!(float, HostStorage)(3);
static assert(variableNames!(typeof(mlp)) == [".fc1.weight", ".fc1.bias",
        ".fc2.weight", ".fc2.bias", ".fc3.weight", ".fc3.bias"]);

Meta