- Sort Score
- Result 10 results
- Languages All
Results 121 - 130 of 244 for StringRef (0.23 sec)
-
tensorflow/compiler/mlir/quantization/tensorflow/debugging/mlir_dump_test.cc
#include "tensorflow/compiler/mlir/quantization/tensorflow/debugging/mlir_dump.h" #include <memory> #include <string> #include <vector> #include "absl/cleanup/cleanup.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/BuiltinDialect.h" // from @llvm-project
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Feb 14 03:17:14 UTC 2024 - 6.4K bytes - Viewed (0) -
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) -
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) -
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) -
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) -
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) -
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) -
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) -
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) -
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)