Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 236 for legalize (0.21 sec)

  1. tensorflow/compiler/mlir/tf2xla/transforms/verify_tfxla_legalization.cc

    auto* mlir_failed_legalization_op_count =
        tensorflow::monitoring::Counter<1>::New(
            "/tensorflow/core/tf2xla/"
            "mlir_second_phase_failed_legalization_op_count",
            "Counts which op fails to legalize", "op_name");
    
    auto* mlir_non_static_op_count = tensorflow::monitoring::Counter<1>::New(
        "/tensorflow/core/tf2xla/"
        "mlir_second_phase_non_static_op_count",
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 6.1K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/lite/stablehlo/transforms/legalize_hlo_conversions/dot_general.h

    See the License for the specific language governing permissions and
    limitations under the License.
    ==============================================================================*/
    
    // Legalize mhlo.dot_general to tflite.batch_matmul.
    
    #ifndef TENSORFLOW_COMPILER_MLIR_LITE_STABLEHLO_TRANSFORMS_LEGALIZE_HLO_CONVERSIONS_DOT_GENERAL_H_
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Oct 04 19:00:01 UTC 2023
    - 2.3K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tf2xla/internal/legalize_tf_to_hlo.h

    #include "xla/client/compile_only_client.h"
    #include "tensorflow/core/tpu/kernels/tpu_compile_op_support.h"
    #include "tsl/platform/statusor.h"
    
    namespace tensorflow {
    namespace tf2xla {
    namespace internal {
    
    // Legalize the given MLIR module to XLA HLO using a combination of the MLIR
    // Bridge and XlaBuilder
    absl::StatusOr<XlaCompilationResult> LegalizeTfToHlo(
        const tpu::MlirToHloArgs& computation,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sun Apr 14 20:29:34 UTC 2024
    - 2K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/lite/quantization/stablehlo/quantization.cc

      }
    
      if (failed(mlir::tf_saved_model::FreezeVariables(
              module_op, saved_model_bundle->GetSession()))) {
        return absl::InternalError("Failed to freeze variables.");
      }
    
      // Run legalize TF to StableHLO pass to convert `tf.Const` and
      // `tf.Const`->`tf.Cast` patterns after variable freezing. The TF shape
      // inference pass is also required to resolve unknown shapes in the TF dialect
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sun Apr 14 10:49:12 UTC 2024
    - 7.3K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/lite/stablehlo/transforms/tf_stablehlo_pass.cc

        registry.insert<shape::ShapeDialect>();
      }
    
     public:
      StringRef getArgument() const final { return "tf-mhlo"; }
      StringRef getDescription() const final {
        return "This pass will legalize TF Ops to MHLO Ops.";
      }
    
     protected:
      Option<bool> skip_quantization_ops_{
          *this, "skip-quantization-ops",
          ::llvm::cl::desc("Skip quantization ops")};
    
      Option<bool> skip_resize_{
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 28 21:49:50 UTC 2024
    - 7.5K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/lite/stablehlo/tests/tfl_legalize_hlo_custom_call.mlir

    // RUN: odml-to-stablehlo-opt %s -tfl-legalize-hlo -split-input-file | FileCheck %s --dump-input=fail
    
    // CHECK-LABEL: mhlo_custom_call_test__legalize_string_backend_config
    func.func @mhlo_custom_call_test__legalize_string_backend_config(%arg0: tensor<1x4xf32>) -> tensor<1x8xf32> {
      %0 = mhlo.custom_call @custom_call.my_custom_op(%arg0) {
        api_version = 1 : i32,
        backend_config = "this_is_a_test_string"
      } : (tensor<1x4xf32>) -> (tensor<1x8xf32>)
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 02 09:41:17 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/lite/stablehlo/transforms/legalize_stablehlo_to_vhlo.cc

              for (auto arg : block.getArguments()) {
                ConvertAndWrapUsesInUnrealizedCast(arg, converter, rewriter);
              }
            }
          }
        });
      });
      return success();
    }
    
    // Legalize StableHLO portion of program to VHLO, leaves TFL untouched
    LogicalResult ApplyStablehloToVhloPatterns(ModuleOp module,
                                               bool is_func_legal) {
      MLIRContext *context = module.getContext();
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 15 19:48:51 UTC 2024
    - 12.3K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tensorflow/tests/legalize_tfg.mlir

    // RUN: tf-opt -tfe-legalize-tfg %s | FileCheck %s
    
    // CHECK: module attributes {tf.versions = {bad_consumers = [], min_consumer = 12 : i32, producer = 919 : i32}}
    module  {
      // CHECK: tf_executor.graph
      tfg.graph #tf_type.version<producer = 919, min_consumer = 12> {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Oct 30 06:52:55 UTC 2023
    - 2.9K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/lite/transforms/legalize_tf_while.cc

    #include "tensorflow/compiler/mlir/tensorflow/ir/tf_ops.h"
    
    namespace mlir {
    namespace TFL {
    namespace {
    #define GEN_PASS_DEF_LEGALIZEWHILEPASS
    #include "tensorflow/compiler/mlir/lite/transforms/passes.h.inc"
    
    // Legalize TF While to TFL While with calls to the original functions from the
    // cond and body regions.
    struct LegalizeWhilePass
        : public impl::LegalizeWhilePassBase<LegalizeWhilePass> {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Nov 03 12:35:38 UTC 2022
    - 3.4K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tf2xla/transforms/tf2xla_rewriter.h

                                             llvm::SmallVector<Value>& outputs);
    
      // Tries to legalize the specified TensorFlow op, if supported.
      //
      // Emits an error and returns failure if an error is encountered during
      // conversion. Note that success return value doesn't mean successful
      // legalization.
      mlir::LogicalResult LegalizeOp();
    
      // Converts the given operand to expression of kind kConstant or kXlaOp.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 02 09:16:07 UTC 2024
    - 5K bytes
    - Viewed (0)
Back to top