- Sort Score
- Result 10 results
- Languages All
Results 51 - 60 of 1,239 for casts (0.07 sec)
-
pkg/config/validation/agent/extensionprovider_test.go
valid: false, }, } for _, c := range cases { t.Run(c.name, func(t *testing.T) { err := validateExtensionProviderTracingZipkin(c.config) valid := err == nil if valid != c.valid { t.Errorf("Expected valid=%v, got valid=%v for %v", c.valid, valid, c.config) } }) } } func TestValidateExtensionProviderTracingLightstep(t *testing.T) { cases := []struct { name string
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Apr 17 20:06:41 UTC 2024 - 13.3K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/set_tpu_infeed_layout.cc
* This happens e.g. for unit tests. Below we just create a reasonable * layout. We sort by dimension size, which makes the layout agree with * the "correct" TPU layout in surprisingly many cases. * Note that the corresponding InfeedEnqueue op will be generated * through another path, and might still generate an (incompatible) * layout using the TPU API. Running legalize_tf.cc on non-TPU nodes
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 6.1K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/experimental/tac/execution_metadata_exporter.cc
continue; // If an op doesn't implement any of the hardware interface we skip it. // This can happen in cases like Flex when we have non TFLite ops. auto device_name = GetDeviceName(&inst); if (device_name.has_value()) { // Add per device costs if present. auto per_device_cost = GetPerDeviceCosts(hardware_map, &inst);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Jun 11 06:11:34 UTC 2024 - 7.5K bytes - Viewed (0) -
cni/pkg/log/uds_test.go
want := map[string]any{ "level": cases[i].level, "msg": cases[i].msg, } if k := cases[i].key; k != nil { want["key"] = *k } assert.Equal(t, want, parsedLog) i++ } } func TestParseCniLog(t *testing.T) { wantT := &time.Time{} assert.NoError(t, wantT.UnmarshalText([]byte("2020-01-01T00:00:00.356374Z"))) cases := []struct { name string in string
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Jun 12 16:26:28 UTC 2024 - 4.1K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/transforms/push_transpose_through_ewise.cc
res_type.hasStaticShape()) { return false; } return true; } // In some cases, transposes may commute with elementwise operations. In order // to make as many tranposes redudant as possible, we can "push" transposes // back so that they fuse later on. These patterns handles 2 such cases in // a conservative fashion; on-net it will never add to the number of transposes // in the graph.
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 12.5K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/utils/validators.cc
return false; if (mlir::cast<IntegerAttr>(elements.front()).getInt() != 1 || mlir::cast<IntegerAttr>(elements.back()).getInt() != 1) return false; Builder b(op->getContext()); *x = b.getI32IntegerAttr(mlir::cast<IntegerAttr>(elements[1]).getInt()); *y = b.getI32IntegerAttr(mlir::cast<IntegerAttr>(elements[2]).getInt()); *z = b.getI32IntegerAttr(mlir::cast<IntegerAttr>(elements[3]).getInt());
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 5.2K bytes - Viewed (0) -
pkg/proxy/util/localdetector_test.go
} func TestDetectLocalByBridgeInterface(t *testing.T) { cases := []struct { ifaceName string expectedJumpIfOutput []string expectedJumpIfNotOutput []string }{ { ifaceName: "eth0", expectedJumpIfOutput: []string{"-i", "eth0"}, expectedJumpIfNotOutput: []string{"!", "-i", "eth0"}, }, } for _, c := range cases { localDetector := NewDetectLocalByBridgeInterface(c.ifaceName)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Apr 26 15:34:37 UTC 2024 - 4.1K bytes - Viewed (0) -
cmd/kubeadm/app/util/version_test.go
"invalid-version": {"", "", false, true}, // invalid version cannot be parsed } for k, v := range cases { t.Run(k, func(t *testing.T) { fileFetcher := func(url string, timeout time.Duration) (string, error) { key := strings.TrimSuffix(path.Base(url), ".txt") res, found := cases[key] if found { if v.FetcherErrorExpected { return "error", errors.New("expected error") }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Apr 26 03:30:51 UTC 2024 - 15K bytes - Viewed (0) -
pilot/pkg/xds/proxy_dependencies_test.go
), false}, {"empty configsUpdated for sidecar", sidecar, nil, true}, } for k, name := range sidecarScopeKindNames { cases = append(cases, Case{ // valid name name: fmt.Sprintf("%s config for sidecar", k.String()), proxy: sidecar, configs: sets.New(model.ConfigKey{Kind: k, Name: name, Namespace: nsName}), want: true,
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Apr 17 22:20:44 UTC 2024 - 13.5K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/stablehlo/transforms/compose_uniform_quantized_type_pass.cc
filter_i8_value_attr = mlir::cast<DenseIntElementsAttr>( cast<stablehlo::ConstantOp>(filter_op->getOperand(0).getDefiningOp()) .getValue()); } // Create Uniform Quantized constant for the filter. auto subtract_op = cast<stablehlo::SubtractOp>(*op.getResult().user_begin()); auto other_conv_op = cast<stablehlo::ConvolutionOp>(
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 64.6K bytes - Viewed (0)