Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 106 for signalPassFailure (0.18 sec)

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

        for (auto& op : bb) {
          if (failed(DuplicateValueIfNeeded(&op, &stateful_values, &builder))) {
            func.emitError() << "Failed to duplicate values for the stateful op\n";
            return signalPassFailure();
          }
        }
      }
    }
    
    }  // namespace
    
    /// Creates an instance of the TensorFlow Lite dialect SplitMergedOperands
    /// pass.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Apr 24 20:30:06 UTC 2024
    - 5.9K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/quantization/stablehlo/passes/nchw_convolution_to_nhwc.cc

      patterns.add<RewriteNchwConvolutionToNhwc>(&ctx);
    
      if (failed(applyPatternsAndFoldGreedily(func_op, std::move(patterns)))) {
        func_op.emitError() << "Failed to run NchwConvolutionToNhwcPass.";
        signalPassFailure();
      }
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 8.2K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/quantization/tensorflow/passes/add_quantization_unit_loc.cc

      if (failed(applyPatternsAndFoldGreedily(func, std::move(patterns)))) {
        func.emitError() << "quant-add-quantization-unit-loc pattern "
                            "conversion did not converge.";
        signalPassFailure();
      }
    }
    
    }  // namespace
    
    // Creates an instance of `AddQuantizationUnitLocPass`.
    std::unique_ptr<OperationPass<func::FuncOp>>
    CreateAddQuantizationUnitLocPass() {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 7.4K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/lite/transforms/legalize_hashtables.cc

                 LegalizeHashTableImportOpPattern, LegalizeHashTableSizeOpPattern>(
                &getContext());
        if (failed(applyPatternsAndFoldGreedily(module, std::move(patterns)))) {
          signalPassFailure();
          return;
        }
      }
    };
    
    }  // namespace
    
    std::unique_ptr<OperationPass<ModuleOp>> CreateLegalizeHashTablesPass() {
      return std::make_unique<LegalizeHashTablesPass>();
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 7.6K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/quantization/tensorflow/passes/lift_hashtable_ops_as_args.cc

    void LiftHashTableOpsAsArgsPass::runOnOperation() {
      auto module_op = getOperation();
    
      for (auto func_op : module_op.getOps<func::FuncOp>()) {
        if (failed(LiftHashTableOpsToArguments(module_op, func_op))) {
          signalPassFailure();
          return;
        }
      }
    }
    
    static PassRegistration<LiftHashTableOpsAsArgsPass> pass;
    
    }  // namespace
    
    std::unique_ptr<OperationPass<ModuleOp>> CreateLiftHashTableOpsAsArgsPass() {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 17 17:58:54 UTC 2024
    - 8.2K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/quantization/tensorflow/passes/prepare_quantize.cc

      patterns.add<PrepareQuantStats>(bit_width, false, true,
                                      /*legacy_float_scale=*/false, ctx);
      if (failed(applyPatternsAndFoldGreedily(func, std::move(patterns)))) {
        signalPassFailure();
      }
    
      SanityCheckAndAdjustment(func);
    
      // Finally, the quantization parameters can be propagated to the rest of the
      // values (tensors).
      ApplyQuantizationParamsPropagation(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 17.2K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/lite/stablehlo/transforms/optimize_layout.cc

      RewritePatternSet patterns(ctx);
      patterns.add<TransposeCommuteWithPad, TransposeCommuteWithReduceWindow>(ctx);
      if (failed(
              applyPatternsAndFoldGreedily(getOperation(), std::move(patterns)))) {
        return signalPassFailure();
      }
    }
    
    }  // end namespace
    
    std::unique_ptr<OperationPass<ModuleOp>> CreateTransposeCommuteOpsPass() {
      return std::make_unique<TransposeCommuteOpsPass>();
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 21:59:06 UTC 2024
    - 8.6K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/quantization/stablehlo/passes/fold_constant_transpose.cc

      patterns.add<FoldTransposedConstantOp>(&ctx);
      if (failed(applyPatternsAndFoldGreedily(func_op, std::move(patterns)))) {
        func_op.emitError("Failed to fold constant->transpose pattern.");
        signalPassFailure();
      }
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 7.7K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/quantization/tensorflow/passes/lift_quantizable_spots_as_functions_drq.cc

        if (failed(applyPatternsAndFoldGreedily(func, frozen_patterns))) {
          func.emitError()
              << "quant-lift-quantizable-spots-as-functions-drq failed.";
          signalPassFailure();
        }
      }
    }
    
    }  // namespace
    
    std::unique_ptr<OperationPass<ModuleOp>>
    CreateLiftQuantizableSpotsAsFunctionsDRQPass(
        const QuantMethod quantization_method, const OpSet target_opset,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 8.5K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tf2xla/internal/passes/extract_head_tail_outside_compilation.cc

      // Get runtime devices information from the closest parent module.
      auto module = getOperation();
      mlir::TF::RuntimeDevices devices;
      if (failed(tensorflow::GetDevicesFromOp(module, &devices)))
        return signalPassFailure();
    
      OpBuilder builder(&getContext());
      llvm::SmallVector<mlir::tf_device::ClusterOp, 4> clusters;
      module.walk(
          [&](mlir::tf_device::ClusterOp cluster) { clusters.push_back(cluster); });
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 20.6K bytes
    - Viewed (0)
Back to top