Conversation
BBuf
reviewed
Jul 28, 2021
BBuf
reviewed
Jul 28, 2021
BBuf
reviewed
Jul 28, 2021
| dtype=str(node_array.dtype) | ||
| ) | ||
|
|
||
| for node_name in nodes: |
|
|
||
| def _parse_input(self, node, model_dir_path): | ||
| for input_name in node.user_conf.input: | ||
| node_input_name = node.name + '-' + input_name |
|
|
||
|
|
||
| def fix_outputs(op_name, outputs): | ||
| if op_name.lower() == "Dropout": |
BBuf
reviewed
Jul 28, 2021
| { | ||
| node1_name: | ||
| { | ||
| 'name': node1_name, # str, like "conv1-in./model_path/Input_0" |
| if not freeze_params: | ||
| for node_init_name in user_input: | ||
| if "Input_0" not in node_init_name: | ||
| raise KeyError("the key of user_input should be: name of network layer 1(like \'conv1\') + \'-in\'") |
| node = nodes[node_name] | ||
| if is_user_op(node): | ||
| for input_name in node.user_conf.input: | ||
| node_init_name = node_name + '-' + input_name |
BBuf
reviewed
Jul 28, 2021
| """ | ||
| try: | ||
| import oneflow | ||
| import oneflow.experimental as flow |
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
mobilenetv2,resnet50、alexnet、vgg都是可以的