Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 99 for StringRef (0.12 sec)

  1. tensorflow/compiler/mlir/op_or_arg_name_mapper.cc

    static inline absl::string_view StringRefToView(llvm::StringRef ref) {
      return absl::string_view(ref.data(), ref.size());
    }
    
    static inline llvm::StringRef StringViewToRef(absl::string_view view) {
      return llvm::StringRef(view.data(), view.size());
    }
    
    namespace tensorflow {
    
    OpOrArgNameMapper::~OpOrArgNameMapper() = default;
    
    llvm::StringRef OpOrArgNameMapper::GetUniqueName(llvm::StringRef prefix,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 5.7K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/quantization/tensorflow/cc/convert_asset_args.cc

    // SavedModel loader attaches the prefix for you during loading.
    StringRef MaybeStripAssetDirectoryPrefix(const StringRef filename) {
      if (filename.find("assets/") == 0) {
        return filename.drop_front(7);
      } else {
        return filename;
      }
    }
    
    AssetFileDef CreateAssetFileDef(const StringRef filename,
                                    const StringRef tensor_name) {
      AssetFileDef asset_file_def{};
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 5.4K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/quantization/tensorflow/passes/lift_hashtable_ops_as_args.cc

    namespace mlir {
    namespace quant {
    namespace {
    
    constexpr StringRef kSharedNameAttr = "shared_name";
    
    class LiftHashTableOpsAsArgsPass
        : public PassWrapper<LiftHashTableOpsAsArgsPass, OperationPass<ModuleOp>> {
     public:
      MLIR_DEFINE_EXPLICIT_INTERNAL_INLINE_TYPE_ID(LiftHashTableOpsAsArgsPass)
      explicit LiftHashTableOpsAsArgsPass() = default;
    
      StringRef getArgument() const final {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 17 17:58:54 UTC 2024
    - 8.2K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tensorflow/transforms/readonly_references_to_resources.cc

    #include "tensorflow/compiler/mlir/tensorflow/transforms/passes.h"
    
    namespace mlir {
    namespace TF {
    namespace {
    
    // Location attribute.
    constexpr StringRef kClassAttr = "_class";
    constexpr StringRef kSharedNameAttr = "shared_name";
    constexpr StringRef kLocationPrefix = "loc:@";
    
    #define GEN_PASS_DEF_CONVERTREADONLYREFERENCEVARIABLESTORESOURCEVARIABLESPASS
    #include "tensorflow/compiler/mlir/tensorflow/transforms/tf_passes.h.inc"
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 7.8K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/quantization/tensorflow/passes/add_quantization_unit_loc.cc

        // Op type is a NameLoc with the ":" suffix.
        StringRef op_type_with_suffix =
            mlir::cast<NameLoc>(locations.front()).getName().strref();
        StringRef op_type =
            op_type_with_suffix.substr(0, op_type_with_suffix.size() - 1);
        new_unit.set_op_type(op_type.str());
    
        if (isa<NameLoc>(locations.back())) {
          StringRef name_loc_id =
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 7.4K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tensorflow/utils/attribute_utils.h

    // associated compilation cluster and replication metadata op.
    inline constexpr llvm::StringRef kTpuReplicateAttr = "_tpu_replicate";
    // Device types.
    inline constexpr llvm::StringRef kTpuDevice = "TPU";
    // _xla_outside_compilation
    inline constexpr llvm::StringRef kXlaOutsideCompilationAttr =
        "_xla_outside_compilation";
    // device attr
    inline constexpr llvm::StringRef kDeviceAttr = "device";
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 22 19:47:48 UTC 2024
    - 8.7K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/lite/stablehlo/transforms/op_stat_pass.cc

      void CountOp(DenseMap<StringRef, llvm::StringMap<int64_t>> &op_count_map,
                   StringRef op_name, StringRef dtype);
    
     private:
      llvm::StringMap<int64_t> op_with_dialect_count_;
      DenseMap<StringRef, llvm::StringMap<int64_t>> op_dtype_count_;
      llvm::StringMap<int64_t> dialect_count_;
      llvm::StringMap<StringRef> dialect_name_of_;
      llvm::StringMap<StringRef> op_name_of_;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 8.7K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tensorflow/analysis/resource_value_typed_analyzer.h

      DenseSet<Region*> discovered_;
      // Identifiers about mutable variables.
      // All variables are identified by (device, container, shared_name).
      DenseSet<std::tuple<llvm::StringRef, llvm::StringRef, llvm::StringRef>>
          mutable_variables_;
    };
    
    }  // namespace TF
    }  // namespace mlir
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 15 09:04:13 UTC 2024
    - 3K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tensorflow/analysis/resource_value_typed_analyzer.cc

    }
    
    // Returns ID for identifying a resource.
    std::tuple<StringRef, StringRef, StringRef> GetResourceKey(Operation* op) {
      StringRef device;
      if (auto attr = op->getAttrOfType<StringAttr>("device")) {
        device = attr.getValue();
      }
    
      StringRef container;
      if (auto attr = op->getAttrOfType<StringAttr>("container")) {
        container = attr.getValue();
      }
    
      StringRef shared_name;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 15 09:04:13 UTC 2024
    - 8K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/quantization/common/lift_as_function_call.h

    inline constexpr StringRef kFusedFunctionAttr = "tf_quant.composite_function";
    // The keyword to detect if this is a `NullAttribute`.
    inline constexpr StringRef kNullAttributeValue = "N/A";
    
    // Prefixes attached to lifted functions.
    constexpr StringRef kQuantizedFuncPrefix = "quantized_";
    constexpr StringRef kCompositeFuncPrefix = "composite_";
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 10 04:07:09 UTC 2024
    - 5.5K bytes
    - Viewed (0)
Back to top