Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for ToGuard (0.12 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.cc

    )namespace"
                                              : R"namespace(
    namespace tensorflow {
    namespace ops {
    
    )namespace";
    
      const string op_header = GetPath(dot_h_fname);
      *op_header_guard = ToGuard(op_header);
      const string cc_header = strings::StrCat(
          R"include(// This file is MACHINE GENERATED! Do not edit.
    
    
    #include "tensorflow/cc/ops/const_op.h"
    )include",
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 27 17:22:47 UTC 2023
    - 17K bytes
    - Viewed (0)
  3. 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