Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 40 for semop (0.16 sec)

  1. src/cmd/compile/internal/walk/convert.go

    	if n.TypeWord == nil || n.TypeWord.Op() == ir.OADDR && n.TypeWord.(*ir.AddrExpr).X.Op() == ir.OLINKSYMOFFSET {
    		// Fixed (not loaded from a dictionary) type.
    		ta := ir.NewTypeAssertExpr(base.Pos, c, toType)
    		ta.SetOp(ir.ODOTTYPE2)
    		// Allocate a descriptor for this conversion to pass to the runtime.
    		ta.Descriptor = makeTypeAssertDescriptor(toType, true)
    		rhs = ta
    	} else {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Oct 09 17:28:22 UTC 2023
    - 18.2K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/walk/assign.go

    	// same type as the variable on the lhs.
    	if ok := n.Lhs[1]; !ir.IsBlank(ok) && ok.Type().IsBoolean() {
    		call.Type().Field(1).Type = ok.Type()
    	}
    	n.Rhs = []ir.Node{call}
    	n.SetOp(ir.OAS2FUNC)
    
    	// don't generate a = *var if a is _
    	if ir.IsBlank(a) {
    		return walkExpr(typecheck.Stmt(n), init)
    	}
    
    	var_ := typecheck.TempAt(base.Pos, ir.CurFunc, types.NewPtr(t.Elem()))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 17:09:06 UTC 2024
    - 20.3K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/walk/switch.go

    	// because walkExpr will lower the string
    	// conversion into a runtime call.
    	// See issue 24937 for more discussion.
    	if cond.Op() == ir.OBYTES2STR && allCaseExprsAreSideEffectFree(sw) {
    		cond := cond.(*ir.ConvExpr)
    		cond.SetOp(ir.OBYTES2STRTMP)
    	}
    
    	cond = walkExpr(cond, sw.PtrInit())
    	if cond.Op() != ir.OLITERAL && cond.Op() != ir.ONIL {
    		cond = copyExpr(cond, cond.Type(), &sw.Compiled)
    	}
    
    	base.Pos = lno
    
    	s := exprSwitch{
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 04 17:34:01 UTC 2024
    - 30.1K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/walk/expr.go

    	if n.RType != nil && n.RType.Op() == ir.OADDR {
    		addr := n.RType.(*ir.AddrExpr)
    		if addr.X.Op() == ir.OLINKSYMOFFSET {
    			r := ir.NewTypeAssertExpr(n.Pos(), n.X, n.Type())
    			if n.Op() == ir.ODYNAMICDOTTYPE2 {
    				r.SetOp(ir.ODOTTYPE2)
    			}
    			r.SetType(n.Type())
    			r.SetTypecheck(1)
    			return walkExpr(r, init)
    		}
    	}
    	return n
    }
    
    // walkIndex walks an OINDEX node.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 04 17:34:01 UTC 2024
    - 27.6K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/quantization/tensorflow/passes/replace_cast_hacks_with_tf_xla_ops.cc

      Value tensor_i32 = builder.create<TF::CastOp>(
          loc, tensor_type.clone(builder.getIntegerType(32)), tensor);
      auto reduced =
          builder.create<TF::SumOp>(loc, tensor_i32, reduction_indices_value,
                                    /*keep_dims=*/builder.getBoolAttr(true));
      auto mul_op = builder.create<TF::MulOp>(loc, zp, reduced);
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 47.1K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tensorflow/ir/tf_ops_n_z.cc

      return IdentityArithmeticOpFolder<SubOp>(*this, operands);
    }
    
    //===----------------------------------------------------------------------===//
    // SumOp
    //===----------------------------------------------------------------------===//
    
    void SumOp::build(OpBuilder &builder, OperationState &result, Value input,
                      Value reduction_indices, BoolAttr keep_dims) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 09 22:07:10 UTC 2024
    - 170.8K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tf2xla/transforms/legalize_tf.cc

        Value offset = op.getShift();
        auto axis_size = b.create<mhlo::ConstantOp>(b.getIntegerAttr(
            getElementTypeOrSelf(offset.getType()), input_shape[axis]));
        offset = b.create<RemOp>(
            b.create<AddOp>(b.create<RemOp>(offset, axis_size), axis_size),
            axis_size);
    
        // Stack two copies of the dimension, then slice from the calculated
        // offset. This also works if shift is not constant.
    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/tensorflow/transforms/lower_tf.cc

        // Exponentiate the inputs.
        Value exp = rewriter.create<TF::ExpOp>(loc, shifted_logits);
    
        // Compute summation of the exponentials.
        Value sum =
            rewriter.create<TF::SumOp>(loc, exp, reduce_dim,
                                       /*keep_dims=*/rewriter.getBoolAttr(true));
    
        if (use_log) {
          Value log = rewriter.create<TF::LogOp>(loc, sum);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 74.9K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/lite/transforms/optimize.cc

        }
        auto log_op = dyn_cast_or_null<TFL::LogOp>(sub_op.getRhs().getDefiningOp());
        if (!log_op || !log_op->hasOneUse()) {
          return failure();
        }
        auto sum_op = dyn_cast_or_null<TFL::SumOp>(log_op.getX().getDefiningOp());
        if (!sum_op || !sum_op.getKeepDims() ||
            !isSupportedAxis(
                sum_op.getAxes(),
                mlir::cast<ShapedType>(sum_op.getOperand(0).getType()).getRank())) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Apr 30 00:40:15 UTC 2024
    - 102.3K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/lite/stablehlo/transforms/legalize_hlo.cc

            return failure();
        } else {
          return failure();
        }
    
        return success();
      }
    };
    
    class ConvertReduceOpToTfSum
        : public ConvertReduceOpToTfOp<mhlo::AddOp, TF::SumOp, TF::AddOp> {
     public:
      using ConvertReduceOpToTfOp::ConvertReduceOpToTfOp;
    
      LogicalResult MatchInitValue(Value init_value) const override {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 154.9K bytes
    - Viewed (0)
Back to top