import tensorflow as tf


        return X

    def _add_op_dynamic(self, cell_inputs, blocks, input_idx, op, w, h, ch, is_train=False):
        ni = len(cell_inputs + blocks)
        inputs = tf.stack(cell_inputs + blocks, axis=0)
        op_map = self._get_op_map()

        # Build output for each available operation
        X = inputs[input_idx]
