- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 38 for IsInteger (0.12 sec)
-
tensorflow/compiler/mlir/quantization/tensorflow/passes/quantize.cc
auto sc_op = llvm::cast<quantfork::StorageCastOp>(preceding_op); auto sc_arg_type = sc_op.getArg().getType().dyn_cast<TensorType>(); if (sc_arg_type.getElementType().isInteger(8)) { return true; } } } for (const auto& result : same_scale_op->getResults()) { // If the user is the Quantize op, it must be the only user.
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri Mar 22 05:52:39 UTC 2024 - 23.6K bytes - Viewed (0) -
src/go/types/stmt.go
// lhs expressions and initialization value (rhs) types lhs := [2]Expr{sKey, sValue} // sKey, sValue may be nil rhs := [2]Type{key, val} // key, val may be nil rangeOverInt := isInteger(x.typ) if isDef { // short variable declaration var vars []*Var for i, lhs := range lhs { if lhs == nil { continue } // determine lhs variable var obj *Var
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 30 19:19:55 UTC 2024 - 30.6K bytes - Viewed (0) -
src/cmd/compile/internal/types2/stmt.go
// lhs expressions and initialization value (rhs) types lhs := [2]Expr{sKey, sValue} // sKey, sValue may be nil rhs := [2]Type{key, val} // key, val may be nil rangeOverInt := isInteger(x.typ) if isDef { // short variable declaration var vars []*Var for i, lhs := range lhs { if lhs == nil { continue } // determine lhs variable var obj *Var
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 30 19:19:55 UTC 2024 - 30.7K bytes - Viewed (0) -
src/cmd/compile/internal/typecheck/typecheck.go
n.Rhs[i] = AssignConv(tmp, n.Lhs[i].Type(), "assignment") } } } func checksliceindex(l ir.Node, r ir.Node, tp *types.Type) bool { t := r.Type() if t == nil { return false } if !t.IsInteger() { base.Errorf("invalid slice index %v (type %v)", r, t) return false } if r.Op() == ir.OLITERAL { x := r.Val() if constant.Sign(x) < 0 {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Mar 20 19:08:34 UTC 2024 - 30.5K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/canonicalize.td
// Canonicalize tf.Maximum of zero to tf.Relu //===----------------------------------------------------------------------===// def IsInteger32Pred: CPred< "getElementTypeOrSelf($0.getType()).isInteger(32)">; // Whether the transformation is compatible with the device if given. // Currently, Relu with int32 is not supported on GPU. def IsDeviceCompatible: Constraint< Neg<And<[IsOnGpuDevicePred, IsInteger32Pred]>>>;
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Dec 06 18:42:28 UTC 2023 - 17K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/lower_tf.td
def CreateTFShapeOp : NativeCodeCall< "$_builder.create<TF::ShapeOp>($0.getLoc(), $1, $2)">; def IsI32 : NativeCodeCall< "$_builder.getBoolAttr(getElementTypeOrSelf($0.getType()).isInteger(32))">; def CreateTFCastOpF32 : NativeCodeCall< "CreateTFCastOpF32(&$_builder, $0.getLoc(), $1, $2)">; def CreateTFCastOpI32 : NativeCodeCall< "CreateTFCastOpI32(&$_builder, $0.getLoc(), $1, $2)">;
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Jun 04 13:30:42 UTC 2024 - 24.7K bytes - Viewed (0) -
src/cmd/compile/internal/typecheck/func.go
base.Fatalf("missing slice argument to copy for OMAKESLICECOPY") } n.Len = Expr(n.Len) n.Cap = Expr(n.Cap) n.Len = DefaultLit(n.Len, types.Types[types.TINT]) if !n.Len.Type().IsInteger() && n.Type().Kind() != types.TIDEAL { base.Errorf("non-integer len argument in OMAKESLICECOPY") } if ir.IsConst(n.Len, constant.Int) { if ir.ConstOverflow(n.Len.Val(), types.Types[types.TINT]) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Mar 06 15:23:18 UTC 2024 - 21.1K bytes - Viewed (0) -
src/cmd/compile/internal/staticinit/sched.go
// and the compiler doesn't have any concept of +Inf, so that would // have to be left for runtime code evaluation. // For now return nil, false case ct.IsInteger() && t.IsInteger(): // truncate or sign extend bits := t.Size() * 8 cv = constant.BinaryOp(cv, token.AND, constant.MakeUint64(1<<bits-1))
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 02 17:16:14 UTC 2024 - 30.7K bytes - Viewed (0) -
src/cmd/compile/internal/ssa/check.go
} case OpAddPtr: if !v.Args[0].Type.IsPtrShaped() && v.Args[0].Type != c.Types.Uintptr { f.Fatalf("bad arg 0 type to %s: want ptr, have %s", v.Op, v.Args[0].LongString()) } if !v.Args[1].Type.IsInteger() { f.Fatalf("bad arg 1 type to %s: want integer, have %s", v.Op, v.Args[1].LongString()) } case OpVarDef: n := v.Aux.(*ir.Name) if !n.Type().HasPointers() && !IsMergeCandidate(n) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 09 16:41:23 UTC 2024 - 17.6K bytes - Viewed (0) -
src/go/internal/gcimporter/iimport.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 19.2K bytes - Viewed (0)