Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for getInitValues (0.31 sec)

  1. tensorflow/compiler/mlir/lite/stablehlo/transforms/legalize_hlo.cc

        if (rw.getNumResults() != 1 || rw.getInputs().size() != 1 ||
            rw.getInitValues().size() != 1)
          return failure();
    
        if (failed(MatchBinaryReduceFunction<BinaryOp>(rw.getBody())))
          return failure();
    
        // Ensure that initial_values are as expected.
        auto const_op = llvm::dyn_cast_or_null<mhlo::ConstantOp>(
            rw.getInitValues()[0].getDefiningOp());
        if (!const_op) return failure();
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 154.9K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tensorflow/ir/tf_ops_n_z.cc

      const auto &inputs_ty = op.getInputs().getType();
      int n_inputs = inputs_ty.size();
      if (n_inputs < 1) return op.emitOpError() << "No inputs";
    
      const auto &init_values_ty = op.getInitValues().getType();
      int n_init_values = init_values_ty.size();
      if (n_init_values != n_inputs) {
        return op.emitOpError() << "Number of inputs (" << n_inputs
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 09 22:07:10 UTC 2024
    - 170.8K bytes
    - Viewed (0)
Back to top