Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 92 for assertMem (0.29 sec)

  1. test/typeparam/issue58513.go

    	return assert[To]
    }
    
    type asserter[_ any] struct{}
    
    func (asserter[_]) assert() {
    	panic(0)
    }
    
    func AssertMV[To any]() func() {
    	return asserter[To]{}.assert
    }
    
    func AssertME[To any]() func(asserter[To]) {
    	return asserter[To].assert
    }
    
    var me = AssertME[string]()
    
    var tests = []func(){
    	Assert[int](),
    	AssertMV[int](),
    	func() { me(asserter[string]{}) },
    }
    
    func main() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 27 23:07:49 UTC 2023
    - 1.2K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/ir/type.go

    type DynamicType struct {
    	miniExpr
    
    	// RType is an expression that yields a *runtime._type value
    	// representing the asserted type.
    	//
    	// BUG(mdempsky): If ITab is non-nil, RType may be nil.
    	RType Node
    
    	// ITab is an expression that yields a *runtime.itab value
    	// representing the asserted type within the assertee expression's
    	// original interface type.
    	//
    	// ITab is only used for assertions (including type switches) from
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sun Aug 20 05:56:49 UTC 2023
    - 1.7K bytes
    - Viewed (0)
  3. tensorflow/c/eager/gradients_test.cc

      ASSERT_EQ(errors::OK, s.code()) << s.message();
      if (isa<TracingOperation>(check_numerics_op.get())) {
        s = dyn_cast<TracingOperation>(check_numerics_op.get())
                ->SetOpName("check_numerics");
        ASSERT_EQ(errors::OK, s.code()) << s.message();
      }
      s = AddInput(check_numerics_op.get(), t.get(), &forward_op);
      ASSERT_EQ(errors::OK, s.code()) << s.message();
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Feb 15 09:49:45 UTC 2024
    - 7K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/lite/quantization/numerical_utils_test.cc

          CalculateQuantizedRange(1e-6, 0, std::nullopt, std::nullopt, -128, 127);
      ASSERT_EQ(a.first, -128);
      ASSERT_EQ(a.second, 127);
    
      auto b = CalculateQuantizedRange(1e-6, 0, 0.0, std::nullopt, -128, 127);
      ASSERT_EQ(b.first, 0);
      ASSERT_EQ(b.second, 127);
    
      auto c = CalculateQuantizedRange(1e-6, 0, -1.0, 1.0, -128, 127);
      ASSERT_EQ(c.first, -128);
      ASSERT_EQ(c.second, 127);
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Apr 08 01:38:03 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  5. tensorflow/c/experimental/gradients/nn_grad_test.cc

        status_ = StatusFromTF_Status(status.get());
        ASSERT_EQ(errors::OK, status_.code()) << status_.message();
    
        {
          AbstractContext* ctx_raw = nullptr;
          status_ =
              BuildImmediateExecutionContext(std::get<1>(GetParam()), &ctx_raw);
          ASSERT_EQ(errors::OK, status_.code()) << status_.message();
          immediate_execution_ctx_.reset(ctx_raw);
        }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Feb 28 13:53:47 UTC 2024
    - 8.3K bytes
    - Viewed (0)
  6. tensorflow/cc/experimental/libtf/tests/value_test.cc

        ASSERT_EQ(alloc_count, 1);
        ASSERT_EQ(capsule.capsule(), ptr_value);
        test_moved = std::move(capsule);
        ASSERT_EQ(capsule.type(), TaggedValue::NONE);  // NOLINT
        test_copy = test_moved;
        ASSERT_EQ(test_moved.capsule(), ptr_value);
        ASSERT_EQ(test_copy.capsule(), ptr_value);
      }
      ASSERT_EQ(alloc_count, 1);
      test_moved = TaggedValue::None();
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Sep 01 11:18:25 UTC 2022
    - 3.4K bytes
    - Viewed (0)
  7. tensorflow/c/kernels/bitcast_op_test.cc

      gtl::InlinedVector<TensorValue, 4> inputs;
      inputs.emplace_back(input_tensor);
      params.inputs = inputs;
    
      OpKernelContext ctx(&params);
      kernel->Compute(&ctx);
      ASSERT_EQ(expected_code, ctx.status().code());
      if (expected_code == error::OK) {
        ASSERT_EQ(expected_shape, ctx.mutable_output(0)->shape())
            << ctx.mutable_output(0)->shape().DebugString();
      }
    }
    
    TEST(BitcastOpTest, TestUpcast) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Jul 18 15:10:51 UTC 2022
    - 5.5K bytes
    - Viewed (0)
  8. tensorflow/c/eager/c_api_remote_test_util.cc

        matmul = TFE_NewOp(ctx, "MatMulFunction", status);
        ASSERT_EQ(TF_GetCode(status), TF_OK) << TF_Message(status);
        TFE_OpAddInput(matmul, h0_task0, status);
        ASSERT_EQ(TF_GetCode(status), TF_OK) << TF_Message(status);
        TFE_OpAddInput(matmul, has_packed_input ? packed_handle : h1_task2, status);
        ASSERT_EQ(TF_GetCode(status), TF_OK) << TF_Message(status);
      } else {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Dec 11 22:56:03 UTC 2020
    - 9.1K bytes
    - Viewed (0)
  9. tensorflow/c/tf_status_helper_test.cc

      Set_TF_Status_from_Status(s, cc_status);
      ASSERT_EQ(TSL_INVALID_ARGUMENT, TSL_GetCode(s));
      ASSERT_EQ(std::string("some error"), TSL_Message(s));
    
      absl::Status another_cc_status(StatusFromTF_Status(s));
      ASSERT_FALSE(another_cc_status.ok());
      ASSERT_EQ(std::string("some error"), another_cc_status.message());
      ASSERT_EQ(error::INVALID_ARGUMENT, another_cc_status.code());
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sun Apr 14 21:57:32 UTC 2024
    - 1.7K bytes
    - Viewed (0)
  10. tensorflow/c/eager/unified_api_test.cc

        ASSERT_EQ(errors::OK, s.code()) << s.message();
        s = dyn_cast<tracing::TracingContext>(ctx.get())->AddParameter(
            DT_FLOAT, shape, &x_raw);
        ASSERT_EQ(errors::OK, s.code()) << s.message();
        x.reset(x_raw);
      }
    
      PartialTensorShape shape;
      Status s = x->Shape(&shape);
      ASSERT_EQ(errors::OK, s.code()) << s.message();
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Feb 27 13:57:45 UTC 2024
    - 6.7K bytes
    - Viewed (0)
Back to top