Search Options

Results per page
Sort
Preferred Languages
Advance

Results 121 - 130 of 216 for emitError (0.11 sec)

  1. tensorflow/compiler/mlir/quantization/tensorflow/utils/tf_to_xla_attribute_utils.cc

      SmallVector<int32_t> padding_values(2 * num_dims, 0);
      if (conv_padding.strref() == "EXPLICIT") {
        if (explicit_paddings.size() != 2 * num_dims) {
          emitError(loc,
                    absl::StrFormat(
                        "explicit_paddings are expected to be %d-element arrays",
                        2 * num_dims));
          return {};
        }
        for (int i : spatial_dims) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 17 17:58:54 UTC 2024
    - 13.3K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/quantization/tensorflow/passes/insert_custom_aggregation_ops.cc

      RewritePatternSet patterns(ctx);
      func::FuncOp func = getOperation();
    
      patterns.add<AddCustomAggregationOp>(ctx, calib_opts_);
      if (failed(applyPatternsAndFoldGreedily(func, std::move(patterns)))) {
        func.emitError() << "quant-insert-custom-aggregation-ops failed.";
        signalPassFailure();
      }
    }
    
    }  // namespace
    
    std::unique_ptr<OperationPass<func::FuncOp>>
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 17 17:58:54 UTC 2024
    - 14.8K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tensorflow/transforms/prepare_tpu_computation_for_tf_export.cc

      mlir::RewritePatternSet patterns(ctx);
      patterns.add<RewriteXlaHostComputeMlir>(ctx);
      if (failed(mlir::applyPatternsAndFoldGreedily(module, std::move(patterns)))) {
        return module.emitError("failed to apply tf export preparation patterns");
      }
    
      // TODO(hinsu): Investigate if the semantics of keys for these communication
      // ops between the old bridge and new bridge can be reconciled.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 11.8K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/quantization/tensorflow/passes/prepare_lifting.cc

        // future work.
        patterns.add<TF::ConvertTFEinsumOp>(ctx);
      }
    
      if (failed(applyPatternsAndFoldGreedily(func, std::move(patterns)))) {
        func.emitError() << "quant-prepare-lifting failed.";
        signalPassFailure();
      }
    }
    
    }  // namespace
    
    std::unique_ptr<OperationPass<func::FuncOp>> CreatePrepareLiftingPass(
        const OpSet target_opset) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 17 17:58:54 UTC 2024
    - 13.3K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tensorflow/ir/tf_ops_n_z.cc

      if (op.getNumSparse() != sparse_types_count) {
        return op.emitError() << "attribute 'num_sparse' should be the same as "
                              << "the length of attribute 'sparse_types'";
      }
      if (op.getSparseIndices().size() != sparse_types_count) {
        return op.emitError() << "output 'sparse_indices' should have same length "
                              << "as attribute 'sparse_types'";
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 09 22:07:10 UTC 2024
    - 170.8K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tensorflow/ir/tf_op_base.td

      list<OpBuilder> builders = [
        OpBuilder<(ins "Value":$x, "Value":$y),
        [{
      auto resultType =
          OpTrait::util::getBroadcastedType(x.getType(), y.getType());
      if (!resultType) {
        mlir::emitError($_state.location, "non-broadcastable operands");
        resultType = $_builder.getNoneType();
      }
      return build($_builder, $_state, resultType, x, y);
    }]>];
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Oct 30 06:52:55 UTC 2023
    - 30.5K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/quantization/stablehlo/passes/bridge/convert_tf_quant_types.cc

        auto dense_attr_or = GetDenseAttrFromTensorProtoAttr(
            tensor_proto_attr.getValue(),
            mlir::dyn_cast<TensorType>(ToLegalType(op.getOutput().getType())));
        if (failed(dense_attr_or)) {
          op->emitError("failed to get DenseElementAttr.");
          return failure();
        }
    
        rewriter.replaceOpWithNewOp<TF::ConstOp>(
            op, ToLegalType(op.getOutput().getType()), *dense_attr_or);
        return success();
      }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 12.6K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/quantization/tensorflow/utils/tf_to_uniform_attribute_utils.cc

      int feature_group_cnt = 1;
      ShapedType input_shape =
          mlir::dyn_cast<ShapedType>(op->getOperand(0).getType());
      if (!input_shape) {
        return op->emitError(
            "Only input with known shape is supported for Uniform Quantized "
            "opset.");
      }
    
      if (op->getParentOfType<func::FuncOp>().getName().contains("depthwise_")) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 18.7K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/lite/stablehlo/odml_to_stablehlo.cc

      if (failed(applyPassManagerCLOptions(pm))) {
        return tensorflow::errors::Aborted(
            "Failed to apply MLIR pass manager CL options.");
      }
    
      auto error_handler = [&](const Twine& msg) {
        emitError(UnknownLoc::get(pm.getContext())) << msg;
        return failure();
      };
      if (failed(pass_pipeline.addToPipeline(pm, error_handler))) {
        return tensorflow::errors::Aborted("Failed to add passes to pipeline.");
      }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 03 18:16:49 UTC 2024
    - 14.1K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/quantization/tensorflow/passes/lift_quantizable_spots_as_functions.cc

      // Iterate over the sorted list of functions to keep the order deterministic.
      for (func::FuncOp func : GetSortedFunctions(module)) {
        if (failed(applyPatternsAndFoldGreedily(func, frozen_patterns))) {
          func.emitError() << "quant-lift-quantizable-spots-as-functions failed.";
          signalPassFailure();
        }
      }
    }
    
    }  // namespace
    
    std::unique_ptr<OperationPass<ModuleOp>>
    CreateLiftQuantizableSpotsAsFunctionsPass(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 10 04:07:09 UTC 2024
    - 16.4K bytes
    - Viewed (0)
Back to top