Created
July 8, 2019 20:36
-
-
Save r7vme/e518ac5575cbce2430b54c8f68cb2be1 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for node in nodes: | |
if "LeakyRelu" in node: | |
ns[node]=gs.create_plugin_node(name=node,op="LReLU_TRT", negSlope=0.1) | |
if "orientation/l2_normalize" in node: | |
dynamic_graph.remove(node) | |
dynamic_graph.collapse_namespaces(ns) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment