Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 101 for StringRef (0.13 sec)

  1. tensorflow/compiler/mlir/tensorflow/translate/export_tf_dialect_op.cc

        // TODO(b/146937733): Don't use <void> here.
        llvm::StringRef attr_name = mlir::OpTrait::AttrSizedOperandSegments<
            void>::getOperandSegmentSizeAttr();
        attrs_to_ignore.insert(attr_name.data());
      }
    
      if (inst->hasTrait<mlir::OpTrait::AttrSizedResultSegments>()) {
        // TODO(b/146937733): Don't use <void> here.
        llvm::StringRef attr_name = mlir::OpTrait::AttrSizedResultSegments<
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 01 11:17:36 UTC 2024
    - 11.1K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tensorflow/transforms/einsum.cc

    }
    
    std::optional<EinsumDimensionNumbers> GetEinsumDimensionNumbers(
        llvm::StringRef equation, RankedTensorType lhs_ty,
        RankedTensorType rhs_ty) {
      llvm::StringRef lhs_rhs;
      llvm::StringRef out;
      std::tie(lhs_rhs, out) = equation.split("->");
      if (lhs_rhs.empty() || out.empty()) return std::nullopt;
    
      llvm::StringRef lhs;
      llvm::StringRef rhs;
      std::tie(lhs, rhs) = lhs_rhs.split(',');
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 33.3K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tensorflow/transforms/host_runtime/tpu_variable_runtime_reformatting.cc

      auto device_map = devices_attr.value();
      llvm::SmallDenseMap<llvm::StringRef, llvm::SmallVector<StringRef, 4>> devices;
      devices.reserve(device_map.size());
    
      for (auto it : device_map) {
        auto device_alias = it.getName().strref();
        auto device_list = mlir::cast<ArrayAttr>(it.getValue());
        llvm::SmallVector<StringRef, 4> device_list_for_alias;
        device_list_for_alias.reserve(device_list.size());
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 21.9K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/lite/utils/tftext_utils.cc

    #include <optional>
    #include <string>
    #include <vector>
    
    #include "flatbuffers/flexbuffers.h"  // from @flatbuffers
    #include "llvm/ADT/ArrayRef.h"
    #include "llvm/ADT/SmallVector.h"
    #include "llvm/ADT/StringRef.h"
    #include "llvm/Support/Casting.h"
    #include "llvm/Support/raw_ostream.h"
    #include "mlir/Dialect/Func/IR/FuncOps.h"  // from @llvm-project
    #include "mlir/IR/Attributes.h"  // from @llvm-project
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 14.4K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tensorflow/transforms/cluster_tf_ops_pass.cc

    //    /job:localhost/replica:0/task:0.
    bool IsOnLocalHost(llvm::StringRef device) {
      std::string host = GetHost(device);
      return host == kLocalhost;
    }
    
    // This structure contains the metadata of the per-host function. All operations
    // in this function should be on the same host.
    struct FunctionMetadata {
      // The original function name before partition.
      llvm::StringRef original_name;
      // The insertion point of partition functions.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 13.4K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/quantization/tensorflow/ops/tf_quantize_op.cc

    #include "tensorflow/compiler/mlir/tensorflow/ir/tf_ops.h"
    
    namespace mlir {
    namespace quant {
    namespace {
    constexpr StringRef kDequantizeFunctionName = "composite_dequantize";
    constexpr StringRef kUniformQuantizationFunctionName = "uniform";
    
    // Pre-actions before adding quantization logics. It creates a function with the
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 11K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tf2xla/internal/passes/tpu_sharding_identification_pass.cc

    // Returns the sharding string from a op-sharding variant if it is available.
    std::optional<StringRef> GetShardingStringFromVariant(
        const OpShardingVariant& sharding_or_op) {
      return std::visit(
          [](auto&& sharding_or_op) -> std::optional<StringRef> {
            using T = std::decay_t<decltype(sharding_or_op)>;
            if constexpr (std::is_same_v<T, StringRef>) {
              return sharding_or_op;
            } else {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Apr 30 02:01:13 UTC 2024
    - 28.9K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tensorflow/transforms/host_runtime/tpu_rewrite_pass.cc

    struct TPURewritePass : public impl::TPURewritePassBase<TPURewritePass> {
      explicit TPURewritePass(llvm::StringRef _module_name)
          : module_name(_module_name) {}
    
      void runOnOperation() override;
    
      llvm::StringRef module_name;
    };
    
    // Creates a missing attribute error message.
    std::string CreateMissingAttributeMsg(llvm::StringRef attribute) {
      return llvm::formatv("requires attribute '{0}'", attribute).str();
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Apr 30 21:25:12 UTC 2024
    - 29.7K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tensorflow/ir/tf_saved_model.cc

      }
    
      return op->emitError() << "unknown tf_saved_model dialect attribute '"
                             << named_attr.getName().getValue() << "'";
    }
    
    SmallVector<StringRef, 2> GetExportedNames(Operation *op) {
      SmallVector<StringRef, 2> ret;
      auto exported_names =
          op->getAttrOfType<ArrayAttr>(kTfSavedModelExportedNamesAttr);
      if (exported_names) {
        for (auto name : exported_names) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 23.5K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/lite/experimental/tac/transforms/raise_target_subgraphs.cc

          *this, "ignore-inference-type",
          llvm::cl::desc("Whether to ignore the inference type in clustering."),
          llvm::cl::init(false)};
    
      llvm::StringRef getArgument() const final {
        return "tfl-raise-target-subgraphs";
      }
      llvm::StringRef getDescription() const final {
        return "This pass will merge those have target-annotated TFL IRs together "
               "& raise them as a function.";
      }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 11.4K bytes
    - Viewed (0)
Back to top