Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 93 for mhlo (0.03 sec)

  1. tensorflow/compiler/mlir/tf2xla/transforms/legalize_tf_patterns.td

    class MHLO_ComparisonDirectionValue<string enumStr> :
      ConstantAttr<MHLO_ComparisonDirectionAttr, "::mlir::mhlo::ComparisonDirection::" # enumStr>;
    
    class CHLO_ComparisonDirectionValue<string enumStr> :
      ConstantAttr<CHLO_ComparisonDirectionAttr, "::mlir::chlo::ComparisonDirection::" # enumStr>;
    
    // TODO(b/228291745): Assert that $x and $y have the same shape.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon May 06 18:46:23 UTC 2024
    - 34.8K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/quantization/stablehlo/passes/bridge/convert_tf_quant_to_mhlo_int_test.cc

          absl::Span<const xla::Literal* const> arguments) {
        // Replace args by mhlo.constant since the lowering passes can't lower
        // tf.Const.
        TF_ASSIGN_OR_RETURN(
            auto module_op,
            ReplaceFuncArgsByConstant(program, arguments, /*use_mhlo_const=*/true));
    
        // Run the Convert TF Quant Types, TF Quant -> MHLO Quant and MHLO Quant ->
        // MHLO int passes.
        PassManager pm(module_op->getContext());
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Apr 03 01:03:21 UTC 2024
    - 35.8K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tensorflow/transforms/host_runtime/runtime_passes.td

               "Whether to serialize TPUCompileMetadataProto metadata in 'tf._TPUCompileMlir' op as a proto debug string">
      ];
    
      let dependentDialects = [
        "mlir::mhlo::MhloDialect",
        "mlir::tf_device::TensorFlowDeviceDialect"
      ];
      let constructor = "mlir::TFTPU::CreateTPURewritePass()";
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Jan 10 18:58:57 UTC 2024
    - 10.7K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/quantization/stablehlo/passes/bridge/convert_tf_quant_types.cc

    // The TF dialect uses some TF types that are illegal in the MHLO dialect and
    // some generic types that are legal in MHLO. This pass legalizes TF types into
    // types that are legal in MHLO. For example, TF::Qint8Type is converted to i8.
    // Rewrites here should run before TF to MHLO op legalizations are run.
    
    #include <memory>
    #include <string>
    #include <utility>
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 12.6K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/python/mlir.cc

        mlir::registerAllPasses();
        mlir::registerTensorFlowPasses();
        mlir::TFDevice::registerTensorFlowDevicePasses();
        mlir::mhlo::registerAllMhloPasses();
        // These are in compiler/mlir/xla and not part of the above MHLO
        // passes.
        mlir::mhlo::registerTfXlaPasses();
        mlir::mhlo::registerLegalizeTFPass();
        mlir::quant::stablehlo::registerBridgePasses();
        mlir::tosa::registerLegalizeTosaPasses();
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 03 18:16:49 UTC 2024
    - 19.3K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tf2xla/transforms/tf2xla_rewriter_test.cc

    #include "xla/client/xla_computation.h"
    #include "xla/mlir_hlo/mhlo/IR/hlo_ops.h"
    #include "xla/shape_util.h"
    #include "xla/xla_data.pb.h"
    #include "tensorflow/core/framework/op_kernel.h"
    #include "tsl/lib/core/status_test_util.h"
    #include "tsl/platform/errors.h"
    #include "tsl/platform/status.h"
    #include "tsl/platform/statusor.h"
    
    namespace mlir {
    namespace mhlo {
    
    using ::mlir::LogicalResult;
    using ::mlir::ModuleOp;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 02 09:16:07 UTC 2024
    - 11.7K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tf2xla/transforms/legalize_tf_collective.cc

    #include "tensorflow/compiler/mlir/tensorflow/ir/tf_ops.h"
    #include "tensorflow/compiler/mlir/tf2xla/transforms/utils.h"
    #include "xla/mlir_hlo/mhlo/IR/hlo_ops.h"
    #include "xla/mlir_hlo/utils/convert_op_folder.h"
    #include "xla/mlir_hlo/utils/hlo_utils.h"
    #include "xla/xla_data.pb.h"
    
    namespace mlir {
    namespace mhlo {
    
    namespace {
    
    constexpr absl::string_view kGroupSizeAttrName =
        "tf2xla.collective_info.group_size";
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 16K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/quantization/stablehlo/tests/passes/quantize/quantize_op_with_region.mlir

        // CHECK: %[[RQ:.*]] = stablehlo.uniform_quantize %[[DOT]]
        // CHECK: return %[[RQ]]
    
        %0 = stablehlo.dot_general %arg0, %arg1, batching_dims = [0, 1] x [0, 1], contracting_dims = [3] x [2] {mhlo.frontend_attributes = {grad_x = "false", grad_y = "false"}} : (tensor<2x3x1x1024xf32>, tensor<2x3x1024x3xf32>) -> tensor<2x3x1x3xf32>
        return %0 : tensor<2x3x1x3xf32>
      }
    }
    
    // -----
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 18 20:32:46 UTC 2024
    - 18.9K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tf2xla/api/v2/legalize_tf_test.cc

      module attributes {tf.versions = {bad_consumers = [], min_consumer = 0 : i32, producer = 268 : i32}} {
      func.func @main(%arg0: tensor<?xi32, #mhlo.type_extensions<bounds = [3]>> ) -> (tensor<?xi32, #mhlo.type_extensions<bounds = [3]>>) {
        func.return %arg0 : tensor<?xi32, #mhlo.type_extensions<bounds = [3]>>
      }
    })";
    
      auto compilation_result = CompileMlirModule(
          kMlirModuleWithBoundedDynamicArgStr,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jun 13 23:59:33 UTC 2024
    - 16.1K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tf2xla/api/v1/compile_tf_graph_test.cc

        module @module___inference_tpu_function_41 attributes {tf.versions = {bad_consumers = [], min_consumer = 0 : i32, producer = 1617 : i32}} {
          func.func @main(%arg0: tensor<2x2xf32>) -> (tensor<2x2xf32> {mhlo.sharding = "\08\03\1A\02\02\01\22\02\00\01"}) {
            %0 = tf_executor.graph {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sat Apr 13 08:08:57 UTC 2024
    - 11.7K bytes
    - Viewed (0)
Back to top