Search Options

Results per page
Sort
Preferred Languages
Advance

Results 91 - 100 of 303 for constexpr (0.24 sec)

  1. tensorflow/compiler/mlir/quantization/stablehlo/cc/report_test.cc

                  StrEq("quantized_my_function"));
      EXPECT_TRUE(first_result.method().has_no_quantization());
    }
    
    TEST_F(QuantizationReportTest, InitializeWithModuleOp) {
      constexpr absl::string_view kQuantizedDotGeneral = R"mlir(
        func.func @main(%arg0: tensor<1x2xf32>) -> tensor<1x3xf32> {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 10:10:34 UTC 2024
    - 18.5K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/lite/utils/perception_ops_utils.cc

    #include "tensorflow/compiler/mlir/tensorflow/ir/tf_ops.h"
    #include "tensorflow/lite/c/builtin_op_data.h"
    
    namespace mlir {
    namespace TFL {
    
    namespace {
    
    constexpr char kTFImplements[] = "tf._implements";
    constexpr char kMaxUnpooling[] = "MaxUnpooling2D";
    constexpr char kImageWarping[] = "DenseImageWarp";
    
    inline ConstBytesAttr CustomOption(OpBuilder* builder,
                                       const std::string& content) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 17 17:58:54 UTC 2024
    - 8.9K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tensorflow/transforms/xla_call_module_serialization.cc

    // `tf.backend_config` is a DictionaryAttr, JAX2TF sets the value of its
    // i64 attribute `called_index` to the TF function's name.
    constexpr llvm::StringRef kTfBackendConfigAttrName = "tf.backend_config";
    constexpr llvm::StringRef kCalledIndexAttrName = "called_index";
    constexpr llvm::StringRef kCalledFuncAttrName = "called_func";
    
    // Converts `called_func` attributes in custom call ops back to `called_index`.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 9.5K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tensorflow/ir/tf_ops_layout_helper.h

      MLIRContext *context =
          (*op)->template getParentOfType<ModuleOp>().getContext();
    
      // We only support NHWC <-> NCHW permutations.
      static constexpr std::array<int64_t, 4> kNchwToNhwc = {0, 2, 3, 1};
      static constexpr std::array<int64_t, 4> kNhwcToNchw = {0, 3, 1, 2};
    
      // Operation data format after folding `permutation`.
      StringRef target_data_format = [&]() -> StringRef {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jun 08 01:19:25 UTC 2023
    - 5.3K bytes
    - Viewed (0)
  5. tensorflow/compiler/aot/benchmark.cc

      const size_t count_us = sorted_us.size();
      double sum_us = 0;
      size_t count_us_trimmed = 0;
      double sum_us_trimmed = 0;
      size_t count_us_best = 0;
      double sum_us_best = 0;
      static constexpr float trim_ratio = 0.25;
      static constexpr float best_ratio = 0.1;
      const size_t count_trimmed = count_us * trim_ratio;
      const size_t count_best = count_us * best_ratio;
      for (size_t i = 0; i < sorted_us.size(); ++i) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Sep 12 19:45:29 UTC 2023
    - 4.5K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tensorflow/transforms/xla_call_module_deserialization.cc

    // `tf.backend_config` is a DictionaryAttr, JAX2TF sets the value of its
    // i64 attribute `called_index` to the TF function's name.
    constexpr llvm::StringRef kTfBackendConfigAttrName = "tf.backend_config";
    constexpr llvm::StringRef kCalledIndexAttrName = "called_index";
    constexpr llvm::StringRef kCalledFuncAttrName = "called_func";
    
    // Deserialize the StableHLO module embedded in XlaCallModuleOp's module
    // attribute.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 23 09:05:47 UTC 2024
    - 11.1K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tensorflow/transforms/host_runtime/tpu_rewrite_pass.cc

    namespace mlir {
    namespace TFTPU {
    
    constexpr char kStepMarkerLocationAttr[] = "step_marker_location";
    constexpr char kDevicesAttr[] = "devices";
    constexpr char kVersionsAttr[] = "tf.versions";
    constexpr char kUseXlaSpmdAttr[] = "use_spmd_for_xla_partitioning";
    
    constexpr char kBadStringArrayElementMsg[] =
        "bad '{0}' attribute at index {1}, not a string";
    constexpr char kBadArrayElementMsg[] =
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Apr 30 21:25:12 UTC 2024
    - 29.7K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/lite/quantization/tensorflow/fallback_to_flex_ops.cc

    // remove the attribute and skip further processing on those ops.
    constexpr char kNoFallbackAttr[] = "no_fallback";
    // TF Quantization modes. These constants are defined as char arrays so they
    // can parsed by the pass option.
    constexpr char kDefaultMode[] = "DEFAULT";
    constexpr char kLegacyIntegerMode[] = "LEGACY_INTEGER";
    
    // Checks if the operation is TF FakeQuant ops.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 12.2K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tensorflow/utils/dump_mlir_util.h

    #include "mlir/IR/Operation.h"  // from @llvm-project
    #include "mlir/Pass/PassManager.h"  // from @llvm-project
    #include "tensorflow/core/platform/status.h"
    
    namespace tensorflow {
    
    inline constexpr absl::string_view kCrashReproducerStdErr = "-";
    inline constexpr absl::string_view kCrashReproducerCrashAnalysis =
        "crash_analysis";
    
    // Creates a file to use for dumping and returns success if a file could be
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jun 06 04:50:13 UTC 2023
    - 4.8K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tf2xla/internal/passes/hoist_broadcast_read.cc

    using mlir::TF::ReadVariableOp;
    using mlir::tf_device::ReplicateOp;
    
    #define GEN_PASS_DEF_HOISTBROADCASTREADPASS
    #include "tensorflow/compiler/mlir/tf2xla/internal/passes/clustering_passes.h.inc"
    
    constexpr char kFuncDeviceAttr[] = "tf.device";
    constexpr char kCpuDeviceType[] = "CPU";
    
    struct HoistBroadcastRead
        : public impl::HoistBroadcastReadPassBase<HoistBroadcastRead> {
      void runOnOperation() override;
    };
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 5.3K bytes
    - Viewed (0)
Back to top