def convert(self, vroot, entry_variables):
        """
        All functions are replaced with the same `new` function.

        Args:
            vroot (:obj:`Variable`): NNabla Variable
            entry_variables (:obj:`Variable`): Entry variable from which the conversion starts.
        """
        self.graph_info = GraphInfo(vroot)
        self.entry_variables = entry_variables

        cnt = 0
        with nn.parameter_scope(self.name):
            # Function loop in the forward order
            for t, func in enumerate(self.graph_info.funcs):
                if func.name == "BatchNormalization":
                    bn_func = func
                    # TODO: should deal with both?
                    if bn_func.info.args["batch_stat"] == False:
                        o = self._bn_linear_conversion(bn_func, cnt)
                        cnt += 1
                        continue
                # Identity conversion
                o = self._identity_conversion(func)

        self.end_variable = o
        return self.end_variable
def convert ( self , vroot , entry_variables ) : self . graph_info = GraphInfo ( vroot ) self . entry_variables = entry_variables cnt = 0 with nn . parameter_scope ( self . name ) : for t , func in enumerate ( self . graph_info . funcs ) : if func . name == "BatchNormalization" : bn_func = func if bn_func . info . args [ "batch_stat" ] == False : o = self . _bn_linear_conversion ( bn_func , cnt ) cnt += 1 continue o = self . _identity_conversion ( func ) self . end_variable = o return self . end_variable
All functions are replaced with the same `new` function.

        Args:
            vroot (:obj:`Variable`): NNabla Variable
            entry_variables (:obj:`Variable`): Entry variable from which the conversion starts.