def add_fill_dynamic(self, name, input_name, output_name, value=0.0):
        """
        Add a fill_dynamic layer to the model that outputs a tensor filled
        with a scalar value.
        Refer to the ``FillDynamicLayerParams`` message in the specification
        (NeuralNetwork.proto) for more details.

        Parameters
        ----------
        name: str
            The name of this layer.
        input_name: str
            The input blob name of this layer.
        output_name: str
            The output blob name of this layer.
        value: float, optional
            A scalar value for the fill operation, default: 0.

        See Also
        --------
        add_fill_like, add_fill_static
        """

        spec_layer = self._add_generic_layer(name, [input_name], [output_name])
        spec_layer_params = spec_layer.fillDynamic
        spec_layer_params.value = value
        self.rank_dict[output_name] = -1
        return spec_layer

        Add a fill_dynamic layer to the model that outputs a tensor filled
        with a scalar value.
        Refer to the ``FillDynamicLayerParams`` message in the specification
        (NeuralNetwork.proto) for more details.

        Parameters
        ----------
        name: str
            The name of this layer.
        input_name: str
            The input blob name of this layer.
        output_name: str
            The output blob name of this layer.
        value: float, optional
            A scalar value for the fill operation, default: 0.

        See Also
        --------
        add_fill_like, add_fill_static
        
coremltools/models/neural_network/builder.py