- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 251 for clap (3 sec)
-
src/slices/example_test.go
grow := slices.Grow(numbers, 2) fmt.Println(cap(numbers)) fmt.Println(grow) fmt.Println(len(grow)) fmt.Println(cap(grow)) // Output: // 4 // [0 42 -10 8] // 4 // 8 } func ExampleClip() { a := [...]int{0, 1, 2, 3, 4, 5, 6, 7, 8, 9} s := a[:4:10] clip := slices.Clip(s) fmt.Println(cap(s)) fmt.Println(clip) fmt.Println(len(clip)) fmt.Println(cap(clip)) // Output:
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 10 17:28:50 UTC 2024 - 8.1K bytes - Viewed (0) -
src/go/ast/commentmap.go
stack.push(q) } } return cmap } // Update replaces an old node in the comment map with the new node // and returns the new node. Comments that were associated with the // old node are associated with the new node. func (cmap CommentMap) Update(old, new Node) Node { if list := cmap[old]; len(list) > 0 { delete(cmap, old) cmap[new] = append(cmap[new], list...) } return new }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 8.9K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/stablehlo/tests/passes/lift_quantizable_spots_as_functions.mlir
// CHECK: %[[CONV:.*]] = stablehlo.convolution(%arg0, %arg1) // CHECK-DAG: %[[CONST_0:.*]] = stablehlo.constant dense<0.000000e+00> // CHECK: %[[CLAMP:.*]] = stablehlo.clamp %[[CONST_0]], %[[CONV]], %[[CONST_1]] // CHECK: return %[[CLAMP]] : tensor<1x3x3x4xf32> // CHECK: } // ----- // CHECK-LABEL: @dot_general_with_relu6_fn( // CHECK-SAME: %[[ARG_0:.*]]: tensor<1x1x167xf32>
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri May 10 04:07:09 UTC 2024 - 49.8K bytes - Viewed (0) -
src/image/draw/draw.go
sr, sg, sb, sa := pxRGBA(sp.X+x, sp.Y+y) er, eg, eb, ea := int32(sr), int32(sg), int32(sb), int32(sa) if floydSteinberg { er = clamp(er + quantErrorCurr[x+1][0]/16) eg = clamp(eg + quantErrorCurr[x+1][1]/16) eb = clamp(eb + quantErrorCurr[x+1][2]/16) ea = clamp(ea + quantErrorCurr[x+1][3]/16) } if palette != nil { // Find the closest palette color in Euclidean R,G,B,A space:
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Mar 11 17:08:05 UTC 2024 - 33.9K bytes - Viewed (0) -
src/slices/slices_test.go
orig := Clone(s1) if len(s1) != 3 { t.Errorf("len(%v) = %d, want 3", s1, len(s1)) } if cap(s1) < 6 { t.Errorf("cap(%v[:3]) = %d, want >= 6", orig, cap(s1)) } s2 := Clip(s1) if !Equal(s1, s2) { t.Errorf("Clip(%v) = %v, want %v", s1, s2, s1) } if cap(s2) != 3 { t.Errorf("cap(Clip(%v)) = %d, want 3", orig, cap(s2)) } } func TestReverse(t *testing.T) { even := []int{3, 1, 4, 1, 5, 9} // len = 6
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Apr 26 13:32:06 UTC 2024 - 33.2K bytes - Viewed (0) -
docs/vi/docs/index.md
### Tài liệu API thay thế Và bây giờ, hãy truy cập tới <a href="http://127.0.0.1:8000/redoc" class="external-link" target="_blank">http://127.0.0.1:8000/redoc</a>. Bạn sẽ thấy tài liệu được thay thế (cung cấp bởi <a href="https://github.com/Rebilly/ReDoc" class="external-link" target="_blank">ReDoc</a>): ![ReDoc](https://fastapi.tiangolo.com/img/index/index-02-redoc-simple.png) ## Nâng cấp ví dụ
Registered: Mon Jun 17 08:32:26 UTC 2024 - Last Modified: Mon Apr 29 05:18:04 UTC 2024 - 21.9K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/decompose_resource_ops.td
), // linear_clipped_minus_linear = // (multiply_linear_by_lr ? clamp(-l1 * lr, linear, l1 * lr) // clamp(-l1, linear, l1)) - linear (TF_SubOp:$linear_clipped_minus_linear (ConstAttrIfThenElse $multiply_linear_by_lr, (Clamp $src_op, (TF_NegOp (TF_MulOp $l1, $lr)), (CreateTFReadVariableOp $src_op, $l1, $linear),
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed May 22 19:47:48 UTC 2024 - 20.7K bytes - Viewed (0) -
testing/internal-performance-testing/src/main/resources/org/gradle/reporting/flot.selection.min.js
lot.getPlaceholder().trigger("selected",[{x1:r.xaxis.from,y1:r.yaxis.from,x2:r.xaxis.to,y2:r.yaxis.to}])}function clamp(min,value,max){return value<min?min:value>max?max:value}function setSelectionPos(pos,e){var o=plot.getOptions();var offset=plot.getPlaceholder().offset();var plotOffset=plot.getPlotOffset();pos.x=clamp(0,e.pageX-offset.left-plotOffset.left,plot.width());pos.y=clamp(0,e.pageY-offset.top-plotOffset.top,plot.height());if(o.selection.mode=="y")pos.x=pos==selection.first?0:plot.widt...
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Apr 04 07:21:38 UTC 2024 - 5.1K bytes - Viewed (0) -
src/slices/slices.go
func Grow[S ~[]E, E any](s S, n int) S { if n < 0 { panic("cannot be negative") } if n -= cap(s) - len(s); n > 0 { s = append(s[:cap(s)], make([]E, n)...)[:len(s)] } return s } // Clip removes unused capacity from the slice, returning s[:len(s):len(s)]. func Clip[S ~[]E, E any](s S) S { return s[:len(s):len(s)] } // TODO: There are other rotate algorithms.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Apr 29 14:01:59 UTC 2024 - 13.6K bytes - Viewed (0) -
platforms/jvm/language-java/src/main/java/org/gradle/api/internal/tasks/compile/DiagnosticToProblemListener.java
} } } /** * Clamp the value to an int, or return {@link Diagnostic#NOPOS} if the value is too large. * <p> * This is used to ensure that we don't report invalid locations. * * @param value the value to clamp * @return either the clamped value, or {@link Diagnostic#NOPOS} */
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Jun 06 06:17:43 UTC 2024 - 11.5K bytes - Viewed (0)