Search Options

Results per page
Sort
Preferred Languages
Advance

Results 121 - 130 of 355 for setAttr (0.15 sec)

  1. tensorflow/compiler/mlir/quantization/stablehlo/passes/quantization_patterns.cc

                                        xla_call_module_op.getArgs());
    
      // Transfer the `kQuantizationMethodAttr` attribute to the `CallOp`,
      // indicating what `Method` has been applied to the quantized unit.
      call_op->setAttr(
          kQuantizationMethodAttr,
          xla_call_module_op->getAttrOfType<StringAttr>(kQuantizationMethodAttr));
    
      rewriter.replaceOp(xla_call_module_op, call_op);
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 03 06:04:36 UTC 2024
    - 41.7K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/quantization/common/quantization_lib/quantization_driver.cc

      // quantization pass. These ops can be removed without losing original
      // program accuracy.
      // TODO: b/323478683 - Make the attribute being part of op definition.
      quantize->setAttr(kVolatileOpAttrName, builder_.getUnitAttr());
    
      // `original_result` has a use to `quantize`, so this will replace that use
      // by the result of `dequantize`. Remember to reset that use afterwards
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 38.1K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tensorflow/transforms/tensor_list_ops_decomposition.cc

        }
        OpBuilder builder(call);
        auto new_call = builder.create<CallOp>(
            call.getLoc(), info.decomposed_callee.getFunctionType().getResults(),
            new_operands, call->getAttrs());
        new_call->setAttr(
            "f", SymbolRefAttr::get(
                     builder.getContext(),
                     const_cast<func::FuncOp&>(info.decomposed_callee).getName()));
        for (const auto& entry : info.buffer_ret_to_size_ret) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 39.2K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tensorflow/transforms/tensor_array_ops_decomposition.cc

        }
        OpBuilder builder(call);
        auto new_call = builder.create<CallOp>(
            call.getLoc(), info.decomposed_callee.getFunctionType().getResults(),
            new_operands, call->getAttrs());
        new_call->setAttr(
            "f", SymbolRefAttr::get(
                     builder.getContext(),
                     const_cast<func::FuncOp&>(info.decomposed_callee).getName()));
        for (const auto& entry : info.ret_forward_input) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Mar 02 20:41:19 UTC 2023
    - 40.2K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/quantization/tensorflow/passes/replace_cast_hacks_with_tf_xla_ops.cc

      Value reduced = builder.create<TF::EinsumOp>(
          loc, RankedTensorType::get(output_shape, builder.getIntegerType(32)),
          input_arguments, builder.getStringAttr(einsum_equation));
    
      reduced.getDefiningOp()->setAttr(
          kTfQuantCreatedEinsum,
          BoolAttr::get(reduced.getDefiningOp()->getContext(), true));
      auto mul_op = builder.create<TF::MulOp>(loc, zp, reduced);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 47.1K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tensorflow/transforms/resource_op_lifting.cc

      auto new_call = builder.create<CallOpType>(
          call_op.getLoc(),
          lifting_info.lifted_callee.getFunctionType().getResults(), new_operands,
          call_op->getAttrs());
      new_call->setAttr("f",
                        SymbolRefAttr::get(builder.getContext(),
                                           lifting_info.lifted_callee.getName()));
      AddLoadsStoresOutsideControlFlowOp(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 55.1K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tf2xla/transforms/legalize_tf.cc

            *sharding_proto.add_tuple_shardings() =
                ::xla::sharding_builder::AssignDevice(0);
            data_and_token->setAttr(
                kShardingAttr,
                rewriter.getStringAttr(sharding_proto.SerializeAsString()));
          } else {
            data_and_token->setAttr(kShardingAttr, op.get_XlaShardingAttr());
          }
        }
    
        if (op->hasAttr("layouts")) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jun 11 20:00:43 UTC 2024
    - 291.8K bytes
    - Viewed (0)
  8. src/cmd/vendor/golang.org/x/sys/unix/syscall_linux.go

    }
    
    // KeyctlRestrictKeyring implements the KEYCTL_RESTRICT_KEYRING command. This
    // command limits the set of keys that can be linked to the keyring, regardless
    // of keyring permissions. The command requires the "setattr" permission.
    //
    // When called with an empty keyType the command locks the keyring, preventing
    // any further keys from being linked to the keyring.
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 07 05:26:45 UTC 2024
    - 77.5K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/quantization/tensorflow/utils/tf_to_uniform_attribute_utils.cc

      auto* defining_op = op->getOperand(operand_index).getDefiningOp();
      for (auto attr : kQuantizationAxisAttrs) {
        if (defining_op->hasAttr(attr)) {
          return defining_op->getAttr(attr);
        }
      }
      // Not found.
      return rewriter.getI64IntegerAttr(-1);
    }
    
    LogicalResult CheckIfAttrIs8Bit(const std::string& attr, Operation* op,
                                    bool& is_8_bit) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 18.7K bytes
    - Viewed (0)
  10. subprojects/core/src/main/java/org/gradle/api/internal/tasks/options/FieldOptionElement.java

                PropertySetter setter = mutateUsingGetter(field);
                return AbstractOptionElement.of(optionName, option, setter, optionValueNotationParserFactory);
            }
            if (HasMultipleValues.class.isAssignableFrom(fieldType)) {
                PropertySetter setter = mutateUsingGetter(field);
                Class<?> elementType = setter.getRawType();
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 11 11:28:20 UTC 2023
    - 7K bytes
    - Viewed (0)
Back to top