Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for GetNodeNameFromTensorName (0.33 sec)

  1. tensorflow/cc/tools/freeze_saved_model.cc

        NodeDef* node = graph_def->mutable_node(i);
        (*name_to_node_map)[node->name()] = node;
      }
    }
    
    // Strips off the tensor part of the tensor_name to get the node_name.
    const string GetNodeNameFromTensorName(string tensor_name) {
      if (tensor_name[0] == '^') {
        tensor_name.erase(0, 1);
      }
      std::vector<string> tensor_name_parts = str_util::Split(tensor_name, ':');
      return tensor_name_parts[0];
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 11 08:05:36 UTC 2023
    - 11.9K bytes
    - Viewed (0)
Back to top