Initializing weights when profiling