Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 56 for constexpr (0.26 sec)

  1. tensorflow/compiler/mlir/tf2xla/internal/test_matchers_test.cc

    }
    
    TEST(TestUtil, MlirModuleDoesNotHave) {
      constexpr char arbirary_mlir[] = "arbirary_mlir";
      constexpr char bad_mlir[] = "bad_mlir";
    
      ASSERT_THAT(success(arbirary_mlir), Not(HasMlirModuleWith(bad_mlir)));
    }
    
    TEST(TestUtil, MlirModuleDoesNotHaveFiltered) {
      constexpr char arbirary_mlir[] = "arbirary_mlir";
      constexpr char bad_mlir[] = "bad_mlir";
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sun Apr 14 20:29:34 UTC 2024
    - 4.3K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tf2xla/internal/legalize_tf_to_hlo_test.cc

    using tpu::TPUCompileMetadataProto;
    
    static constexpr char kMlirLegalizeCount[] =
        "/tensorflow/core/tf2xla/v1/mlir_failed_xla_legalize_tf_count";
    static constexpr char kMlirLegalizeErrors[] =
        "/tensorflow/core/tf2xla/v1/mlir_failed_xla_legalize_tf_pass_count";
    static constexpr char kBridgeStatusCounter[] =
        "/tensorflow/core/tf2xla/api/v2/phase2_compilation_status";
    constexpr char kMlirCombinedMlirSuccess[] = "kMlirCombinedMlirSuccess";
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sun Apr 14 20:29:34 UTC 2024
    - 6K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tensorflow/utils/attribute_utils.h

    // 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";
    // Function attribute to signal that a function should be skipped from TPU
    // island outlining. The attribute is set in
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 22 19:47:48 UTC 2024
    - 8.7K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tensorflow/utils/stablehlo_custom_call.cc

    // to represent calling a TF host callback function.
    constexpr llvm::StringRef kTfTargetName = "tf.call_tf_function";
    
    // `tf.backend_config` is a DictionaryAttr, JAX2TF sets the value of its
    // string attribute `caller_name` to the TF host callback function's name.
    constexpr llvm::StringRef kTfBackendConfigAttrName = "tf.backend_config";
    constexpr llvm::StringRef kCalledFuncAttrName = "called_func";
    
    }  // namespace
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 2.6K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/quantization/common/lift_as_function_call.h

    // Presence of this attribute will mark the function as quantization target.
    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)
  6. tensorflow/compiler/mlir/tensorflow/transforms/tpu_partitioned_op_conversion.cc

              TPUPartitionedOpConversionPass> {
      void runOnOperation() override;
    };
    
    template <typename T>
    LogicalResult ReplacePartitionedOp(IntegerAttr num_cores_per_replica, T op) {
      constexpr bool is_input =
          std::is_same_v<std::decay_t<T>, TF::TPUPartitionedInputOp>;
      static_assert(
          is_input || std::is_same_v<std::decay_t<T>, TF::TPUPartitionedOutputOp>,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 5.1K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tensorflow/transforms/constant_fold.cc

      int64_t operands_size = get_size(inst->getOperandTypes());
    
      constexpr int kSizeFactor = 2;
    // TODO(b/233827625): Remove TF_DISABLE_CONSTANT_FOLDING macro.
    #ifdef TF_DISABLE_CONSTANT_FOLDING
      constexpr int64_t kResultsSizeThreshold = 0;
    #else
      constexpr int64_t kResultsSizeThreshold = (1 << 23);  // 1 MB
    #endif
      constexpr int64_t kOperandsSizeThreshold = (1 << 30);  // 128 MB
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 5.3K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tf2xla/api/v2/tf_dialect_to_executor.cc

        "/tensorflow/core/tf2xla/api/v2/tf_dialect_to_executor_dialect_status",
        "Counts how often a successful export from TF Dialect to Executor Dialect "
        "is",
        "status");
    
    constexpr char kExportSuccess[] = "success";
    constexpr char kExportFailed[] = "failed";
    
    namespace {
    
    void AddTfDialectToExecutorPasses(OpPassManager &pm) {
      pm.addPass(mlir::TF::CreateTFRegionControlFlowToFunctional());
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon May 13 23:22:50 UTC 2024
    - 6.8K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tf2xla/api/v2/tf_dialect_to_executor_test.cc

    #include "tsl/lib/core/status_test_util.h"
    
    namespace tensorflow {
    namespace tf2xla {
    namespace v2 {
    namespace {
    
    constexpr char kExportStreamzName[] =
        "/tensorflow/core/tf2xla/api/v2/tf_dialect_to_executor_dialect_status";
    constexpr char kExportSuccess[] = "success";
    constexpr char kExportFailed[] = "failed";
    
    using mlir::DialectRegistry;
    using mlir::MLIRContext;
    using mlir::ModuleOp;
    using mlir::OwningOpRef;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon May 13 23:22:50 UTC 2024
    - 4.4K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/lite/stablehlo/odml_converter/transforms/outline_composites.cc

    #include "tensorflow/compiler/mlir/lite/stablehlo/odml_converter/passes.h.inc"
    
    constexpr float kOne = 1.0;
    const float kOneOverRoot2 = kOne / std::sqrt(2);
    constexpr float kHalf = kOne / 2.0;
    constexpr float kTolerance = kOne / 1000.0;
    
    // Gets the operation that uses the sole result of given operation
    // if there is only one.
    Operation* GetUserIfOnlyOne(Operation* op) {
      if (op->getNumResults() != 1) return nullptr;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 17 17:58:54 UTC 2024
    - 9.6K bytes
    - Viewed (0)
Back to top