Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 455 for operand0 (0.16 sec)

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

        }
    
        // If any of the operands is a resource type, then we break
        // and mark the module as not valid for TFLite legalization.
        // Note: this might disable native variables in more than needed cases.
        // TODO(b/189370197): Enhance variable analysis.
        for (auto operand : op->getOperands()) {
          if (mlir::isa<TF::ResourceType>(
                  getElementTypeOrSelf(operand.getType()))) {
            legalize_to_tfl = false;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 4.3K bytes
    - Viewed (0)
  2. src/go/types/call.go

    	if n := len(elist); n == 1 {
    		xlist, _ = check.multiExpr(elist[0], false)
    	} else if n > 1 {
    		// multiple (possibly invalid) values
    		xlist = make([]*operand, n)
    		for i, e := range elist {
    			var x operand
    			check.expr(nil, &x, e)
    			xlist[i] = &x
    		}
    	}
    	return
    }
    
    // genericExprList is like exprList but result operands may be uninstantiated or partially
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 33.5K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tensorflow/transforms/sparsecore/embedding_sequencing.cc

      // that was extracted..
    
      // Find the input edges to form the set of operands to the new function call.
      llvm::SetVector<Value> inputs;
      for (Operation* op : ops) {
        for (Value operand : op->getOperands()) {
          Operation* defining_op = operand.getDefiningOp();
          if (!ops.contains(defining_op)) inputs.insert(operand);
        }
      }
      // Find the output edges to form the set of resutls of the new function call.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 39.4K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tensorflow/transforms/cluster_ops_by_policy.cc

      constraints.Walk([](Value value, ValueConstraint constraint) {
        for (OpOperand &operand : value.getUses())
          operand.getOwner()->emitRemark(
              llvm::formatv("operand #{0} constrained to: {1}",
                            operand.getOperandNumber(), constraint));
      });
    }
    
    void EmitInputsConstraintsRemarks(func::FuncOp func,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 27.9K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/lite/transforms/optimize_functional_ops.cc

          // original If op.
          if (op_to_inline.hasTrait<OpTrait::IsTerminator>()) {
            updated_results.reserve(op_to_inline.getNumOperands());
            for (Value operand : op_to_inline.getOperands())
              updated_results.push_back(mapper.lookup(operand));
            break;
          }
    
          // Otherwise, clone the op here.
          rewriter.clone(op_to_inline, mapper);
        }
        rewriter.replaceOp(op, updated_results);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 6.6K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/lite/utils/stateful_ops_utils.h

    #include <vector>
    
    #include "mlir/Dialect/Func/IR/FuncOps.h"  // from @llvm-project
    
    namespace mlir {
    namespace TFL {
    
    // Check if the given op has stateful operands and return their stateful
    // operand indices.
    bool IsStatefulOp(Operation* op, std::vector<int>* stateful_operand_indices);
    
    }  // namespace TFL
    }  // namespace mlir
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sat Jun 03 00:14:05 UTC 2023
    - 1.2K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tensorflow/transforms/tpu_device_propagation.cc

      for (Value operand : op.getOperands()) {
        if (mlir::isa<tf_executor::TokenType>(operand.getType())) continue;
        if (mlir::isa<tf_executor::ControlType>(operand.getType())) break;
    
        if (is_switch &&
            llvm::isa_and_nonnull<tf_executor::LoopCondOp>(operand.getDefiningOp()))
          continue;
    
        auto it = value_to_device.find(operand);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 11K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tensorflow/transforms/annotate_parameter_replication.cc

        auto func =
            llvm::cast<func::FuncOp>(m.lookupSymbol(cluster_func.getFunc()));
        for (auto entry : llvm::enumerate(cluster_func.getOperands())) {
          auto operand = SkipIdentityAndReadVariable(entry.value());
          auto block_arg = mlir::dyn_cast<BlockArgument>(operand);
          if (block_arg && block_arg.getOwner() == &replicate.GetBody()) {
            // Only mirrored args of ReplicateOp can be annotated.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 4.1K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/lite/transforms/lower_static_tensor_list.cc

      Value GetNumElements(TF::TensorListReserveOp op, ValueRange operands,
                           PatternRewriter *rewriter) const override {
        Value scalar_zero = CreateI32SplatConst(op.getLoc(), rewriter, {}, 0);
        Type shape_dtype = getElementTypeOrSelf(op.getElementShape().getType());
        Value num_elements = operands[1];
        IntegerAttr attr;
        if (matchPattern(num_elements, m_Constant(&attr))) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jun 11 20:00:43 UTC 2024
    - 70.7K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/lite/flatbuffer_export.cc

          if (mlir::isa<NoneType>(operand.getType()))
            operands.push_back(kTfLiteOptionalTensor);
          else if (auto stats_op =
                       llvm::dyn_cast_or_null<mlir::quantfork::StatisticsOp>(
                           operand.getDefiningOp()))
            operands.push_back(tensor_index_map.lookup(stats_op.getArg()));
          else
            operands.push_back(tensor_index_map.lookup(operand));
        }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Jun 12 21:41:49 UTC 2024
    - 164.5K bytes
    - Viewed (2)
Back to top