- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 71 for max_line (0.3 sec)
-
src/go/internal/gcimporter/support.go
files map[string]*fileInfo } type fileInfo struct { file *token.File lastline int } const maxlines = 64 * 1024 func (s *fakeFileSet) pos(file string, line, column int) token.Pos { // TODO(mdempsky): Make use of column. // Since we don't know the set of needed file positions, we reserve // maxlines positions per file. We delay calling token.File.SetLines until
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 07 20:08:23 UTC 2024 - 4.1K bytes - Viewed (0) -
src/net/http/mapping.go
} type entry[K comparable, V any] struct { key K value V } // maxSlice is the maximum number of pairs for which a slice is used. // It is a variable for benchmarking. var maxSlice int = 8 // add adds a key-value pair to the mapping. func (h *mapping[K, V]) add(k K, v V) { if h.m == nil && len(h.s) < maxSlice { h.s = append(h.s, entry[K, V]{k, v}) } else { if h.m == nil { h.m = map[K]V{}
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Sep 12 17:47:07 UTC 2023 - 1.7K bytes - Viewed (0) -
guava-tests/test/com/google/common/cache/CacheEvictionTest.java
CacheBuilder.newBuilder() .maximumSize(MAX_SIZE) .removalListener(removalListener) .build(loader); for (int i = 0; i < 2 * MAX_SIZE; i++) { cache.getUnchecked(i); assertTrue(cache.size() <= MAX_SIZE); } assertEquals(MAX_SIZE, CacheTesting.accessQueueSize(cache)); assertEquals(MAX_SIZE, cache.size()); CacheTesting.processPendingNotifications(cache);
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Mon Dec 04 17:37:03 UTC 2017 - 14.9K bytes - Viewed (0) -
tensorflow/c/experimental/ops/gen/common/source_code.cc
void SourceCode::IncreaseIndent() { current_indent_++; } void SourceCode::DecreaseIndent() { current_indent_--; } void SourceCode::ValidateAndAddLine(int indent, const string& raw_line) { StringPiece line(raw_line); bool had_trailing_newline = str_util::ConsumeSuffix(&line, "\n"); if (absl::StrContains(line, '\n')) { LOG(ERROR) << "Attempt to add multiple lines; bad formatting is likely.";
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue May 21 09:51:28 UTC 2024 - 2.1K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/collection_ops_util.h
int64_t max_size, Operation* op, Type element_dtype, OpBuilder builder, Value* buffer); // Same as above, but uses a Value as max_size and check if it is a constant. LogicalResult CreateInitBufferValue(ArrayRef<int64_t> element_shape, Value max_size, Operation* op,
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Mar 02 20:41:19 UTC 2023 - 4.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/tests/mark_ops_for_outside_compilation.mlir
// CHECK-SAME: _xla_outside_compilation "tf_device.cluster"() ({ %elem_shape = "tf.Const"() {value = dense<> : tensor<0xi32>} : () -> tensor<0xi32> %max_size = "tf.Const"() {value = dense<10> : tensor<i32>} : () -> tensor<i32> %1 = "tf.EmptyTensorList"(%elem_shape, %max_size) : (tensor<0xi32>, tensor<i32>) -> tensor<!tf_type.variant<tensor<f32>>>
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Apr 24 16:22:32 UTC 2024 - 29.5K bytes - Viewed (0) -
src/net/http/mapping_test.go
import ( "cmp" "fmt" "slices" "strconv" "testing" ) func TestMapping(t *testing.T) { var m mapping[int, string] for i := 0; i < maxSlice; i++ { m.add(i, strconv.Itoa(i)) } if m.m != nil { t.Fatal("m.m != nil") } for i := 0; i < maxSlice; i++ { g, _ := m.find(i) w := strconv.Itoa(i) if g != w { t.Fatalf("%d: got %s, want %s", i, g, w) } } m.add(4, "4") if m.s != nil {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Sep 12 17:47:07 UTC 2023 - 2.9K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/tests/stack_ops_decomposition.mlir
// ----- // Tests while loop. // CHECK-LABEL: func @main func.func @main() -> () { %max_size = "tf.Const"() {value = dense<10> : tensor<i32>} : () -> tensor<i32> // CHECK-NOT: tf.Stack %stack = "tf.StackV2"(%max_size) {elem_type = f32, stack_name = "s"} : (tensor<i32>) -> tensor<!tf_type.resource> %1:2 = "tf.While"(%stack, %max_size) { body = @while_body, cond = @while_cond, device = "", is_stateless = false}
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Mon Oct 30 06:52:55 UTC 2023 - 25.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/tf2xla/tests/legalize-tf-include-tf2xla-fallback.mlir
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Nov 16 19:04:03 UTC 2023 - 3.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/tests/tensor_list_ops_decomposition.mlir
%elem_shape = "tf.Const"() {value = dense<> : tensor<0xi32>} : () -> tensor<0xi32> %max_size = "tf.Const"() {value = dense<10> : tensor<i32>} : () -> tensor<i32> // CHECK-NOT: tf.EmptyTensorList %tl = "tf.EmptyTensorList"(%elem_shape, %max_size) : (tensor<0xi32>, tensor<i32>) -> tensor<!tf_type.variant<tensor<f32>>> %1:2 = "tf.While"(%tl, %max_size) { body = @while_body, cond = @while_cond, device = "", is_stateless = false}
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Mon Oct 30 06:52:55 UTC 2023 - 38.6K bytes - Viewed (0)