Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 58 for do (0.04 sec)

  1. tensorflow/compiler/mlir/lite/transforms/optimize_op_order.cc

            get_num_elements(input_type) <= get_num_elements(output_type)) {
          return failure();
        }
        Type input_element_type = getElementTypeOrSelf(dequantize_op.getInput());
        // Most passthrough ops do not support F16.
        if (input_element_type.isF16()) {
          return failure();
        }
    
        // Set the output type of the dequantize op and push it down.
        dequantize_op.getOutput().setType(output_type);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 5.1K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tensorflow/utils/bridge_logger_test.cc

      EXPECT_TRUE(
          logger_config1.ShouldPrint(dummy_pass.get(), mlir_module_with_add.get()));
      EXPECT_TRUE(
          logger_config1.ShouldPrint(dummy_pass.get(), mlir_module_with_sub.get()));
    
      // Both strings do not appear in any module.
      setenv("MLIR_BRIDGE_LOG_STRING_FILTER", "func @main(%arg0:tensor;XXX", 1);
      BridgeLoggerConfig logger_config2;
      EXPECT_FALSE(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jun 06 04:50:13 UTC 2023
    - 6.7K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/lite/stablehlo/transforms/transforms.cc

    }
    
    void AddStablehloOptimizationPasses(OpPassManager& pm) {
      // The current plan of record is to avoid doing optimization passes
      // on StableHLO, treating StableHLO purely as an input format, and do all
      // optimizations via MHLO passes that can be shared with the OpenXLA compiler.
      // Therefore, this function inserts a StableHLO <=> MHLO roundtrip to make
      // this happen.
    
      // StableHLO -> MHLO legalization.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 04:34:23 UTC 2024
    - 5.8K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/lite/transforms/decompose_hybrid_quantization.cc

    // requantizing if a quantized output is required.
    //
    // The motivation behind these changes is for Dialects that assume only float
    // or quantized computation, and do not support a mixture of these types on
    // dense operations. Decomposition allows TFLite to be compiled to these
    // dialects, such as TOSA.
    
    #include <utility>
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 5.8K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tf2xla/transforms/verify_tfxla_legalization.cc

        "/tensorflow/core/tf2xla/"
        "mlir_second_phase_non_static_op_count",
        "Counts which ops do not have static results", "op_name");
    
    auto* mlir_non_static_op_skip_count = tensorflow::monitoring::Counter<1>::New(
        "/tensorflow/core/tf2xla/"
        "mlir_second_phase_non_static_op_skip_count",
        "Counts skipped ops which do not have static results", "op_name");
    
    static const char* kMustBeConstantError =
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 6.1K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tensorflow/transforms/optimize_global_tensors.cc

        }
      }
    
      return global_tensor_uses;
    }
    
    // Removes `is_mutable` attribute from tf_saved_model.global_tensor ops where we
    // can prove it is safe to do so.
    void MarkGlobalTensorsImmutable(
        ModuleOp module, const GlobalTensorUsesMap& global_tensor_uses_map,
        const TF::ResourceAnalyzer& resource_analyzer) {
      for (const auto& kv : global_tensor_uses_map) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 5.9K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tf2xla/api/v1/tf_dialect_to_executor.cc

      };
    
      pm.addPass(mlir::tf_executor::CreateTFExecutorTPUV1IslandInliningPass());
      // There are cases where we don't consume all compilation and
      // replication attributes like we do for the V2 pipeline, so we need to
      // convert them from unified to legacy attributes before they get
      // exposed to outside of the bridge.
      pm.addNestedPass<FuncOp>(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Feb 16 03:41:02 UTC 2024
    - 7.1K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/quantization/stablehlo/ops/stablehlo_op_quant_spec.cc

      }
      return scale_spec;
    }
    
    bool IsOpQuantizableStableHlo(Operation* op) {
      if (isa<func::ConstantOp, mlir::stablehlo::ConstantOp>(op)) {
        // Constant ops do not have QuantizableResult attribute but can be
        // quantized.
        return true;
      } else if (op->hasTrait<OpTrait::IsTerminator>() ||
                 isa<quantfork::QuantizeCastOp, quantfork::DequantizeCastOp>(op)) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 09 05:56:10 UTC 2024
    - 7.8K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tensorflow/transforms/lift_variables.cc

          llvm::ArrayRef<TensorType> underlying_type =
              mlir::cast<TF::ResourceType>(arg_type.getElementType()).getSubtypes();
    
          // If the arg type already matches the global_tensor type, we don't need
          // to do anything.
          if (!underlying_type.empty() &&
              underlying_type[0] == global_tensor.getType()) {
            assert(underlying_type.size() == 1);
            continue;
          }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 23 09:05:47 UTC 2024
    - 7.9K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tensorflow/translate/split_into_island_per_op_pass.cc

    #include "tensorflow/compiler/mlir/tensorflow/ir/tf_ops.h"
    
    // This pass is used in preparation for Graph export.
    // The GraphDef exporter expects each op to be in its own island.
    // This pass puts the IR in that form.
    //
    // We do this as an IR->IR transform to keep the Graph exporter as simple as
    // possible.
    
    namespace mlir {
    namespace TF {
    
    namespace {
    
    #define GEN_PASS_DEF_SPLITINTOISLANDPEROPPASS
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Mar 17 07:31:01 UTC 2023
    - 7.3K bytes
    - Viewed (0)
Back to top