Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 19 of 19 for record_if (0.35 sec)

  1. src/go/types/interface.go

    			if named := asNamed(def.typ); named != nil {
    				recvTyp = named
    			}
    		}
    		sig.recv = NewVar(name.Pos(), check.pkg, "", recvTyp)
    
    		m := NewFunc(name.Pos(), check.pkg, name.Name, sig)
    		check.recordDef(name, m)
    		ityp.methods = append(ityp.methods, m)
    	}
    
    	// All methods and embedded elements for this interface are collected;
    	// i.e., this interface may be used in a type set computation.
    	ityp.complete = true
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Nov 09 17:24:42 UTC 2023
    - 8.1K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/types2/stmt.go

    			// _ := x.(type) is an invalid short variable declaration
    			check.softErrorf(lhs, NoNewVar, "no new variable on left side of :=")
    			lhs = nil // avoid declared and not used error below
    		} else {
    			check.recordDef(lhs, nil) // lhs variable is implicitly declared in each cause clause
    		}
    	}
    
    	// check rhs
    	var x operand
    	check.expr(nil, &x, guard.X)
    	if x.mode == invalid {
    		return
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 30.7K bytes
    - Viewed (0)
  3. src/go/types/stmt.go

    				// _ := x.(type) is an invalid short variable declaration
    				check.softErrorf(lhs, NoNewVar, "no new variable on left side of :=")
    				lhs = nil // avoid declared and not used error below
    			} else {
    				check.recordDef(lhs, nil) // lhs variable is implicitly declared in each cause clause
    			}
    
    			rhs = guard.Rhs[0]
    
    		default:
    			check.error(s, InvalidSyntaxTree, "incorrect form of type switch guard")
    			return
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 30.6K bytes
    - Viewed (0)
  4. src/go/types/check.go

    	var buf strings.Builder
    	buf.WriteString("instantiated ident not found; please report: ")
    	ast.Fprint(&buf, token.NewFileSet(), expr, ast.NotNilFilter)
    	panic(buf.String())
    }
    
    func (check *Checker) recordDef(id *ast.Ident, obj Object) {
    	assert(id != nil)
    	if m := check.Defs; m != nil {
    		m[id] = obj
    	}
    }
    
    func (check *Checker) recordUse(id *ast.Ident, obj Object) {
    	assert(id != nil)
    	assert(obj != nil)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 23.1K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/types2/check.go

    	}
    	switch x := selOrIdent.(type) {
    	case *syntax.Name:
    		return x
    	case *syntax.SelectorExpr:
    		return x.Sel
    	}
    	panic("instantiated ident not found")
    }
    
    func (check *Checker) recordDef(id *syntax.Name, obj Object) {
    	assert(id != nil)
    	if m := check.Defs; m != nil {
    		m[id] = obj
    	}
    }
    
    func (check *Checker) recordUse(id *syntax.Name, obj Object) {
    	assert(id != nil)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 23.3K bytes
    - Viewed (0)
  6. src/cmd/compile/internal/types2/decl.go

    			err := check.newError(DuplicateDecl)
    			err.addf(obj, "%s redeclared in this block", obj.Name())
    			err.addAltDecl(alt)
    			err.report()
    			return
    		}
    		obj.setScopePos(pos)
    	}
    	if id != nil {
    		check.recordDef(id, obj)
    	}
    }
    
    // pathString returns a string of the form a->b-> ... ->g for a path [a, b, ... g].
    func pathString(path []Object) string {
    	var s string
    	for i, p := range path {
    		if i > 0 {
    			s += "->"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 29.6K bytes
    - Viewed (0)
  7. src/go/types/decl.go

    			err := check.newError(DuplicateDecl)
    			err.addf(obj, "%s redeclared in this block", obj.Name())
    			err.addAltDecl(alt)
    			err.report()
    			return
    		}
    		obj.setScopePos(pos)
    	}
    	if id != nil {
    		check.recordDef(id, obj)
    	}
    }
    
    // pathString returns a string of the form a->b-> ... ->g for a path [a, b, ... g].
    func pathString(path []Object) string {
    	var s string
    	for i, p := range path {
    		if i > 0 {
    			s += "->"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 31K bytes
    - Viewed (0)
  8. RELEASE.md

        *   Add Conv3DTranspose as a builtin op.
    *   `tf.summary`:
        *   Fix `tf.summary.should_record_summaries()` so it correctly reflects when
            summaries will be written, even when `tf.summary.record_if()` is not n
            effect, by returning True tensor if default writer is present.
    *   Grappler:
        *   Disable default Grappler optimization timeout to make the optimization
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jun 11 23:24:08 UTC 2024
    - 730.3K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tensorflow/ir/tf_generated_ops.td

    }
    
    def TF_WriteTrainingPredictionsOp : TF_Op<"WriteTrainingPredictions", [DeclareOpInterfaceMethods<MemoryEffectsOpInterface>]> {
      let summary = [{
    Writes the given predictions into a RecordIO file using a previously
      }];
    
      let description = [{
    initialized global TrainingPredictionWriter. The predictions are transformed
    into a PredictionData proto before they are written to the file.
      }];
    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