Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions demos/run_demo.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
import tensorflow.compat.v1 as tf
import numpy as np
from graph_optimizer.utils import load_graph, create_node, create_complex_concat_graph
from graph_optimizer.utils import create_complex_concat_graph
from graph_optimizer.runner import OptimizationPipeline
from graph_optimizer.utils.logger import set_log_level, DEBUG, INFO

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
and reusability.
"""

from functools import lru_cache

import os
import collections
import numpy as np
Expand Down Expand Up @@ -132,6 +134,7 @@ def make_output_shapes_attr(shapes: List[List[int]]) -> attr_value_pb2.AttrValue
# =======================


@lru_cache(maxsize=None)
def extract_base_name(input_name: str) -> str:
"""
Extract base node name from input (strip port and control marker).
Expand Down
File renamed without changes.