CNN graph optimized