Search Options

Results per page
Sort
Preferred Languages
Advance

Results 121 - 130 of 244 for StringRef (0.23 sec)

  1. tensorflow/compiler/mlir/tensorflow/ir/tf_types.def

    HANDLE_TF_REF_TYPE(Int32Ref, INT32_REF, "int32ref")
    HANDLE_TF_REF_TYPE(Uint64Ref, UINT64_REF, "uint64ref")
    HANDLE_TF_REF_TYPE(Int64Ref, INT64_REF, "int64ref")
    HANDLE_TF_REF_TYPE(StringRef, STRING_REF, "stringref")
    HANDLE_TF_REF_TYPE(BoolRef, BOOL_REF, "boolref")
    HANDLE_TF_REF_TYPE(Quint8Ref, QUINT8_REF, "quint8ref")
    HANDLE_TF_REF_TYPE(Qint8Ref, QINT8_REF, "qint8ref")
    HANDLE_TF_REF_TYPE(Quint16Ref, QUINT16_REF, "quint16ref")
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sat Sep 09 03:12:53 UTC 2023
    - 3.3K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tensorflow/transforms/test_resource_alias_analysis.cc

              TestResourceAliasAnalysis, TF::ResourceAliasAnalysis> {
      MLIR_DEFINE_EXPLICIT_INTERNAL_INLINE_TYPE_ID(TestResourceAliasAnalysis)
    
      StringRef getArgument() const final {
        return "tf-test-resource-alias-analysis";
      }
    
      StringRef getDescription() const final {
        return "Add remarks based on resource alias analysis result, for testing "
               "purpose.";
      }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Apr 19 00:13:50 UTC 2022
    - 4.4K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/lite/utils/lstm_utils.h

    // passes to work with op attributes.
    
    #ifndef TENSORFLOW_COMPILER_MLIR_LITE_UTILS_LSTM_UTILS_H_
    #define TENSORFLOW_COMPILER_MLIR_LITE_UTILS_LSTM_UTILS_H_
    
    #include "llvm/ADT/StringRef.h"
    #include "mlir/Dialect/Func/IR/FuncOps.h"  // from @llvm-project
    #include "mlir/IR/Builders.h"  // from @llvm-project
    #include "mlir/IR/BuiltinOps.h"  // from @llvm-project
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sat Jun 03 00:14:05 UTC 2023
    - 7.3K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tensorflow/ir/tf_ops_layout_helper.cc

      for (size_t i = 0; i < permutation.size(); ++i) {
        reverse[permutation[i]] = i;
      }
      return reverse;
    }
    
    SmallVector<int64_t, 4> GetDataFormatPermutation(StringRef from, StringRef to) {
      if (from == "NHWC" && to == "NCHW") {
        return {0, 3, 1, 2};
      } else if (from == "NCHW" && to == "NHWC") {
        return {0, 2, 3, 1};
      } else {
        return {};
      }
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 3.3K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/lite/experimental/tac/transforms/device_transform_gpu.cc

                                   OperationPass<func::FuncOp>> {
      MLIR_DEFINE_EXPLICIT_INTERNAL_INLINE_TYPE_ID(DeviceTransformGPUPass)
    
      llvm::StringRef getArgument() const final {
        return "tfl-device-transform-gpu";
      }
      llvm::StringRef getDescription() const final {
        return "Suitable transformation for gpu only.";
      }
      void getDependentDialects(DialectRegistry& registry) const override {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jun 07 18:43:51 UTC 2022
    - 3.1K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tensorflow/translate/tf_mlir_translate_registration.cc

    static constexpr char kArbitraryDeviceName[] = "XLA_CPU_JIT";
    
    namespace {
    inline absl::string_view StringRefToView(llvm::StringRef ref) {
      return {ref.data(), ref.size()};
    }
    }  // namespace
    
    static OwningOpRef<mlir::ModuleOp> GraphdefToMlirTranslateFunction(
        llvm::StringRef input, MLIRContext* context) {
      tensorflow::GraphdefToMlirOptions options{
          debug_info_file,        xla_compile_device_type,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Jun 12 22:19:26 UTC 2024
    - 7.8K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/quantization/common/attrs_and_constraints.cc

        if (failed(cast_i32)) return failure();
    
        int32_array.push_back(*cast_i32);
      }
      return int32_array;
    }
    
    StringRef GetEntryFunctionName(TF::XlaCallModuleOp op) {
      if (!op->hasAttrOfType<FlatSymbolRefAttr>(
              TF::kStablehloEntryFunctionAttrName)) {
        return StringRef();
      }
      return op
          ->getAttrOfType<FlatSymbolRefAttr>(TF::kStablehloEntryFunctionAttrName)
          .getValue();
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 6.8K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/lite/experimental/tac/transforms/fold_constants_to_subgraph.cc

                                   mlir::OperationPass<ModuleOp>> {
     public:
      MLIR_DEFINE_EXPLICIT_INTERNAL_INLINE_TYPE_ID(FoldConstantsToSubgraphPass)
    
      llvm::StringRef getArgument() const final {
        return "tfl-fold-constants-to-subgraph";
      }
      llvm::StringRef getDescription() const final {
        return "Fold constants into each subgraph.";
      }
      FoldConstantsToSubgraphPass() = default;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 6.1K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/quantization/tensorflow/cc/quantization_unit_loc.cc

      if (!llvm::isa<CallSiteLoc>(attr)) return false;
      auto callsite_loc = llvm::dyn_cast<CallSiteLoc>(attr);
    
      if (!mlir::isa<NameLoc>(callsite_loc.getCaller())) return false;
      StringRef caller_name =
          mlir::cast<NameLoc>(callsite_loc.getCaller()).getName().strref();
      return caller_name.starts_with(kQuantizationUnitPrefix) &&
             caller_name.ends_with(kQuantizationUnitSuffix);
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 4.2K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tf2xla/transforms/xla_legalize_tf_test.cc

    ==============================================================================*/
    #include <functional>
    #include <memory>
    
    #include <gtest/gtest.h>
    #include "absl/strings/string_view.h"
    #include "llvm/ADT/StringRef.h"
    #include "mlir/Dialect/Func/IR/FuncOps.h"  // from @llvm-project
    #include "mlir/IR/BuiltinOps.h"  // from @llvm-project
    #include "mlir/IR/DialectRegistry.h"  // from @llvm-project
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 02 09:16:07 UTC 2024
    - 4.2K bytes
    - Viewed (0)
Back to top