hw support for multi input. argmin now returns value as last channel