- Sort Score
- Result 10 results
- Languages All
Results 71 - 80 of 1,691 for expectGet (0.14 sec)
-
pkg/util/async/bounded_frequency_runner_test.go
if upd.active != active { t.Fatalf("%s: expected timer active=%v", name, active) } if active && upd.next != next { t.Fatalf("%s: expected timer to be %v, got %v", name, next, upd.next) } } // test and reset the receiver's state func checkReceiver(name string, t *testing.T, receiver *receiver, expected bool) { triggered := receiver.reset() if expected && !triggered {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Nov 15 09:36:26 UTC 2022 - 12.5K bytes - Viewed (0) -
tensorflow/compiler/jit/xla_launch_util_test.cc
/*num_missing_prefix_ctx_inputs=*/0, inputs, {}, *result, /*use_pjrt_tensor_buffer=*/false, execute_outputs, context_.get())); // The expected output is indices of non-zero inputs. Tensor* expected = CreateHostTensor<int64>(TensorShape({2, 2}), {0, 1, 0, 2}); test::ExpectTensorEqual<int64>(*expected, *GetOutput(0)); } TEST_F(PjRtExecutionUtilTest, PopulateCtxOutputsVariableInputs) { XlaOpRegistry::RegisterCompilationKernels();
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Feb 21 09:53:30 UTC 2024 - 28.8K bytes - Viewed (0) -
tensorflow/c/c_api_experimental_test.cc
int64_t* dims = output_shapes->items[0].dims; if (!expected_shape.has_value()) { EXPECT_EQ(num_dims, -1); EXPECT_EQ(dims, nullptr); return; } EXPECT_EQ(num_dims, expected_shape->size()); for (size_t i = 0; i < num_dims; ++i) { EXPECT_EQ(dims[i], (*expected_shape)[i]); } TF_DeleteShapeAndTypeList(input_shapes);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Jan 17 22:27:52 UTC 2023 - 13.1K bytes - Viewed (0) -
src/mime/multipart/multipart_test.go
} } func escapeString(v string) string { bytes, _ := json.Marshal(v) return string(bytes) } func expectEq(t *testing.T, expected, actual, what string) { if expected == actual { return } t.Errorf("Unexpected value for %s; got %s (len %d) but expected: %s (len %d)", what, escapeString(actual), len(actual), escapeString(expected), len(expected)) } func TestNameAccessors(t *testing.T) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Sep 06 17:36:47 UTC 2022 - 30.4K bytes - Viewed (0) -
tensorflow/cc/tools/freeze_saved_model_test.cc
namespace tensorflow { namespace { class FreezeTest : public ::testing::Test { protected: void GraphDefEqual(const GraphDef& actual, const GraphDef& expected) { EXPECT_EQ(actual.ShortDebugString(), expected.ShortDebugString()); } // Builds a SignatureDef with the provided `inputs` and `outputs`. SignatureDef BuildSignatureDef(const std::unordered_set<string>& inputs,
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Jun 07 13:30:31 UTC 2022 - 21.7K bytes - Viewed (0) -
tensorflow/cc/gradients/image_grad_test.cc
&y); ClientSession session(scope_); std::vector<Tensor> outputs; TF_ASSERT_OK(session.Run({y}, &outputs)); EXPECT_EQ(outputs.size(), 1); EXPECT_EQ(outputs[0].shape(), TensorShape({1, 4, 6, 1})); } void TestResizedShape(OpType op_type) { for (const bool half_pixel_centers : {true, false}) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri Mar 15 04:08:05 UTC 2019 - 12.1K bytes - Viewed (0) -
staging/src/k8s.io/cli-runtime/pkg/resource/helper_test.go
if tt.Err { if err == nil { t.Errorf("%q expected error: %q", tt.Name, tt.ErrMsg) } if err != nil && err.Error() != tt.ErrMsg { t.Errorf("%q expected error: %q", tt.Name, tt.ErrMsg) } } }) } } func TestHelperReplace(t *testing.T) { expectPut := func(path string, req *http.Request) bool { if req.Method != "PUT" {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Jun 02 09:47:52 UTC 2023 - 25.2K bytes - Viewed (0) -
tensorflow/cc/training/queue_runner_test.cc
TF_EXPECT_OK(qr->Join()); std::vector<Tensor> dq1; TF_EXPECT_OK(session->Run({}, {kDequeueOp1}, {}, &dq1)); EXPECT_EQ(*dq1[0].scalar<int>().data(), 10); std::vector<Tensor> dq2; TF_EXPECT_OK(session->Run({}, {kDequeueOp1}, {}, &dq2)); EXPECT_EQ(*dq2[0].scalar<int>().data(), 10); EXPECT_EQ(session->Run({}, {kDequeueOp1}, {}, nullptr).code(), Code::OUT_OF_RANGE); }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Sat Sep 21 06:27:51 UTC 2019 - 14.7K bytes - Viewed (0) -
src/cmd/compile/internal/ssa/debug_test.go
} // writeReadExpect writes ss, then reads stdout and stderr until something // that matches expectRE appears. expectRE should not be "" func (s *ioState) writeReadExpect(ss, expectRE string) tstring { if *verbose { fmt.Printf("=> %s", ss) } if expectRE == "" { panic("expectRE should not be empty; use .* instead") } _, err := io.WriteString(s.stdin, ss) if err != nil {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 02 16:11:47 UTC 2024 - 28.6K bytes - Viewed (0) -
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)