Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 232 for operands_ (0.12 sec)

  1. tensorflow/compiler/mlir/quantization/stablehlo/passes/bridge/convert_tf_quant_ops_to_mhlo.cc

    }
    
    // If operand is TF const op, create MHLO constant op from the contents.
    // Otherwise convert the operand to the desired type.
    FailureOr<Value> CreateConstantOrConvertOp(Operation *op, Value operand,
                                               TensorType new_operand_type,
                                               PatternRewriter &rewriter) {
      // Check whether the rhs operand has constant op.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 17 17:58:54 UTC 2024
    - 30.9K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tensorflow/transforms/host_runtime/tpu_variable_runtime_reformatting.cc

      metadata.ParseFromString(std::string(metadata_str.getValue()));
      int64_t num_replicas = replicate.getN();
      // Find the formattable operands of `execute`, which must be mirrored
      // variables (arguments of `replicate`), and must be pass-throughs from while
      // operands.
      for (const auto& mirrored_index : mirrored_variable_indices_attr) {
        int64_t replicate_arg = mlir::cast<IntegerAttr>(mirrored_index).getInt();
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 21.9K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tfr/ir/tfr_ops.cc

    OpFoldResult TFR::EqualOp::fold(FoldAdaptor adaptor) {
      auto operands = adaptor.getOperands();
      assert(operands.size() == 2 && "equal op has two operands");
      auto ctx = getContext();
      if (operands[0] == operands[1]) return BoolAttr::get(ctx, true);
      return BoolAttr::get(ctx, false);
    }
    
    OpFoldResult ConstOp::fold(FoldAdaptor adaptor) {
      auto operands = adaptor.getOperands();
      (void)operands;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Nov 21 16:55:41 UTC 2023
    - 38.2K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tfr/passes/raise_to_tf.cc

      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()) {
          auto attr_name = signature.getArgAttrOfType<StringAttr>(
              operand.index(), kAttrArgumentNameAttr);
          auto attr_value =
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 21.8K bytes
    - Viewed (0)
  5. src/fmt/doc.go

    will print 23.
    
    Except when printed using the verbs %T and %p, special
    formatting considerations apply for operands that implement
    certain interfaces. In order of application:
    
    1. If the operand is a [reflect.Value], the operand is replaced by the
    concrete value that it holds, and printing continues with the next rule.
    
    2. If an operand implements the [Formatter] interface, it will
    be invoked. In this case the interpretation of verbs and flags is
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 21:56:20 UTC 2024
    - 14.6K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/quantization/stablehlo/passes/replace_stablehlo_ops_in_main_function_with_xla_call_module_ops.cc

    void UpdateStatesAndReplaceStablehloOps(
        const SetVector<Value>& operands, const SetVector<Value>& defined_values,
        const LiveOuts& liveouts, ModuleOp module_op,
        const SetVector<Operation*>& reverse_subgraph, const int stablehlo_func_id,
        func::FuncOp main_func, const bool is_last_subgraph = false) {
      SetVector<Value> inputs = operands;
      for (Value defined_value : defined_values) {
        inputs.remove(defined_value);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 21K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tensorflow/transforms/tensor_array_ops_decomposition.cc

            decomposed_partitioned_call_callees) {
      for (OpOperand& operand : op.getOpOperands()) {
        if (getElementTypeOrSelf(operand.get().getType()).isa<TF::ResourceType>()) {
          return op.emitOpError()
                 << "found unexpected type " << operand.get().getType()
                 << " of operand #" << operand.getOperandNumber()
                 << ", resource type operands are expected to have been "
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Mar 02 20:41:19 UTC 2023
    - 40.2K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/quantization/stablehlo/passes/quantization_patterns.h

      }
    
      // Collects all candidate ops for quantization, which is the operand of
      // `quantize_op`. If successful, this always returns one element which is the
      // operand of `quantize_op`.
      FailureOr<SmallVector<Operation*>> CollectCandidateOps(
          QuantizeOpT quantize_op) const {
        Value operand = quantize_op->getOperand(0);
        if (QuantizedType::getQuantizedElementType(operand.getType())) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 10.9K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/quantization/stablehlo/passes/quantization_patterns.cc

        return failure();
      }
    
      MutableArrayRef<BlockArgument> operands =
          entry_func_op.getBody().getArguments();
      // Function must have input, filter, and optionally bias.
      if (operands.size() != 2 && operands.size() != 3) {
        LLVM_DEBUG(llvm::dbgs() << GemmStyleOp::getOperationName()
                                << " op function should have 2 or 3 operands.\n");
        return failure();
      }
      return success();
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 03 06:04:36 UTC 2024
    - 41.7K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tfrt/ir/tfrt_fallback_async.td

        avoid atomic contention on AsyncValue's refcount.
      }];
    
      let arguments = (ins
        TFTensorType:$operand
      );
    
      let results = (outs
        Variadic<TFTensorType>:$results
      );
    
      let assemblyFormat = "$operand attr-dict `:` `(` type($operand) `)` `->` `(` type($results) `)`";
    }
    
    def CreateOp: FallbackAsync_Op<"createop", [CoreRT_TypedAttributeTrait]> {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 18 15:01:21 UTC 2024
    - 15.8K bytes
    - Viewed (0)
Back to top