Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 140 for Enumerated (0.14 sec)

  1. tensorflow/compiler/mlir/tensorflow/transforms/host_runtime/tpu_variable_runtime_reformatting.cc

      // Finds the mapping from a replicate argument to an execute operand.
      llvm::SmallDenseMap<int64_t, int64_t, 8> replicate_arg_to_execute_arg;
      for (auto index_and_arg : llvm::enumerate(execute.getArgs())) {
        auto arg = SkipIdentity(index_and_arg.value(), /*allow_other_use=*/false);
        if (!arg.hasOneUse() ||
            !mlir::isa<TF::ResourceType>(getElementTypeOrSelf(arg.getType()))) {
          continue;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 21.9K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/lite/flatbuffer_import.cc

          if (shape_ty != nullptr && shape_ty.hasRank() && shape_ty.getRank() > 1) {
            llvm::SmallVector<mlir::Attribute, 4> shape;
            int32_t dim_size = 0;
            for (const auto& dim :
                 llvm::enumerate(shape_attr.getValues<llvm::APInt>())) {
              shape.push_back(builder.getI32IntegerAttr(
                  mlir::TFL::ConvertToTfliteSize(dim.value().getSExtValue())));
              ++dim_size;
            }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 21 18:21:50 UTC 2024
    - 66.8K bytes
    - Viewed (0)
  3. testing/internal-performance-testing/src/main/groovy/org/gradle/performance/generator/BazelFileContentGenerator.groovy

            @RunWith(Suite.class)
            @Suite.SuiteClasses({ %s })
            public class %s {}
            """
    
    _PREFIXES = ("org", "com", "edu")
    
    def _SafeIndex(l, val):
        for i, v in enumerate(l):
            if val == v:
                return i
        return -1
    
    def _AsClassName(fname):
        fname = [x.path for x in fname.files.to_list()][0]
        toks = fname[:-5].split("/")
        findex = -1
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 5.7K bytes
    - Viewed (0)
  4. docs/pt/docs/tutorial/path-params.md

    ```Python hl_lines="17"
    {!../../../docs_src/path_params/tutorial005.py!}
    ```
    
    #### Obtenha o *valor de enumerate*
    
    VocĂȘ pode ter o valor exato de enumerate (um `str` nesse caso) usando `model_name.value`, ou em geral, `your_enum_member.value`:
    
    ```Python hl_lines="20"
    {!../../../docs_src/path_params/tutorial005.py!}
    ```
    
    !!! tip "Dica"
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Thu Apr 18 19:53:19 UTC 2024
    - 9.7K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tfr/passes/raise_to_tf.cc

        SmallVectorImpl<Value>* inputs, NamedAttrList* arg_attrs,
        llvm::StringMap<Attribute>* derived_attrs) const {
      for (const auto& operand :
           llvm::enumerate(signature.getFunctionType().getInputs())) {
        // If the index is larger than the operand number of the call_op, the
        // default value of the operand needs to be used.
        if (operand.index() >= call_op.getNumOperands()) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 21.8K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tensorflow/transforms/tpu_annotate_dynamic_shape_inputs.cc

        // Traverse the operands of the cluster func op and find which operand
        // is returned by TPUAnnotateTensorsWithDynamicShapeOp.
        for (const auto& cluster_func_operand :
             llvm::enumerate(cluster_func_op.getOperands())) {
          auto device_launch_op = llvm::dyn_cast<tf_device::LaunchOp>(
              GetOpOfValue(cluster_func_operand.value()));
          if (!device_launch_op) continue;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 6.2K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tensorflow/ir/tf_device.cc

      if (regions.empty()) {
        return op.emitOpError() << "must have at least one region.";
      }
    
      int output_index = 0;
      for (const auto& region_and_index : llvm::enumerate(regions)) {
        auto& region = region_and_index.value();
        auto* region_terminator = region.front().getTerminator();
    
        // Check that output types of regions match return operand types.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 33.4K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tensorflow/transforms/host_runtime/tpu_merge_variables_with_execute.cc

      // Collect all operands of `execute` whose defining ops are variable reads
      // that might get merged, and add relevant information to `var_access_info`.
      for (auto operand : llvm::enumerate(execute->getOpOperands())) {
        var_access_info.new_operand_values.push_back(operand.value().get());
        auto read_op = llvm::dyn_cast_or_null<TF::ReadVariableOp>(
            operand.value().get().getDefiningOp());
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Feb 29 17:52:11 UTC 2024
    - 27K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tfr/passes/decompose.cc

        // a constant is created by using the attribute stored in the TF op or the
        // default value in the argument attribute.
        llvm::SmallVector<Value, 4> new_operands;
        for (auto arg : llvm::enumerate(compose_func_type.getInputs())) {
          if (auto tensor_type = mlir::dyn_cast<TFRTensorType>(arg.value())) {
            auto casted = builder.create<CastOp>(op->getLoc(), tensor_type,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 14.6K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tensorflow/utils/device_util.cc

                                         mlir::ArrayAttr array_attr,
                                         mlir::TF::RuntimeDevices* devices) {
      DeviceNameUtils::ParsedName device;
    
      for (const auto& kv : llvm::enumerate(array_attr)) {
        const int idx = kv.index();
    
        auto string_attr = mlir::dyn_cast<mlir::StringAttr>(kv.value());
        if (!string_attr)
          return op->emitOpError(llvm::formatv(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 6.4K bytes
    - Viewed (0)
Back to top