Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 147 for SmallVector (0.23 sec)

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

            log_dir_path_(std::move(log_dir_path)) {}
    
     private:
      SmallVector<NamedAttribute> CreateDumpAttributes(
          PatternRewriter &rewriter, const StringRef folder_name,
          const StringRef file_name, const bool enabled, const StringRef func_name,
          const StringRef node_name) const {
        SmallVector<NamedAttribute> dump_attributes{
            rewriter.getNamedAttr("log_dir_path",
    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/tfr/ir/tfr_ops.cc

        } else if (auto qtype =
                       cast_qtype.dyn_cast<quant::UniformQuantizedPerAxisType>()) {
          SmallVector<float> scales(qtype.getScales().begin(),
                                    qtype.getScales().end());
          SmallVector<int32_t> zps(qtype.getZeroPoints().begin(),
                                   qtype.getZeroPoints().end());
          const size_t num_channels = qtype.getScales().size();
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Nov 21 16:55:41 UTC 2023
    - 38.2K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/quantization/tensorflow/passes/insert_custom_aggregation_ops.cc

        if (dyn_cast_or_null<TF::CustomAggregatorOp>(op)) return failure();
    
        // The CustomAggregatorOp is only added after quantizable values.
        SmallVector<Value> quantizable_values;
        SmallVector<std::string> aggregator_ids;
        if (IsCallToQuantizableLiftedFunction(op)) {
          std::optional<StringRef> composite_function_name =
              GetCompsiteFunctionName(op);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 17 17:58:54 UTC 2024
    - 14.8K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/lite/transforms/post_quantize.cc

        ArrayRef<int64_t> input_shape = input_tensor.getShapedType().getShape();
        auto output_type = mlir::cast<ShapedType>(op.getOutput().getType());
    
        SmallVector<int32_t, 4> perm;
        SmallVector<int64_t, 4> output_shape;
        for (int i = 0; i < num_dimensions; ++i) {
          perm.push_back(perm_tensor.getValues<IntegerAttr>()[i].getInt());
          output_shape.push_back(input_shape[perm[i]]);
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 17.1K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tfr/passes/raise_to_tf.cc

          // Find out all the inputs to the build list op
          // TODO(fengliuai): make build_list op only take tensor argument
          llvm::SmallVector<Attribute, 4> list_input_types;
          llvm::SmallVector<Value, 4> list_inputs;
          for (auto list_input : list_op.getOperands()) {
            auto cast_op = dyn_cast_or_null<CastOp>(list_input.getDefiningOp());
            if (!cast_op) return failure();
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 21.8K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tensorflow/analysis/side_effect_analysis.cc

      }
      return is_tracked;
    }
    
    const llvm::SmallVector<Operation*, 4>&
    SideEffectAnalysisInfo::DirectControlPredecessors(
        Operation* op) const {
      auto it = sorted_control_predecessors_.find(op);
      if (it == sorted_control_predecessors_.end()) return empty_operation_set_;
      return it->second;
    }
    
    llvm::SmallVector<Operation*, 4>
    SideEffectAnalysisInfo::DirectControlPredecessors(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 15 09:04:13 UTC 2024
    - 41.2K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tensorflow/transforms/tpu_validate_inputs.cc

      if (!abstractOp) return false;
      return ops->count(abstractOp->getTypeID()) != 0;
    }
    
    // Gets the successors of an op wrapped in a tf_executor.island.
    llvm::SmallVector<Operation*> GetSuccessors(Operation* op) {
      llvm::SmallVector<Operation*> successors;
      for (auto result : op->getParentOp()->getOpResults()) {
        for (auto& use : result.getUses()) {
          auto succ = use.getOwner();
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 07 06:51:01 UTC 2024
    - 21.5K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/quantization/tensorflow/passes/convert_tf_xla_op_to_tf_op.cc

                                       StringAttr dot_dimension_numbers_str) {
      xla::DotDimensionNumbers dot_dimension_numbers;
      dot_dimension_numbers.ParseFromString(dot_dimension_numbers_str.str());
      SmallVector<Value> input_arguments = {lhs, rhs};
      const int lhs_rank = mlir::cast<ShapedType>(lhs.getType()).getShape().size();
      const int rhs_rank = mlir::cast<ShapedType>(rhs.getType()).getShape().size();
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 13.2K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tf2xla/api/v1/compile_mlir_util.cc

      auto producer_or = GetTfGraphProducerVersion(module);
      if (!producer_or.ok()) return producer_or.status();
      int64_t producer_version = producer_or.value();
    
      llvm::SmallVector<int64_t, 16> shape_backing;
      llvm::SmallVector<llvm::ArrayRef<int64_t>, 4> arg_shapes_copy;
      {
        // Convert arg_shapes to a mlir friendly format.
        size_t count = 0;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 21 17:24:39 UTC 2024
    - 45.3K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tensorflow/utils/tf_xla_mlir_translate.cc

      TF_RETURN_IF_ERROR(
          tensorflow::ParseNodeShapes(input_shapes_str, input_shapes_vector));
      llvm::SmallVector<DataType, 4> dtypes_vector;
      TF_RETURN_IF_ERROR(ParseDataTypes(input_dtypes_str, dtypes_vector));
      llvm::SmallVector<XlaArgument::Kind, 4> arg_kinds_vector;
      TF_RETURN_IF_ERROR(ParseArgumentKinds(arg_kinds_str, arg_kinds_vector));
    
      if (input_shapes_vector.empty())
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 18.8K bytes
    - Viewed (0)
Back to top