Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 83 for ArrayAttr (0.13 sec)

  1. tensorflow/compiler/mlir/tensorflow/transforms/tf_saved_model_freeze_variables.cc

        func_op->setAttr(
            kTfInputShapesAttr,
            ArrayAttr::get(func_op.getContext(), updated_input_shapes_attr));
      }
    }
    
    // Validates func ops. Returns `failure` if the function is invalid.
    LogicalResult ValidateFuncOp(func::FuncOp func_op) {
      auto input_shapes_attr =
          func_op->getAttrOfType<ArrayAttr>(kTfInputShapesAttr);
      if (!input_shapes_attr) return success();
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 09:56:53 UTC 2024
    - 19.4K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/lite/utils/tftext_utils.cc

          !mlir::isa<IntegerType>(row_splits_type.getElementType())) {
        return func.emitError() << "Second input should be an integer tensor";
      }
    
      auto hash_seed =
          mlir::dyn_cast_or_null<ArrayAttr>(attr.getAttrs().get("hash_seed"));
      if (!hash_seed) {
        return func.emitError()
               << "'hash_seed' attribute is not set or not an array";
      }
      auto output_type = GetResultType(func, 0);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 14.4K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tensorflow/utils/export_utils.cc

    }
    
    Status ConvertAttribute(const mlir::UnitAttr& attr, AttrValue* value) {
      value->clear_value();
      return absl::OkStatus();
    }
    
    Status ConvertAttribute(const mlir::ArrayAttr& attr, bool remove_ref_type,
                            AttrValue* value) {
      auto* list = value->mutable_list();
      for (mlir::Attribute a : attr.getValue()) {
        if (auto attr = mlir::dyn_cast<mlir::BoolAttr>(a)) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 17 17:58:54 UTC 2024
    - 19.7K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/lite/quantization/quantization_context.cc

            input_specs.push_back(TypeAttr::get(requantize.params));
          } else {
            input_specs.push_back(TypeAttr::get(state.params));
          }
        }
        op->setAttr("input_specs", ArrayAttr::get(context, input_specs));
    
        llvm::SmallVector<Attribute, 4> output_specs;
        auto original_output_specs = op.getOutputSpecs().getValue();
        for (int res = 0, e = op.getNumResults(); res != e; ++res) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Apr 08 01:38:03 UTC 2024
    - 13.1K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tensorflow/transforms/annotate_parameter_replication.cc

        auto replicate = cluster_func->getParentOfType<tf_device::ReplicateOp>();
        if (!replicate) return;
        auto mirrored_variable_indices_attr =
            replicate->getAttrOfType<ArrayAttr>(kMirroredVariableIndicesAttr);
        llvm::SmallDenseSet<int64_t, 8> mirrored_replicate_args;
        if (mirrored_variable_indices_attr) {
          for (const auto& mirrored_index : mirrored_variable_indices_attr) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 4.1K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tfrt/ir/tfrt_fallback_common.cc

            *op_attrs) {
      assert(op_attrs);
      op_attrs->clear();
    
      mlir::Builder builder(context);
      for (auto iter : op_attr_array) {
        auto key_value = mlir::cast<mlir::ArrayAttr>(iter).getValue();
        llvm::StringRef key = mlir::cast<mlir::StringAttr>(key_value[0]).getValue();
        mlir::Attribute value = key_value[1];
        op_attrs->push_back({key, value});
      }
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 5.2K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/quantization/common/lift_as_function_call.cc

      }
      auto empty_array_attr = ArrayAttr::get(ctx, {});
      auto platforms = ArrayAttr::get(ctx, {StringAttr::get(ctx, kPlatformCpu)});
    
      auto call_op = builder.create<TF::XlaCallModuleOp>(
          location,
          /*output=*/output_types,
          /*args=*/args,
          /*version=*/kDefaultVersion, /*module=*/"",
          /*Sout=*/ArrayAttr::get(ctx, shape_attrs),
          /*dim_args_spec=*/empty_array_attr,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 17 17:58:54 UTC 2024
    - 21.8K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tensorflow/c/c_api_unified_experimental_mlir.cc

          if (!attr)
            return InvalidArgument(
                "Missing attribute '", output_arg.type_list_attr(),
                "' required for output '", output_arg.name(), "'");
          ArrayAttr array_attr = mlir::dyn_cast<ArrayAttr>(attr);
          if (!array_attr)
            return InvalidArgument("Attribute '", output_arg.type_list_attr(),
                                   "' required for output '", output_arg.name(),
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 28.2K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tensorflow/transforms/replicate_to_island.cc

        return op->emitOpError()
               << "requires device ordinal from device " << logical_core_name
               << " to be present in 'tf.device.replicate' op";
      }
      llvm::StringRef tpu_device =
          tpu_replica.cast<ArrayAttr>()[replica_id].cast<StringAttr>().getValue();
      return tensorflow::GetDeviceOrdinalFromDeviceString(op->getLoc(), tpu_device,
                                                          &device_ordinal);
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Jul 24 21:01:40 UTC 2023
    - 16.9K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tensorflow/utils/tpu_rewrite_device_util.cc

      }
    }
    
    mlir::LogicalResult GetDeviceAssignmentCoordinates(
        mlir::tf_device::ClusterOp cluster,
        llvm::SmallVector<int64_t, 8>& device_coordinates) {
      mlir::ArrayAttr device_assignment_attr =
          cluster->getAttrOfType<mlir::ArrayAttr>(
              tensorflow::kDeviceAssignmentAttr);
      if (!device_assignment_attr)
        return cluster.emitOpError(llvm::formatv("requires attribute '{0}'",
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Jun 10 20:10:40 UTC 2024
    - 32.8K bytes
    - Viewed (0)
Back to top