matchesLayerName

fun matchesLayerName(tensorName: String, layerName: String?): Boolean(source)

Check if a weight tensor name matches a DSL layer name. E.g., "model.22.cv2.0.0.conv.weight" matches DSL: "model.22.cv2.0.0"

Return

True if the tensor belongs to the layer

Parameters

tensorName

The name of the weight tensor

layerName

The normalized DSL layer name