Search Options

Results per page
Sort
Preferred Languages
Advance

Results 121 - 130 of 345 for SmallVector (0.26 sec)

  1. tensorflow/compiler/mlir/tensorflow/transforms/breakup-islands.cc

        }
      }
      OpBuilder builder(func);
    
      // For every op, add new control inputs in reverse order so that the ops don't
      // get invalidated.
      llvm::SmallVector<Value, 8> operands;
      llvm::SmallPtrSet<Operation*, 4> defining_ops;
      llvm::SmallVector<Type, 4> types;
      for (auto& item :
           llvm::make_early_inc_range(llvm::reverse(graph_op.GetBody()))) {
        auto it = new_control_inputs.find(&item);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Aug 11 20:52:36 UTC 2023
    - 16.7K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/lite/quantization/device_target.h

    namespace mlir {
    namespace quant {
    
    class QuantizeContext;
    
    using AdjacentOperations = llvm::SmallVectorImpl<Operation*>;
    using QuantizedMultipliers = llvm::SmallVector<QuantizedMultiplier, 4>;
    using QuantizedRanges = llvm::SmallVector<QuantizedRange, 4>;
    using ScaleFn = std::function<LogicalResult(QuantizeContext*, Operation*,
                                                AdjacentOperations*, bool*)>;
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Mar 08 10:41:08 UTC 2024
    - 7.1K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tensorflow/transforms/cluster_ops_by_policy.cc

      //   members.
      ValuesConstraintSet constraints;
    };
    
    using Members = llvm::SmallVector<Member>;
    
    struct ClusteringState {
      // Storage backing an array based union-find algorithm for clustering. Index
      // in this vector is the member id.
      llvm::SmallVector<Member> members;
    
      // Mapping from the member operation (block argument) to the member id.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 27.9K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tf2xla/internal/passes/xla_cluster_formation.cc

    ==============================================================================*/
    
    #include <functional>
    #include <memory>
    #include <string>
    #include <vector>
    
    #include "absl/strings/str_cat.h"
    #include "llvm/ADT/SmallVector.h"
    #include "llvm/ADT/StringRef.h"
    #include "llvm/Support/Casting.h"
    #include "mlir/Dialect/Func/IR/FuncOps.h"  // from @llvm-project
    #include "mlir/IR/Block.h"  // from @llvm-project
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Dec 19 19:09:44 UTC 2023
    - 6K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/quantization/common/lift_as_function_call_test.cc

      const SmallVector<NamedAttribute>& attributes = {
          builder_.getNamedAttr(
              "precision_config",
              builder_.getArrayAttr(SmallVector<Attribute>(
                  1, mlir::stablehlo::PrecisionAttr::get(
                         ctx_.get(), mlir::stablehlo::Precision::DEFAULT)))),
      };
      const SmallVector<Value> operands(dot_general_op->getOperands());
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 10 04:07:09 UTC 2024
    - 26.2K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/quantization/tensorflow/passes/prepare_lifting.cc

    }
    
    // Multiplies two 1D arrays with broadcasting support.
    template <typename T>
    SmallVector<T> MultiplyTwoArrays(ArrayRef<T> a, ArrayRef<T> b) {
      auto get_value_at = [](ArrayRef<T> v, size_t i) -> T {
        if (v.size() == 1) return v.front();
        return v[i];
      };
    
      size_t max_size = std::max(a.size(), b.size());
      SmallVector<T> result(max_size);
      for (size_t i : llvm::seq<size_t>(0, max_size)) {
    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/lite/stablehlo/transforms/legalize_hlo_conversions/scatter.h

    #define TENSORFLOW_COMPILER_MLIR_LITE_STABLEHLO_TRANSFORMS_LEGALIZE_HLO_CONVERSIONS_SCATTER_H_
    
    #include <cstdint>
    #include <type_traits>
    
    #include "llvm/ADT/ArrayRef.h"
    #include "llvm/ADT/STLExtras.h"
    #include "llvm/ADT/SmallVector.h"
    #include "mlir/IR/BuiltinAttributes.h"  // from @llvm-project
    #include "mlir/IR/BuiltinTypeInterfaces.h"  // from @llvm-project
    #include "mlir/IR/ImplicitLocOpBuilder.h"  // from @llvm-project
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 10.1K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/quantization/common/attrs_and_constraints.h

                  (std::is_integral_v<T> || std::is_same_v<T, float>), void>>
    Value CreateConstValue(OpBuilder& builder, const Location loc,
                           const SmallVector<int64_t>& shape,
                           const SmallVector<T>& values) {
      if constexpr (std::is_integral_v<T>) {
        auto shape_type =
            RankedTensorType::get(shape, builder.getIntegerType(sizeof(T) * 8));
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 9.9K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tensorflow/transforms/tpu_device_propagation.cc

      // We apply all result attributes at once to avoid excessive allocations when
      // we have many result values.
      llvm::SmallVector<std::vector<NamedAttribute>, 8> result_attrs;
      {
        llvm::SmallVector<DictionaryAttr, 8> tmp;
        func.getAllResultAttrs(tmp);
    
        for (const auto& res : tmp) {
          result_attrs.push_back(res.getValue().vec());
        }
      }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 11K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/lite/transforms/lower_static_tensor_list.cc

        llvm::SmallSet<int, 4> resized_tensor_lists =
            GetResizedTensorListIndexes(op.else_function(), tensor_list_args);
    
        llvm::SmallVector<Type, 8> result_types;
        result_types.reserve(op.getNumResults());
        llvm::SmallVector<Type, 4> op_result_types;
        for (Type ty : op.getResultTypes()) {
          op_result_types.push_back(ty);
        }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jun 11 20:00:43 UTC 2024
    - 70.7K bytes
    - Viewed (0)
Back to top