Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for DemangleShape (0.19 sec)

  1. tensorflow/compiler/mlir/tensorflow/utils/mangling_util.h

    MangledKind GetMangledKind(absl::string_view str);
    
    // Return a TensorShapeProto mangled as a string.
    string MangleShape(const TensorShapeProto& shape);
    // Demangle a string mangled with MangleShape.
    Status DemangleShape(absl::string_view str, TensorShapeProto* proto);
    
    // Return a TensorProto mangled as a string.
    string MangleTensor(const TensorProto& tensor);
    // Demangle a string mangled with MangleTensor.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Oct 28 22:08:30 UTC 2020
    - 2.4K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tensorflow/utils/mangling_util.cc

      } else {
        return MangledKind::kUnknown;
      }
    }
    
    string MangleShape(const TensorShapeProto& shape) {
      return absl::StrCat(kTensorShapePrefix, PrintShortTextProto(shape));
    }
    
    Status DemangleShape(absl::string_view str, TensorShapeProto* proto) {
      return ParseTextProto(str, kTensorShapePrefix, proto);
    }
    
    string MangleTensor(const TensorProto& tensor) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Feb 26 03:47:51 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tensorflow/utils/export_utils.cc

          value->set_type(dtype);
          return absl::OkStatus();
        }
        case mangling_util::MangledKind::kTensorShape:
          TF_RETURN_IF_ERROR(
              mangling_util::DemangleShape(attr_value, value->mutable_shape()));
          return absl::OkStatus();
        default:
          return errors::Unimplemented("Mangled string couldn't be handled!");
      }
      return absl::OkStatus();
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 17 17:58:54 UTC 2024
    - 19.7K bytes
    - Viewed (0)
Back to top