Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 155 for constexpr (0.14 sec)

  1. 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)
  2. tensorflow/compiler/mlir/quantization/stablehlo/passes/testing/test_lift_quantizable_spots_as_functions_with_quantization_specs.cc

    using ::tsl::protobuf::io::ArrayInputStream;
    
    // Empty (default) `QuantizationSpecs` proto.
    constexpr absl::string_view kSpecsEmpty = R"pb(specs
                                                   [])pb";
    
    // Configure `QuantizationSpecs` to disable quantization for all dot_general
    // quantizable units.
    constexpr absl::string_view kSpecsDisableAllDotGeneral =
        R"pb(specs
             [ {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Mar 28 23:21:42 UTC 2024
    - 5.4K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/lite/experimental/tac/hardwares/nnapi_hardware.cc

    namespace mlir {
    namespace TFL {
    namespace tac {
    
    // The copy can be non-consectutive copy. This is just fake data.
    constexpr float kNNAPICopyUnitCost = 0.2;
    
    // Default values.
    constexpr float kNNAPIDefaultFixedValuedCost = 10000.0;
    
    constexpr char NNAPIHardware::kId[];  // Define kId.
    
    mlir::RewritePatternSet NNAPIHardware::GetTransformations(
        MLIRContext* context) const {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jun 06 03:08:33 UTC 2023
    - 3.3K bytes
    - Viewed (0)
  4. 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)
  5. tensorflow/compiler/mlir/tf2xla/internal/inference/inference_metrics_pass_test.cc

    namespace {
    
    using ::mlir::MLIRContext;
    using ::mlir::ModuleOp;
    using ::mlir::OwningOpRef;
    using ::mlir::mhlo::test::GetMlirModuleFromString;
    using ::tensorflow::monitoring::testing::CellReader;
    
    static constexpr char kHasTpuPartitionedCallStreamzName[] =
        "/tensorflow/core/tf2xla/internal/inference/tpu_partitioned_call";
    
    class InferenceMetricsPassTest : public ::testing::Test {
     protected:
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Sep 06 19:12:29 UTC 2023
    - 3.6K bytes
    - Viewed (0)
  6. 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)
  7. 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)
  8. tensorflow/compiler/mlir/lite/utils/lstm_utils.h

    #include "tensorflow/compiler/mlir/lite/ir/tfl_ops.h"
    
    namespace mlir {
    namespace TFL {
    
    constexpr char kTFImplements[] = "tf._implements";
    constexpr char kLstmCellSimple[] = "LSTMCellSimple";
    constexpr char kLayerNormalizedLstmCellSimple[] =
        "LayerNormalizedLstmCellSimple";
    constexpr char kCoupleInputForgetGates[] = "CoupleInputForgetGates";
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sat Jun 03 00:14:05 UTC 2023
    - 7.3K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tf2xla/api/v1/tf_dialect_to_executor.cc

        "/tensorflow/core/tf2xla/api/v1/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) {
      auto add_pass = [&](std::unique_ptr<Pass> pass) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Feb 16 03:41:02 UTC 2024
    - 7.1K bytes
    - Viewed (0)
  10. 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)
Back to top