Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for GetOperands (0.17 sec)

  1. tensorflow/compiler/mlir/lite/ir/tfl_ops.cc

                       [&](Type type) { return type != resultType; })) {
        p.printGenericOp(op, /*printOpName=*/false);
        return;
      }
    
      p << ' ';
      p.printOperands(op->getOperands());
      p.printOptionalAttrDict(op->getAttrs());
      // Now we can output only one type for all operands and the result.
      p << " : " << resultType;
    }
    
    Operation* getDefiningBroadcastArgsOp(Value operand) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 02 09:41:17 UTC 2024
    - 169.2K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tensorflow/ir/tf_ops_a_m.cc

      branch_types.reserve(branches.size());
    
      if (llvm::any_of(op->getOperands(),
                       [](Value value) { return value == nullptr; }))
        return op->emitOpError("operation has null operand");
    
      // Functions have one less operand compared to op as first operand is elided
      // (`cond` of `tf.If` and `branch_index` of `tf.Case`).
      TypeRangeWithDesc input{op->getOperands().drop_front().getTypes(), "input"};
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 146.7K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tensorflow/ir/tf_ops_n_z.cc

      if (!point.isParent() && point == (*this)->getRegion(0)) {
        // 'cond' branches to the body or returns.
        Operation *yield = getCond().front().getTerminator();
        if (yield->getOperands().size() ==
            1 + this->getOperation()->getOperands().size()) {
          regions.push_back(
              RegionSuccessor(&getBody(), getBody().front().getArguments()));
          regions.push_back(getResults());
        } else {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 09 22:07:10 UTC 2024
    - 170.8K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tensorflow/transforms/shape_inference.cc

        return RefineTypeForPassThroughOperands(
            op, iter_sink.getOperands().drop_front().take_front(),
            iter_source.getResults());
      }
      if (auto launch_op = dyn_cast<tf_device::LaunchOp>(op)) {
        auto terminator = launch_op.GetBody().getTerminator();
        return RefineTypeForPassThroughOperands(op, terminator->getOperands(),
                                                op->getResults());
      }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sat Jun 08 07:28:49 UTC 2024
    - 134.1K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/lite/stablehlo/transforms/legalize_hlo.cc

      if (compare_op.getComparisonDirection() != mhlo::ComparisonDirection::GT) {
        return false;
      }
      if (compare_op.getOperands()[0] != comparator_blk.getArgument(0) ||
          compare_op.getOperands()[1] != comparator_blk.getArgument(1)) {
        return false;
      }
      return return_op.getOperands().front() == compare_op.getResult();
    }
    
    // In general, we convert the following form of sort to tf.TopK:
    //
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 154.9K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/lite/flatbuffer_export.cc

                 tfl::SparseQConstOp, mlir::TFL::NoValueOp,
                 mlir::stablehlo::ConstantOp, mlir::vhlo::ConstantOpV1>(op);
    }
    
    static bool IsTFResourceOp(Operation* op) {
      for (const auto& operand : op->getOperands()) {
        auto elementType = getElementTypeOrSelf(operand.getType());
        if (mlir::isa<mlir::TF::ResourceType>(elementType)) {
          return true;
        }
      }
      for (const auto& result : op->getResults()) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Jun 12 21:41:49 UTC 2024
    - 164.5K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/lite/stablehlo/transforms/uniform_quantized_stablehlo_to_tfl_pass.cc

        Type output_type = op.getResult().getType();
        uint32_t axis = CastI64ToI32(op.getDimension()).value();
        rewriter.replaceOpWithNewOp<TFL::ConcatenationOp>(
            op, output_type, op.getOperands(), axis,
            /*fused_activation_function=*/rewriter.getStringAttr("NONE"));
      }
    };
    
    // Rewrites quantized stablehlo.pad to tfl.padv2.
    // tfl.dilate is introduced in between when interior padding exists.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Apr 22 09:00:19 UTC 2024
    - 99.8K bytes
    - Viewed (0)
Back to top