| 947 | } |
| 948 | |
| 949 | Tensor* Graph::GetInputTensor(const std::string& name) |
| 950 | { |
| 951 | for(unsigned int i = 0; i < input_nodes.size(); i++) |
| 952 | { |
| 953 | Node* node = input_nodes[i]; |
| 954 | |
| 955 | for(unsigned int j = 0; j < node->GetInputNum(); j++) |
| 956 | { |
| 957 | Tensor* tensor = node->GetInputTensor(j); |
| 958 | |
| 959 | if(tensor->GetName() == name) |
| 960 | return tensor; |
| 961 | } |
| 962 | } |
| 963 | |
| 964 | return nullptr; |
| 965 | } |
| 966 | |
| 967 | Tensor* Graph::GetOutputTensor(const std::string& name) |
| 968 | { |
no test coverage detected