coremltools/converters/keras/_topology.py [185:216]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
            return None, None
        else:
            input_blobs = self.layers_inputs[layer]
            output_blobs = self.layers_outputs[layer]
            if layer in self.layers_optional_inputs:
                input_blobs += self.layers_optional_inputs[layer]
            if layer in self.layers_optional_outputs:
                output_blobs += self.layers_optional_outputs[layer]
            return input_blobs, output_blobs

    def reset_model_input_names(self, new_names):
        # call this method after make_input_layers() is called
        if new_names is None:
            return
        if len(new_names) != len(self.input_layers):
            print("Input name length mismatch")
            return
        for i, in_layer in enumerate(self.input_layers):
            old_blob_name = in_layer + "_output"
            new_blob_name = new_names[i]
            succs = self.get_successors(in_layer)
            for succ in succs:
                idx = self.layers_inputs[succ].index(old_blob_name)
                self.layers_inputs[succ][idx] = new_blob_name

    def reset_model_output_names(self, new_names):
        if new_names is None:
            return
        if len(new_names) != len(self.output_layers):
            print("Output name length mismatch")
            return
        for i, out_layer in enumerate(self.output_layers):
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



coremltools/converters/keras/_topology2.py [263:294]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
            return None, None
        else:
            input_blobs = self.layers_inputs[layer]
            output_blobs = self.layers_outputs[layer]
            if layer in self.layers_optional_inputs:
                input_blobs += self.layers_optional_inputs[layer]
            if layer in self.layers_optional_outputs:
                output_blobs += self.layers_optional_outputs[layer]
            return input_blobs, output_blobs

    def reset_model_input_names(self, new_names):
        # call this method after make_input_layers() is called
        if new_names is None:
            return
        if len(new_names) != len(self.input_layers):
            print("Input name length mismatch")
            return
        for i, in_layer in enumerate(self.input_layers):
            old_blob_name = in_layer + "_output"
            new_blob_name = new_names[i]
            succs = self.get_successors(in_layer)
            for succ in succs:
                idx = self.layers_inputs[succ].index(old_blob_name)
                self.layers_inputs[succ][idx] = new_blob_name

    def reset_model_output_names(self, new_names):
        if new_names is None:
            return
        if len(new_names) != len(self.output_layers):
            print("Output name length mismatch")
            return
        for i, out_layer in enumerate(self.output_layers):
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



