Search Options

Results per page
Sort
Preferred Languages
Advance

Results 101 - 110 of 156 for RankedTensorType (0.18 sec)

  1. tensorflow/compiler/mlir/tensorflow/ir/tf_executor.cc

        result.types.append(2, types[0]);
        result.types.push_back(control_type);
        Type i1_type = parser.getBuilder().getI1Type();
        RankedTensorType predicate_type = RankedTensorType::get({}, i1_type);
        types.push_back(predicate_type);
        types.append(op_infos.size() - 2, control_type);
      }
    
      llvm::SMLoc loc = parser.getCurrentLocation();
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 42.7K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/lite/stablehlo/transforms/hlo_matchers.cc

      if (!reshape_op) return false;
      auto operand_type =
          mlir::dyn_cast<RankedTensorType>(reshape_op.getOperand().getType());
      if (!operand_type || !operand_type.hasStaticShape()) return false;
      auto reshape_type = mlir::cast<RankedTensorType>(reshape_op.getType());
    
      // Reshape can take a 1-D iota input and add extra dims of size one.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 11.6K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/quantization/tensorflow/passes/unfreeze_constants.cc

        const auto shared_name = absl::StrCat(name, "_", cnt);
        const_op_name_map[const_op] = shared_name;
    
        // Creates a VarHandleOp -> ReadVariableOp pair for each ConstOp.
        const auto resource_type = RankedTensorType::get(
            /*shape=*/{}, /*elementType=*/TF::ResourceType::get(
                /*subtypes=*/llvm::ArrayRef<TensorType>{const_op.getType()},
                builder.getContext()));
        auto var_handle_op =
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Aug 16 15:04:53 UTC 2023
    - 14K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/lite/flatbuffer_import.cc

    using mlir::DenseElementsAttr;
    using mlir::Location;
    using mlir::MLIRContext;
    using mlir::OpBuilder;
    using mlir::Operation;
    using mlir::OperationState;
    using mlir::OwningOpRef;
    using mlir::RankedTensorType;
    using mlir::Value;
    using mlir::func::FuncOp;
    using tflite::OperatorT;
    using tflite::TensorT;
    
    namespace errors = tensorflow::errors;
    namespace tfl = mlir::TFL;
    
    namespace {
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 21 18:21:50 UTC 2024
    - 66.8K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tf2xla/api/v1/compile_mlir_util.cc

    // Returns a static ranked tensor type corresponding to the given static or
    // bounded type by using the bounds as dimension sizes. Returns null if is
    // neither.
    mlir::RankedTensorType GetBufferType(mlir::Type ty) {
      auto ranked_ty = mlir::dyn_cast_or_null<mlir::RankedTensorType>(ty);
      if (!ranked_ty) return {};
    
      int64_t rank = ranked_ty.getRank();
      llvm::SmallVector<int64_t, 4> dims = llvm::to_vector<4>(ranked_ty.getShape());
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 21 17:24:39 UTC 2024
    - 45.3K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/lite/stablehlo/transforms/legalize_hlo_conversions/reduce.h

              reduce_op, "Unsupported Reduce -> ArgMax/ArgMin pattern");
    
        Value operand = reduce_op.getInputs().front();
        int64_t axis = reduce_op.getDimensions().getValues<int64_t>()[0];
    
        auto dim_type = RankedTensorType::get({1}, rewriter.getI32Type());
        auto reduction_indices = rewriter.create<arith::ConstantOp>(
            reduce_op.getLoc(), dim_type,
            rewriter.getI32TensorAttr({static_cast<int32_t>(axis)}));
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 5.7K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tensorflow/transforms/init_text_file_to_import.cc

        // Create constant ops for keys an values.
        Value key_constant_tensor = rewriter.create<arith::ConstantOp>(
            op.getLoc(),
            DenseStringElementsAttr::get(
                RankedTensorType::get(static_cast<int64_t>(lines.size()),
                                      StringType::get(rewriter.getContext())),
                lines));
    
        Value value_constant_tensor = rewriter.create<arith::ConstantOp>(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Nov 03 12:35:38 UTC 2022
    - 6.1K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/lite/transforms/legalize_hashtables.cc

      LogicalResult matchAndRewrite(TF::HashTableV2Op hashtable_op,
                                    PatternRewriter& rewriter) const override {
        auto output_type = RankedTensorType::get(
            {1}, TF::ResourceType::get(rewriter.getContext()));
    
        // Hash the shared name to generate integer hash table id. The TFLite
        // native resource design is based on integer keys to identify the
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 7.6K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tf2xla/internal/passes/tpu_sharding_identification_pass.cc

        // a non-proto sharding as valid, and don't verify further. We also only
        // verify shardings that actually break a tensor apart.
        return mlir::success();
      }
      if (RankedTensorType ranked_type = mlir::dyn_cast<RankedTensorType>(type)) {
        const int64_t tensor_rank = ranked_type.getRank();
        int tile_assignment_rank = sharding->tile_assignment_dimensions_size();
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Apr 30 02:01:13 UTC 2024
    - 28.9K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tensorflow/c/c_api_unified_experimental_mlir.cc

        return InvalidArgument("Requested reference to a reference type");
      }
      elt_type = TensorFlowRefType::get(elt_type);
      if (RankedTensorType tensor_type = mlir::dyn_cast<RankedTensorType>(type)) {
        *output_type = RankedTensorType::get(tensor_type.getShape(), elt_type);
      }
      *output_type = UnrankedTensorType::get(elt_type);
      return absl::OkStatus();
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 28.2K bytes
    - Viewed (0)
Back to top