Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 88 for operands_ (0.31 sec)

  1. tensorflow/compiler/mlir/tf2xla/transforms/legalize_tf_with_tf2xla.cc

          Operation* op, ArrayRef<Value> operands,
          ConversionPatternRewriter& rewriter) const override {
        // This pattern is a conversion pattern because we want to specify a type
        // converter. However, this pattern still uses the original op's operands
        // while creating the ops so make sure there aren't any type changes between
        // the original op operands and the operands during the conversion.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 28 21:49:50 UTC 2024
    - 9.7K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tensorflow/transforms/tpu_resource_read_for_write.cc

        // Update caller and function types with new read operands.
        auto operands = llvm::to_vector<4>(cluster_func.getOperands());
        operands.append(read_operands.begin(), read_operands.end());
    
        auto loc = cluster_func.getLoc();
        auto new_cluster_func = builder.create<tf_device::ClusterFuncOp>(
            loc, cluster_func.getResultTypes(), operands, cluster_func->getAttrs());
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 02 16:54:40 UTC 2024
    - 5.4K bytes
    - Viewed (0)
  3. src/go/types/conversions.go

    			msg := check.sprintf(format, args...)
    			if *cause != "" {
    				msg += "\n\t" + *cause
    			}
    			*cause = msg
    		}
    	}
    
    	// generic cases with specific type terms
    	// (generic operands cannot be constants, so we can ignore x.val)
    	switch {
    	case Vp != nil && Tp != nil:
    		x := *x // don't clobber outer x
    		return Vp.is(func(V *term) bool {
    			if V == nil {
    				return false // no specific types
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 18:51:00 UTC 2024
    - 9.1K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/lite/transforms/optimize_batch_matmul.cc

      LogicalResult matchAndRewrite(TFL::BatchMatMulOp bmm_op,
                                    PatternRewriter& rewriter) const override {
        // For simplicity, check if first operand is an identity i.e. `ones_like`.
        // This assumes canonicalization ordered operands this way.
        SplatElementsAttr constant;
        if (!matchPattern(bmm_op.getX(), m_Constant(&constant))) {
          return failure();
        }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 9.6K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tfrt/ir/mlrt/tf_ops.td

        $operands_with_static_shape are indices of operands that are tagged with a maximum static shape.
        $producer_name is a string describing the name of the framework that added support for running this portion of the model on TPUs.
    
        Example:
          %rendezvous_key_base, %result = tf_mlrt_tpu.compile_and_execute (%operands) constant_operand_indices = [1, 3] metadata = "metadata..." mlir_module = "mlir_module..."
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 22 21:35:32 UTC 2024
    - 6.7K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tensorflow/analysis/resource_value_typed_analyzer.h

      // within its purview are mutating in nature.
      void PropagatePotentiallyWrittenWithinUnhandledOp(Operation* op);
    
      // Given a Region associated with the callee and operands from the
      // corresponding callOp, propagate the potentially written decision to the
      // callOp's operands, if the corresponding region's arguments are potentially
      // written resources.
      void PropagatePotentiallyWrittenUpFromCallee(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 15 09:04:13 UTC 2024
    - 3K bytes
    - Viewed (0)
  7. src/cmd/compile/internal/types2/conversions.go

    			msg := check.sprintf(format, args...)
    			if *cause != "" {
    				msg += "\n\t" + *cause
    			}
    			*cause = msg
    		}
    	}
    
    	// generic cases with specific type terms
    	// (generic operands cannot be constants, so we can ignore x.val)
    	switch {
    	case Vp != nil && Tp != nil:
    		x := *x // don't clobber outer x
    		return Vp.is(func(V *term) bool {
    			if V == nil {
    				return false // no specific types
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 18:51:00 UTC 2024
    - 9K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tensorflow/analysis/tf_dataflow.h

      bool ForwardThroughTFOperation(Operation *op,
                                     ArrayRef<const StateT *> operands,
                                     ArrayRef<StateT *> results) {
        if (auto cast = dyn_cast<TF::CastOp>(op)) {
          this->join(results[0], *operands[0]);
        } else if (auto while_op = dyn_cast<TF::WhileRegionOp>(op)) {
          for (auto &region : while_op->getRegions()) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Mar 06 23:53:00 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tensorflow/transforms/fold_broadcast.cc

          continue;
    
        // Check that an implicit broadcast between the operand of the broadcast and
        // the other argument would result in the same type as the result type.
        if (broadcasted_shape != result_type.getShape()) continue;
    
        // Update the operand of the op to be the operand of the broadcast.
        rewriter.modifyOpInPlace(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 7.9K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/lite/transforms/decompose_hybrid_quantization.cc

        for (auto operand : op->getOperands()) {
          if (QuantizedType::getQuantizedElementType(operand.getType())) {
            auto newTy = QuantizedType::castToExpressedType(operand.getType());
            newOperands.push_back(
                rewriter.create<TFL::DequantizeOp>(loc, newTy, operand));
            continue;
          }
    
          newOperands.push_back(operand);
        }
    
        SmallVector<Type> newResultTys;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 5.8K bytes
    - Viewed (0)
Back to top