Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 89 for emitError (0.2 sec)

  1. tensorflow/compiler/mlir/quantization/tensorflow/passes/add_dump_tensor_op.cc

                                                         log_dir_path_);
    
      if (failed(applyPatternsAndFoldGreedily(module, std::move(patterns)))) {
        module.emitError() << "quant-add-dump-tensor-op failed.";
        signalPassFailure();
      }
    }
    
    }  // namespace
    
    std::unique_ptr<OperationPass<ModuleOp>> CreateAddDumpTensorOpPass(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Mar 22 22:55:22 UTC 2024
    - 13K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tensorflow/transforms/executor_tpuv1_island_coarsening.cc

          for (Operation& op : graph_body) {
            if (failed(CollectSpecialTpuOps(is_op_calling_func_for_cluster, &op,
                                            cluster_to_tpu_ops_map, visited_ops))) {
              graph.emitError()
                  << "Collect special Tpu ops failed: "
                  << "Graph contains op with inconsistent cluster info\n";
              signalPassFailure();
              return WalkResult::interrupt();
            }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 17 17:58:54 UTC 2024
    - 27.6K bytes
    - Viewed (0)
  3. 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)
  4. 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)
  5. 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)
  6. 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)
  7. 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)
  8. 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)
  9. 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)
  10. 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)
Back to top