Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 345 for SmallVector (0.16 sec)

  1. tensorflow/compiler/mlir/tf2xla/internal/passes/extract_head_tail_outside_compilation.cc

    void RemoveClusterAliasedOutputs(OpBuilder* builder,
                                     mlir::tf_device::ClusterOp cluster) {
      llvm::SmallVector<Value, 4> used_old_cluster_results;
      llvm::SmallVector<Value, 4> new_cluster_results;
      llvm::SmallVector<Type, 4> new_cluster_result_types;
      Operation* cluster_terminator = cluster.GetBody().getTerminator();
      for (auto result :
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 20.6K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/quantization/stablehlo/passes/insert_calibration_statistics_saver.cc

    void FindCustomAggregatorOps(
        Region& region,
        const std::unordered_set<std::string>& aggregator_ops_to_ignore,
        SmallVector<Value>& statistics_outputs, SmallVector<StringRef>& ids,
        SmallVector<int32_t>& calibration_methods) {
      for (auto op : region.getOps<TF::CustomAggregatorOp>()) {
        if (aggregator_ops_to_ignore.count(op.getId().str())) continue;
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 14 06:31:57 UTC 2024
    - 7.2K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/quantization/common/lift_as_function_call.h

    #define TENSORFLOW_COMPILER_MLIR_QUANTIZATION_COMMON_LIFT_AS_FUNCTION_CALL_H_
    
    #include "absl/base/nullability.h"
    #include "absl/status/statusor.h"
    #include "llvm/ADT/SmallVector.h"
    #include "mlir/Bytecode/BytecodeOpInterface.h"  // from @llvm-project
    #include "mlir/Dialect/Func/IR/FuncOps.h"  // from @llvm-project
    #include "mlir/IR/Attributes.h"  // from @llvm-project
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 10 04:07:09 UTC 2024
    - 5.5K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tensorflow/transforms/layout_optimization.cc

    // Move Transpose operations that permute `op` operands after the `op`.
    void MoveTransposeAfter(Operation* op, SmallVector<Operation*, 8>* work_list,
                            bool fold_transpose_in_ops) {
      // Indices of operands and results that depend on data layout.
      SmallVector<unsigned, 4> layout_dependent_operands;
      SmallVector<unsigned, 4> layout_dependent_results;
    
      auto fold_operands = dyn_cast<FoldOperandsTransposeInterface>(op);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 19.3K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/lite/stablehlo/transforms/legalize_hlo.cc

      // TF::UnsortedSegmentProdOp.
      llvm::SmallVector<int32_t, 4> flattened_out_segids =
          llvm::SmallVector<int32_t, 4>(operand_rank, static_cast<int32_t>(-1));
      for (int64_t i : dot_dimensions_info.out_dimensions().AxesArray()) {
        flattened_out_segids[i] = 0;
      }
      llvm::SmallVector<int32_t, 4> flattened_contracting_segids =
          llvm::SmallVector<int32_t, 4>(operand_rank, static_cast<int32_t>(-1));
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 154.9K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tf2xla/internal/passes/tpu_cluster_formation.cc

        mlir::tf_device::ReplicateOp replicate_op,
        PartitionedClusterOutputMap& partitioned_outputs,
        llvm::SmallVector<mlir::TF::IdentityOp, 8>& erase_list,
        llvm::SmallVector<Type, 8>& result_types, int num_replicas) {
      Operation* result_op;
      llvm::SmallVector<Value, 8> results;
      uint64_t num_results = cluster.getNumResults();
      for (uint64_t result_id = 0; result_id < num_results; ++result_id) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 02 22:03:30 UTC 2024
    - 39.3K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tensorflow/transforms/xla_inline_device_ops.cc

    limitations under the License.
    ==============================================================================*/
    
    // This pass remove Cluster ops by inlining Cluster ops.
    
    #include "llvm/ADT/SmallVector.h"
    #include "tensorflow/compiler/mlir/tensorflow/ir/tf_device.h"
    #include "tensorflow/compiler/mlir/tensorflow/ir/tf_ops.h"
    #include "tensorflow/compiler/mlir/tensorflow/ir/tf_types.h"
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Oct 04 00:59:46 UTC 2022
    - 2.6K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tensorflow/transforms/tpu_identity_pruning.cc

              if (func && reachable_funcs.insert(func).second)
                funcs_to_visit.push_back(func);
            });
          };
    
      SmallVector<func::FuncOp, 4> funcs_to_visit;
      collect_reachable_funcs(region, funcs_to_visit);
    
      while (!funcs_to_visit.empty()) {
        SmallVector<func::FuncOp, 4> new_funcs_to_visit;
        for (func::FuncOp func_to_visit : funcs_to_visit) {
          if (!func_to_visit.getCallableRegion()) continue;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Oct 05 23:50:19 UTC 2022
    - 4.1K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/lite/stablehlo/transforms/optimize_layout.cc

        ArrayRef<int64_t> transpose_perm = transpose_op.getPermutation();
        SmallVector<int64_t> new_padding_low =
            InvertPermutationToVector(pad_op.getEdgePaddingLow(), transpose_perm);
        SmallVector<int64_t> new_padding_high =
            InvertPermutationToVector(pad_op.getEdgePaddingHigh(), transpose_perm);
        SmallVector<int64_t> new_padding_interrier =
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 21:59:06 UTC 2024
    - 8.6K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/lite/experimental/tac/transforms/device_transform_patterns.cc

      // Pack op should have same shape type.
      SmallVector<Value, 5> pack_inputs(pack_op.getValues());
      auto input_type = mlir::dyn_cast<RankedTensorType>(pack_inputs[0].getType());
      if (!input_type) return failure();
    
      // Figure out output shapes.
      SmallVector<int64_t, 4> concat_out_shape;
      SmallVector<int64_t, 4> pack_out_shape;
    
      const int64_t rank = input_type.getRank();
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 25.4K bytes
    - Viewed (0)
Back to top