Search Options

Results per page
Sort
Preferred Languages
Advance

Results 141 - 150 of 345 for SmallVector (0.21 sec)

  1. tensorflow/compiler/mlir/tensorflow/utils/cluster_util.cc

        Operation* defining_op = value.getDefiningOp();
        return defining_op && ops_depend_on_cluster.contains(defining_op);
      });
    }
    }  // namespace
    
    llvm::StringMap<SmallVector<Cluster>> BuildAllClusters(
        Block& block, const TF::SideEffectAnalysis::Info& side_effect_analysis,
        std::function<std::string(Operation*)> get_target,
        std::function<bool(Operation*)> is_ignored_op) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Jul 28 00:32:55 UTC 2023
    - 8.3K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tensorflow/transforms/tpu_dynamic_layout_pass.cc

      auto compile =
          llvm::cast<TF::_TPUCompileMlirOp>(compile_launch.GetBody().front());
      tensorflow::tpu::TPUCompileMetadataProto metadata;
      metadata.ParseFromString(compile.getMetadata().str());
      llvm::SmallVector<llvm::SmallVector<int64_t, 4>, 4> input_mappings =
          tensorflow::GetMetadataArgumentMapping(metadata);
    
      bool metadata_updated = false;
      auto maybe_replicate =
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 12.7K bytes
    - Viewed (0)
  3. 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)
  4. tensorflow/compiler/mlir/tensorflow/transforms/tpu_partitioned_op_conversion.cc

        return op->emitError() << "cannot partition " << first_operand_type
                               << " (rank = " << rank << ") along dimension "
                               << partition_dim << ".";
      }
    
      llvm::SmallVector<int64_t, 4> partition_dims(is_replicated ? 0 : rank, 1);
      if (!is_replicated) {
        partition_dims[partition_dim] = num_cores_per_replica.getInt();
      }
    
      if constexpr (is_input) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 5.1K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tensorflow/transforms/mark_initialized_variables.cc

    ==============================================================================*/
    #include "tensorflow/compiler/mlir/tensorflow/transforms/mark_initialized_variables.h"
    
    #include <string>
    #include <vector>
    
    #include "llvm/ADT/SmallVector.h"
    #include "mlir/IR/Block.h"  // from @llvm-project
    #include "mlir/IR/BuiltinAttributes.h"  // from @llvm-project
    #include "mlir/IR/MLIRContext.h"  // from @llvm-project
    #include "mlir/IR/Threading.h"  // from @llvm-project
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 13 19:14:56 UTC 2023
    - 4.1K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tensorflow/transforms/shape_inference.h

    // that can be used with InferShapeForFunction.
    // TF NodeShape uses `,` to separate dimensions, and `:` to separate arguments.
    // Ex: 1,2:3,4,5:6,? --> [[1, 2], [3, 4, 5], [6, ?]]
    absl::StatusOr<SmallVector<SmallVector<int64_t>>> ParseArgumentShapes(
        absl::string_view input_shapes);
    
    // Given a list of refined shapes matching the function arguments of func, runs
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Apr 24 12:49:45 UTC 2024
    - 3.5K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tensorflow/utils/attribute_utils.cc

      if (!attr) return success();
    
      // ID pairs are separated by `,`.
      llvm::SmallVector<std::string, 8> str_list =
          absl::StrSplit(attr.getValue().str(), ',', absl::SkipWhitespace());
      id_pairs.reserve(str_list.size());
      for (const std::string& str : str_list) {
        // IDs of one pair are separated by `:`.
        llvm::SmallVector<std::string, 8> id_pair = absl::StrSplit(str, ':');
    
        // Check for malformed IDs.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 02 22:03:30 UTC 2024
    - 3.8K bytes
    - Viewed (0)
  8. 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)
  9. 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)
  10. 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)
Back to top