Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 93 for mhlo (0.86 sec)

  1. tensorflow/compiler/mlir/tf2xla/api/v1/compile_tf_graph.cc

    #include "tensorflow/compiler/tf2xla/xla_compiler.h"
    #include "tensorflow/compiler/tf2xla/xla_helpers.h"
    #include "xla/client/compile_only_client.h"
    #include "xla/hlo/ir/hlo_input_output_alias_config.h"
    #include "xla/mlir_hlo/mhlo/IR/register.h"
    #include "xla/shape.h"
    #include "xla/shape_util.h"
    #include "xla/status_macros.h"
    #include "tensorflow/core/framework/function.h"
    #include "tensorflow/core/framework/op.h"
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Jun 12 22:19:26 UTC 2024
    - 14K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tf2xla/internal/passes/clustering_passes.td

                step_marker_location = ""} : (tensor<*xi32>) -> tensor<*xi32>
            return
          }
          func @func(%arg0: tensor<*xi32> {mhlo.sharding = "\01\02\03"}) ->
                    (tensor<*xi32> {mhlo.sharding = "\08\01\1A\01\01\22\01\00"}) {
            %0 = "tf.XlaSharding"(%arg0) {_XlaSharding = "\01\02\03", sharding = "\01\02\03"} : (tensor<*xi32>) -> tensor<*xi32>
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Apr 30 02:01:13 UTC 2024
    - 19.8K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tensorflow/transforms/cluster_ops_by_policy.h

    // operations constraints to form a valid cluster.
    //
    // Example: compilation using XLA (MHLO) lowering
    //
    //   %0 = "tf.Transpose"(%input, %perm)
    //        : (tensor<?x?xf32>, tensor<2xi32>) -> tensor<?x?xf32>
    //
    //   XLAs `mhlo.transpose` operation requires permutation to be an attribute
    //   (compile time value), so it means that if we want to put `tf.Transpose`
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Mar 03 03:47:00 UTC 2023
    - 12.1K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/quantization/tensorflow/quantize_passes.cc

    #include "tensorflow/compiler/mlir/quantization/tensorflow/quantization_options.pb.h"
    #include "tensorflow/compiler/mlir/tensorflow/transforms/passes.h"
    #include "xla/mlir_hlo/mhlo/transforms/passes.h"
    
    namespace tensorflow {
    namespace quantization {
    namespace {
    
    using ::tensorflow::quantization::QuantizationOptions;
    
    void AddConvertTpuToCpuModelPasses(mlir::OpPassManager &pm) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 10 04:07:09 UTC 2024
    - 9.9K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/quantization/stablehlo/passes/passes.td

      let dependentDialects = ["mlir::stablehlo::StablehloDialect"];
      let constructor = "mlir::quant::stablehlo::CreateQuantizeWeightPass()";
    }
    
    def UnfuseMhloBatchNormPass : Pass<"stablehlo-unfuse-mhlo-batch-norm", "mlir::func::FuncOp"> {
      let summary = "Unfuses batch normalization into arithmetic ops.";
    }
    
    def LiftQuantizableSpotsAsFunctionsPass : Pass<"stablehlo-lift-quantizable-spots-as-functions", "mlir::ModuleOp"> {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 14 06:31:57 UTC 2024
    - 10.3K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tf2xla/transforms/legalization_op_config.cc

    #include "llvm/ADT/DenseSet.h"
    #include "tensorflow/compiler/mlir/tensorflow/ir/tf_ops.h"
    #include "tensorflow/compiler/mlir/tensorflow/ir/tpu_embedding_ops_registry.h"
    
    namespace mlir {
    namespace mhlo {
    
    namespace {
    
    // Returns ops that should use MLIR legalization.
    // All other ops not in this list should use XlaOpKernel.
    const llvm::DenseSet<mlir::TypeID>& MlirAlwaysOps() {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Apr 24 04:08:35 UTC 2024
    - 21.7K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tf2xla/internal/passes/mark_ops_for_outside_compilation.cc

      if (HasStringResult(op)) return false;
      if (MatchesPattern(op, supported_ops)) return true;
    
      auto abstractOp = op.getRegisteredInfo();
      if (!abstractOp) return false;
      return mlir::mhlo::HasTf2XlaFallback(abstractOp->getTypeID());
    }
    
    bool IsVariant(Value value) {
      return mlir::isa<mlir::TF::VariantType>(
          getElementTypeOrSelf(value.getType()));
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 21.4K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tensorflow/transforms/host_runtime/tpu_metadata_utils.cc

                          op.getNumOperands(), input_shardings.size()));
    
      // Set args metadata in proto.
      mlir::StringAttr replication_attr_name = mlir::StringAttr::get(
          op.getContext(), "mhlo.is_same_data_across_replicas");
    
      auto dynamic_arg_idx = op->getAttrOfType<ArrayAttr>(TF::kDynamicArgIndexAttr);
      llvm::SmallSet<int, 4> dynamic_arg_idx_set;
      if (dynamic_arg_idx) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 10.3K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/lite/transforms/passes.h

    namespace mlir {
    namespace quant {
    class QuantizationDialect;
    }
    namespace quantfork {
    class QuantizationForkDialect;
    }
    namespace mhlo {
    class MhloDialect;
    }
    namespace TF {
    class TensorFlowDialect;
    }
    namespace TFL {
    class TFLDialect;
    typedef TFLDialect TensorFlowLiteDialect;
    }  // namespace TFL
    namespace func {
    class FuncOp;
    }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Mar 07 21:29:34 UTC 2024
    - 10.9K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tensorflow/transforms/xla_call_module_deserialization.cc

    #include "tensorflow/compiler/mlir/tensorflow/utils/xla_call_module_attrs.h"
    #include "tensorflow/compiler/tf2xla/kernels/xla_call_module_loader.h"
    #include "xla/mlir_hlo/mhlo/IR/hlo_ops.h"  // IWYU pragma: keep
    #include "tsl/platform/statusor.h"
    
    namespace mlir {
    namespace TF {
    namespace {
    
    #define GEN_PASS_DEF_XLACALLMODULEDESERIALIZATIONPASS
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 23 09:05:47 UTC 2024
    - 11.1K bytes
    - Viewed (0)
Back to top