Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for ToGuard (0.24 sec)

  1. tensorflow/cc/framework/cc_op_gen_util.h

    // Converts: some/path/to/file.xx
    // to: file
    // (note that suffix is removed)
    string GetFilename(StringPiece path);
    
    // Converts:
    //   cc/ops/gen_foo_ops.h
    // to:
    //   CC_OPS_GEN_FOO_OPS_H_
    string ToGuard(StringPiece path);
    
    // Converts: some_name_xyz
    // to: Some Name Xyz
    string ToTitle(StringPiece name);
    
    // Change:     Into:
    //   ABC         /// ABC
    //               ///
    //   DEF         /// DEF
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Feb 26 00:57:05 UTC 2024
    - 4.6K bytes
    - Viewed (0)
  2. tensorflow/cc/framework/cc_op_gen_util.cc

      size_t slash_pos = path.rfind('/');
      if (slash_pos == path.npos) slash_pos = -1;
      size_t dot_pos = path.rfind('.');
      return string(path.substr(slash_pos + 1, dot_pos - (slash_pos + 1)));
    }
    
    string ToGuard(StringPiece path) {
      string guard;
      guard.reserve(path.size() + 1);  // + 1 -> trailing _
      for (const char c : path) {
        if (c >= 'A' && c <= 'Z') {
          guard += c;
        } else if (c >= 'a' && c <= 'z') {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Feb 26 00:57:05 UTC 2024
    - 25K bytes
    - Viewed (0)
Back to top