Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 83 for ArrayAttr (0.7 sec)

  1. tensorflow/compiler/mlir/lite/flatbuffer_export.cc

                                           tflite::BuiltinOperator op_code);
      BufferOffset<flatbuffers::Vector<unsigned int>> BuildStablehloPrecisionConfig(
          ::mlir::ArrayAttr precisionConfig);
    
      BufferOffset<flatbuffers::Vector<unsigned int>> BuildVhloPrecisionConfigV1(
          mlir::vhlo::ArrayV1Attr precisionConfig);
    
      std::optional<BufferOffset<tflite::Operator>> BuildStablehloGatherOp(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Jun 12 21:41:49 UTC 2024
    - 164.5K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tf2xla/internal/passes/tpu_sharding_identification_pass.cc

                                              false)
              .failed()) {
        return std::nullopt;
      }
      return sharding;
    }
    
    // Converts an op-sharding vector into a string attr using the builder.
    mlir::ArrayAttr GetStrArrayAttr(Builder* builder,
                                    const OpShardingVector& vect) {
      llvm::SmallVector<mlir::Attribute, 8> strings;
      for (const auto& sharding_or_op : vect) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Apr 30 02:01:13 UTC 2024
    - 28.9K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tensorflow/transforms/shape_inference.cc

      }
      return false;
    }
    
    // Helper structure to capture shapes & types for Dataset input.
    struct DatasetInput {
      explicit operator bool() const { return shapes && types; }
    
      ArrayAttr shapes;
      ArrayAttr types;
    };
    
    // Returns the input elements shapes and types for Dataset ops.
    DatasetInput GetDatasetInput(Value value) {
      // TODO(haoliang): add an interface for DatasetOp to avoid the following
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sat Jun 08 07:28:49 UTC 2024
    - 134.1K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tensorflow/ir/tf_device.cc

      // Check number of devices, if set, matches `n`.
      if (op.getDevices().has_value()) {
        for (auto device_attr : op.getDevices().value().getValue()) {
          auto device_list =
              mlir::dyn_cast_or_null<ArrayAttr>(device_attr.getValue());
          if (!device_list)
            return op.emitError()
                   << "expects 'devices' to be a map alias and device name list.";
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 33.4K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tfr/ir/tfr_ops.cc

                                    PatternRewriter &rewriter) const override {
        Location loc = cst_tensor_op.getLoc();
        Type out_type = cst_tensor_op.getType();
        Operation *new_cst = nullptr;
    
        ArrayAttr array;
        if (matchPattern(cst_tensor_op.getArg(), m_Constant(&array))) {
          llvm::DenseSet<Type> all_types;
          for (auto it : array) {
            TypedAttr typed_attr = it.dyn_cast<TypedAttr>();
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Nov 21 16:55:41 UTC 2023
    - 38.2K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tf2xla/internal/passes/tpu_cluster_formation.cc

          }
        }
    
        // Assume all the replicas have the same structure.
        mlir::TF::TPUPartitionedOutputV2Op first_op = *(ops.begin());
        mlir::ArrayAttr dims = first_op.getPartitionDimsAttr();
        StringAttr sharding = first_op.get_XlaShardingAttr();
        Operation::result_type_range output_types = first_op.getResultTypes();
    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/lite/transforms/prepare_tf.cc

        if (op->getAttrOfType<StringAttr>("padding").getValue() == "EXPLICIT") {
          // Add Const op for padding value.
          ArrayRef<Attribute> padding_attr_array =
              op->getAttrOfType<ArrayAttr>("explicit_paddings").getValue();
    
          auto get_int = [](Attribute attr) {
            return mlir::cast<IntegerAttr>(attr).getInt();
          };
    
          SmallVector<int32_t> padding_values(padding_attr_array.size());
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 28 21:49:50 UTC 2024
    - 64.6K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tensorflow/translate/import_model.cc

      //
      // If an error occurred during the linearization process, an error message
      // with `error_context` prepended will be included in the returned status.
      absl::StatusOr<llvm::ArrayRef<mlir::ArrayAttr>> GetLeafIndexPaths(
          llvm::StringRef error_context) const;
    
     private:
      // Main function that recursively traverses the StructuredValue.
      void RecursivelyFindLeaves(const StructuredValue& value);
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 01 11:17:36 UTC 2024
    - 183.2K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tensorflow/ir/tf_ops_n_z.cc

      int num_resource_args = 0;
      for (Type arg_type : op.getArgs().getTypes())
        if (arg_type.cast<TensorType>().getElementType().isa<ResourceType>())
          ++num_resource_args;
    
      auto check_attr = [&](ArrayAttr indices, llvm::StringRef name,
                            int min) -> LogicalResult {
        if (indices.size() != num_resource_args)
          return op.emitOpError()
                 << "requires '" << name
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 09 22:07:10 UTC 2024
    - 170.8K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/lite/ir/tfl_ops.td

        "whose value equals to '" # value # "'">;
    
    // Ensures the array attribute's size is within the given maximum size.
    class TFL_ArrayMaxCount<int n> : AttrConstraint<
        CPred<"$_self.isa<ArrayAttr>() && $_self.cast<ArrayAttr>().size() <= " # n>,
        "whose size is at most " # n>;
    
    // Ensures the given integer attribute has the given value.
    class TFL_IntEqualsTo<int n> : AttrConstraint<
        CPred<"$_self.isa<IntegerAttr>() && "
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jun 06 19:09:08 UTC 2024
    - 186K bytes
    - Viewed (0)
Back to top