Search Options

Results per page
Sort
Preferred Languages
Advance

Results 151 - 160 of 345 for SmallVector (0.18 sec)

  1. 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)
  2. tensorflow/compiler/mlir/tensorflow/transforms/graph_pruning.cc

    limitations under the License.
    ==============================================================================*/
    
    #include "llvm/ADT/DenseSet.h"
    #include "llvm/ADT/STLExtras.h"
    #include "llvm/ADT/SmallPtrSet.h"
    #include "llvm/ADT/SmallVector.h"
    #include "llvm/ADT/iterator_range.h"
    #include "llvm/Support/Casting.h"
    #include "mlir/IR/Attributes.h"  // from @llvm-project
    #include "mlir/IR/Operation.h"  // from @llvm-project
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Oct 05 23:50:19 UTC 2022
    - 7.6K bytes
    - Viewed (0)
  3. 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)
  4. 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)
  5. tensorflow/compiler/mlir/lite/stablehlo/transforms/unfold_splat_constant_pass.cc

    limitations under the License.
    ==============================================================================*/
    
    #include <cstdint>
    #include <memory>
    
    #include "llvm/ADT/SmallVector.h"
    #include "mlir/Dialect/Quant/QuantTypes.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
    - 3.8K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/lite/experimental/tac/transforms/device_transform.cc

    ==============================================================================*/
    
    #include "tensorflow/compiler/mlir/lite/experimental/tac/transforms/device_transform.h"
    
    #include <string>
    #include <utility>
    
    #include "llvm/ADT/SmallVector.h"
    #include "llvm/Support/Casting.h"
    #include "mlir/Dialect/Func/IR/FuncOps.h"  // from @llvm-project
    #include "mlir/Dialect/Quant/QuantTypes.h"  // from @llvm-project
    #include "mlir/IR/BuiltinTypes.h"  // from @llvm-project
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 8.4K 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