Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 147 for SmallVector (0.57 sec)

  1. tensorflow/compiler/mlir/tensorflow/transforms/executor_island_coarsening.cc

    //
    // This allows our def-use based island coarsening algorithm to merge
    // islands that independently feed into a fetch.
    void InsertDummyIslandForFetch(FetchOp fetch) {
      llvm::SmallVector<Value, 4> data_fetches;
      llvm::SmallVector<Type, 4> data_types;
      llvm::SmallVector<Value, 4> control_fetches;
      data_fetches.reserve(fetch.getFetches().size());
      data_types.reserve(data_fetches.capacity());
      control_fetches.reserve(data_fetches.capacity());
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 19.7K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tensorflow/transforms/cluster_tf_ops_pass.cc

      // The input values of the function.
      llvm::SmallVector<Value, 4> inputs;
      // The result values of the function.
      llvm::SmallVector<Value, 4> results;
      // The devices of the input values. It should have the same size as inputs.
      llvm::SmallVector<std::string, 4> input_devices;
      // The devices of the result values. It should have the same size as results.
      llvm::SmallVector<std::string, 4> result_devices;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 13.4K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tf2xla/internal/passes/tpu_sharding_identification_pass.cc

    // inputs.
    std::optional<llvm::StringRef> GetXlaShardingFromArg(
        Value value, const llvm::SmallVector<std::string>& logical_device_vec) {
      llvm::SmallPtrSet<Value, 4> visited_values;
      llvm::SmallVector<Value, 4> values_to_visit{value};
      while (!values_to_visit.empty()) {
        llvm::SmallVector<Value, 4> next_values_to_visit;
        for (Value value_to_visit : values_to_visit) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Apr 30 02:01:13 UTC 2024
    - 28.9K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/lite/stablehlo/transforms/optimize.cc

      if (!first->hasOneUse() || !second->hasOneUse())
        return rewriter.notifyMatchFailure(concat, "slice ops are used elsewhere");
    
      SmallVector<int64_t> new_start;
      SmallVector<int64_t> new_limit;
      SmallVector<int64_t> new_slice_shape;
      new_start.reserve(first.getStrides().size());
      new_limit.reserve(first.getStrides().size());
      new_slice_shape.reserve(first.getStrides().size());
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 26.9K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/quantization/common/quantization_lib/quantization_utils.cc

                                         zero_point, qmin, qmax);
      } else if (auto q_type = dyn_cast<quant::UniformQuantizedPerAxisType>(type)) {
        const int size = q_type.getScales().size();
        SmallVector<double, 4> scales(size);
        SmallVector<int64_t, 4> zero_points(size);
        for (int i = 0; i < size; ++i) {
          scales[i] = recalculate_scale(q_type.getScales()[i]);
          zero_points[i] = recalculate_zero_point(q_type.getZeroPoints()[i]);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 08 02:10:16 UTC 2024
    - 43.2K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tensorflow/transforms/collection_ops_util.cc

    #include "tensorflow/compiler/mlir/tensorflow/transforms/collection_ops_util.h"
    
    #include <optional>
    
    #include "llvm/ADT/ArrayRef.h"
    #include "llvm/ADT/DenseMap.h"
    #include "llvm/ADT/STLExtras.h"
    #include "llvm/ADT/SmallVector.h"
    #include "llvm/Support/Casting.h"
    #include "mlir/Dialect/Func/IR/FuncOps.h"  // from @llvm-project
    #include "mlir/IR/Attributes.h"  // from @llvm-project
    #include "mlir/IR/Builders.h"  // from @llvm-project
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 14.5K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tensorflow/ir/tf_device.cc

      // Parse operands, attributes, and region of op.
      llvm::SmallVector<llvm::SmallVector<OpAsmParser::UnresolvedOperand, 8>, 8>
          replicated_inputs;
      llvm::SmallVector<OpAsmParser::UnresolvedOperand, 8> packed_inputs;
      llvm::SmallVector<OpAsmParser::UnresolvedOperand, 8> region_args;
      llvm::SmallVector<Type, 8> region_arg_types;
      int32_t n = 0;
      Region& body = *result.addRegion();
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 33.4K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tensorflow/transforms/parallel_execute_to_islands.cc

      llvm::SmallVector<tf_executor::IslandOp, 4> executes;
      ExpandParallelExecuteToIslands(island_op, parallel_execute_op, &builder,
                                     executes, legacy_graph_export,
                                     parallel_group_idx);
    
      // Remap all results of parallel_execute op with outputs from newly created
      // islands.
      llvm::SmallVector<Value, 8> parallel_execute_outputs;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jan 19 19:47:16 UTC 2023
    - 11.1K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/lite/stablehlo/transforms/tfl_stablehlo_pass.cc

          temp[i] = vec[i].AsInt64();
        }
        return temp;
      }
    
      llvm::SmallVector<mlir::NamedAttribute, 4> ReadAttr(const flexbuffers::Map& m,
                                                          Builder* builder,
                                                          std::string op_name) {
        llvm::SmallVector<mlir::NamedAttribute, 4> attrs;
        const auto& keys = m.Keys();
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Jan 24 06:08:43 UTC 2024
    - 10.8K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/lite/transforms/legalize_tf.cc

        // UnidirectionalSequenceLstm should only have 1 output, and that is the
        // original ophint converted node's 3rd output.
        SmallVector<Type, 4> result_types;
        result_types.push_back(op->getOpResult(2).getType());
    
        // Populate attributes.
        SmallVector<NamedAttribute, 4> attributes;
        // Activation will always be tanh.
        attributes.push_back(rewriter.getNamedAttr("fused_activation_function",
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon May 20 20:06:54 UTC 2024
    - 45.2K bytes
    - Viewed (0)
Back to top