Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for getOperands (0.32 sec)

  1. tensorflow/compiler/mlir/lite/transforms/lower_static_tensor_list.cc

          TF::TensorListSetItemOp op, OpAdaptor adaptor,
          ConversionPatternRewriter &rewriter) const {
        Location loc = op.getLoc();
        Value input = adaptor.getOperands()[0];
        Value index = adaptor.getOperands()[1];
        Value item = adaptor.getOperands()[2];
    
        IntegerType shape_dtype = rewriter.getIntegerType(32);
        auto item_rank = rewriter.create<TF::RankOp>(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jun 11 20:00:43 UTC 2024
    - 70.7K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tensorflow/transforms/decompose_optionals.cc

          }
        }
        if (!newType) {
          return failure();
        }
        rewriter.replaceOpWithNewOp<UnrealizedConversionCastOp>(op, newType,
                                                                op->getOperands());
        return success();
      }
    };
    
    class HandleCall : public OpInterfaceRewritePattern<CallOpInterface> {
      // Optional-agnostic pattern that propagates types across the program.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Jun 12 21:18:05 UTC 2024
    - 9.8K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tf2xla/api/v2/tf_executor_to_graph.cc

        for (auto operand_and_idx : llvm::enumerate(op->getOperands()))
          TF_RETURN_IF_ERROR(AddEdgeBetweenNodes(operand_and_idx.value(), dst_node,
                                                 operand_and_idx.index()));
    
        operand_offset = op->getNumOperands();
      }
    
      // For all other ops (including tf_executor.island), add remaining edges.
      for (auto operand_and_idx : llvm::enumerate(inst->getOperands()))
        TF_RETURN_IF_ERROR(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jun 06 23:04:51 UTC 2024
    - 35.2K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tf2xla/internal/passes/xla_broadcast.cc

      if (num_cores_per_replica != 1) return success();
    
      llvm::SetVector<Value> bcasts;
      cluster->walk([&](Operation* op) {
        if (op == cluster) return WalkResult::advance();
        for (auto operand : op->getOperands()) {
          Operation* scope = operand.getParentBlock()->getParentOp();
          if (scope->isProperAncestor(replicate)) {
            bcasts.insert(operand);
          }
        }
        return WalkResult::advance();
      });
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jun 13 18:52:07 UTC 2024
    - 13.9K bytes
    - Viewed (0)
  5. 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)
  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/tf2xla/transforms/legalize_tf.cc

          }
    
          mhlo_op = rewriter.create<DstOpT>(loc, TypeRange(while_result_types),
                                            adaptor.getOperands());
        } else {
          mhlo_op = rewriter.create<DstOpT>(loc, op.getResultTypes(),
                                            adaptor.getOperands());
        }
    
        int64_t num_regions = op.getNumRegions();
        for (int64_t idx = 0; idx < num_regions; ++idx) {
    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. tensorflow/compiler/mlir/lite/ir/tfl_ops.td

          Or<[TFL_OperandIsUnrankedPred<0>,
              CPred<"$_op.getOperand(0).getType().cast<ShapedType>().getRank() <= 1">,
              CPred<"$_op.getOperand(0).getType().cast<ShapedType>().getRank() == 2 && !$_op.getOperand(0).getType().cast<ShapedType>().hasStaticShape()">,
              CPred<"$_op.getOperand(0).getType().cast<ShapedType>().getRank() == 2 && $_op.getOperand(0).getType().cast<ShapedType>().getShape()[1] <= 4">]>>]> {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jun 06 19:09:08 UTC 2024
    - 186K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tensorflow/ir/tf_generated_ops.td

          // make it to the return array.
          auto segment_sizes = getOperation()->getAttrOfType<DenseI32ArrayAttr>(getOperandSegmentSizeAttr());
          return OperandRangeRange(getOperands(), segment_sizes).join();
        }
      }];
    }
    
    def TF_BatchMatMulOp : TF_Op<"BatchMatMul", [Pure, TF_SameOperandsAndResultElementTypeResolveRef]> {
      let summary = "Multiplies slices of two tensors in batches.";
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jun 11 23:24:08 UTC 2024
    - 793K bytes
    - Viewed (0)
Back to top