by sharing of weight do you mean manually copying of weight from one layer to another or something else.

You mention that " since base is common layer here" so I assume that you have a single set of parameters for both. But maybe I misunderstood this.