Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 579 for expectGet (0.24 sec)

  1. tensorflow/compiler/jit/shape_inference_test.cc

                               &shape_info));
      auto iter = shape_info.find("sink");
      EXPECT_NE(iter, shape_info.end());
      EXPECT_EQ(iter->second.size(), 1);
      EXPECT_EQ(iter->second.at(0).handle_type, DT_FLOAT);
      TensorShape resource_shape;
      EXPECT_TRUE(iter->second.at(0).handle_shape.AsTensorShape(&resource_shape));
      EXPECT_EQ(resource_shape, TensorShape({2, 3}));
    }
    
    }  // namespace
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 31 00:41:19 UTC 2024
    - 10.3K bytes
    - Viewed (0)
  2. pkg/controller/statefulset/stateful_pod_control_test.go

    		claimStates []string
    		expected    bool
    		skipPodUID  bool
    	}{
    		{
    			name:        "all missing",
    			claimStates: []string{missing, missing},
    			expected:    false,
    		},
    		{
    			name:        "no claims",
    			claimStates: []string{},
    			expected:    false,
    		},
    		{
    			name:        "exists",
    			claimStates: []string{missing, exists},
    			expected:    false,
    		},
    		{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 05 19:06:41 UTC 2024
    - 35.5K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tf2xla/api/v2/legalize_tf_test.cc

      EXPECT_TRUE(result.ok());
      EXPECT_EQ(compilation_status.Delta(kMlirCombinedMlirSuccess), 1);
      EXPECT_EQ(compilation_status.Delta(kMlirCombinedMlirFailure), 0);
      EXPECT_EQ(compilation_status.Delta(kMlirCombinedOldSuccess), 1);
      EXPECT_EQ(compilation_status.Delta(kMlirCombinedOldFailure), 0);
      // Old bridge should never be called at all.
      EXPECT_EQ(compilation_status.Delta(kOldBridgeMlirFilteredFailure), 0);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jun 13 23:59:33 UTC 2024
    - 16.1K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/lite/quantization/lite/quantize_weights_test.cc

            if (kUseUpdatedHybridSchemeDefault) {
              EXPECT_EQ(quant_tensor->quantization()->scale()->size(), shape[0]);
            } else {
              EXPECT_EQ(quant_tensor->quantization()->scale()->size(), 1);
            }
          } else {
            EXPECT_EQ(quant_tensor->type(), TensorType_FLOAT32);
          }
        }
        EXPECT_EQ(used_tensors.size(), quantized_graph->tensors()->size());
      }
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Jun 12 23:15:24 UTC 2024
    - 32.3K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/quantization/tensorflow/calibrator/calibration_statistics_collector_test.cc

      std::optional<CalibrationStatistics> statistics = collector.GetStatistics();
    
      EXPECT_TRUE(statistics.has_value());
      EXPECT_EQ(statistics.value().average_min_max_statistics().min_sum(), -4.0f);
      EXPECT_EQ(statistics.value().average_min_max_statistics().max_sum(), 15.0f);
      EXPECT_EQ(statistics.value().average_min_max_statistics().num_samples(), 2);
    }
    
    TEST(CalibrationStatisticsCollectorTest, ClearDataAndGetResultsMinMax) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Apr 16 04:33:52 UTC 2024
    - 12.6K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/lite/utils/lstm_utils_test.cc

      // verify transpose
      EXPECT_EQ(
          fused_lstm_func_->getAttrOfType<StringAttr>(kTFImplements).getValue(),
          convert.GetCompositeOpName());
      EXPECT_EQ(fused_lstm_func_.getNumArguments(), 5);
      EXPECT_EQ(fused_lstm_func_.getFunctionType().getNumResults(), 1);
    
      auto transpose_op = fused_lstm_func_.getBody().front().begin();
      transpose_op++;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 10K bytes
    - Viewed (0)
  7. tensorflow/c/experimental/saved_model/internal/saved_model_api_test.cc

      EXPECT_EQ(0, TF_ShapeDims(shape_a));
    
      const TF_SignatureDefParam* param_b = TF_SignatureDefParamListGet(args, 1);
      const TF_TensorSpec* tensor_spec_b = TF_SignatureDefParamTensorSpec(param_b);
      const TF_Shape* shape_b = TF_TensorSpecShape(tensor_spec_b);
    
      // Input "b" is a scalar, float32 tensor
      EXPECT_EQ("b", std::string(TF_SignatureDefParamName(param_b)));
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Apr 23 08:08:45 UTC 2024
    - 21.3K bytes
    - Viewed (0)
  8. cmd/kubeadm/app/constants/constants_test.go

    			manifestsDir:  "/etc/bar/",
    			expected:      "/etc/bar/foo.yaml",
    		},
    	}
    	for _, rt := range tests {
    		t.Run(rt.componentName, func(t *testing.T) {
    			actual := GetStaticPodFilepath(rt.componentName, rt.manifestsDir)
    			expected := filepath.FromSlash(rt.expected)
    			if actual != expected {
    				t.Errorf(
    					"failed GetStaticPodFilepath:\n\texpected: %s\n\t  actual: %s",
    					rt.expected,
    					actual,
    				)
    			}
    		})
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 03:26:36 UTC 2024
    - 10.7K bytes
    - Viewed (0)
  9. pkg/kubelet/cm/helpers_linux_test.go

    		}
    		if !reflect.DeepEqual(actual.CPUQuota, testCase.expected.CPUQuota) {
    			t.Errorf("unexpected result, test: %v, cpu quota not as expected. Expected: %v, Actual:%v", testName, *testCase.expected.CPUQuota, *actual.CPUQuota)
    		}
    		if !reflect.DeepEqual(actual.CPUShares, testCase.expected.CPUShares) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 27.8K bytes
    - Viewed (0)
  10. pkg/kubelet/kuberuntime/helpers_linux_test.go

    			input:    int64(5),
    			period:   uint64(10000),
    			expected: minQuotaPeriod,
    		},
    		{
    			msg:      "5 input 5k period and default quota expected",
    			input:    int64(5),
    			period:   uint64(5000),
    			expected: minQuotaPeriod,
    		},
    		{
    			msg:      "9 input 10k period and default quota expected",
    			input:    int64(9),
    			period:   uint64(10000),
    			expected: minQuotaPeriod,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 16.6K bytes
    - Viewed (0)
Back to top