Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 172 for assertGet (0.16 sec)

  1. tensorflow/c/while_loop_test.cc

                   params_->cond_graph, s_);
      ASSERT_EQ(TF_OK, TF_GetCode(s_)) << TF_Message(s_);
      params_->cond_output = {less_than, 0};
    
      TF_Operation* add1 = Add(params_->body_inputs[0], params_->body_inputs[1],
                               params_->body_graph, s_, "add1");
      ASSERT_EQ(TF_OK, TF_GetCode(s_)) << TF_Message(s_);
      TF_Operation* one = ScalarConst(1, params_->body_graph, s_);
      ASSERT_EQ(TF_OK, TF_GetCode(s_)) << TF_Message(s_);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 11 06:05:56 UTC 2024
    - 15.3K bytes
    - Viewed (0)
  2. 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)
  3. 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)
  4. tensorflow/c/experimental/stream_executor/stream_executor_test.cc

      StreamExecutor* executor = GetExecutor(0);
      const DeviceDescription& description = executor->GetDeviceDescription();
      ASSERT_EQ(description.name(), "TestName");
      ASSERT_EQ(description.device_vendor(), "TestVendor");
      ASSERT_EQ(description.pci_bus_id(), "TestPCIBusId");
      ASSERT_EQ(description.numa_node(), 123);
      ASSERT_EQ(description.memory_bandwidth(), 54);
    }
    
    TEST_F(StreamExecutorTest, DeviceDescriptionNumaNodeNotSet) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon May 20 19:54:04 UTC 2024
    - 26.5K bytes
    - Viewed (0)
  5. 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)
  6. 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)
  7. tensorflow/c/eager/c_api_test.cc

      ASSERT_EQ(TF_INVALID_ARGUMENT, TF_GetCode(status.get()));
      ASSERT_EQ(device_name, nullptr);
      ASSERT_EQ("Invalid handle", string(TF_Message(status.get())));
    
      TF_SetStatus(status.get(), TF_OK, "");
    
      int num_dims = TFE_TensorHandleNumDims(h, status.get());
      ASSERT_EQ(TF_INVALID_ARGUMENT, TF_GetCode(status.get()));
      ASSERT_EQ(num_dims, -1);
      ASSERT_EQ("Invalid handle", string(TF_Message(status.get())));
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Aug 03 20:50:20 UTC 2023
    - 94.6K bytes
    - Viewed (0)
  8. tensorflow/c/c_api_function_test.cc

      ASSERT_EQ(1, grads.size());
      ASSERT_EQ(func_name_, grads[0].first);
      ASSERT_EQ("MyGrad", grads[0].second);
    
      // These calls must be noops
      TF_GraphCopyFunction(host_graph_, func_, grad_func, s_);
      ASSERT_EQ(TF_OK, TF_GetCode(s_)) << TF_Message(s_);
      TF_GraphCopyFunction(host_graph_, func_, nullptr, s_);
      ASSERT_EQ(TF_OK, TF_GetCode(s_)) << TF_Message(s_);
    
      // Delete the gradient func.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jul 20 22:08:54 UTC 2023
    - 63.6K bytes
    - Viewed (0)
  9. tensorflow/c/eager/c_api_experimental_test.cc

      ASSERT_EQ(TF_INVALID_ARGUMENT, TF_GetCode(status.get()));
      ASSERT_EQ(device_type, nullptr);
      ASSERT_EQ("Invalid handle", string(TF_Message(status.get())));
    
      TF_SetStatus(status.get(), TF_OK, "");
    
      int device_id = TFE_TensorHandleDeviceID(h, status.get());
      ASSERT_EQ(TF_INVALID_ARGUMENT, TF_GetCode(status.get()));
      ASSERT_EQ(device_id, -1);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Aug 03 03:14:26 UTC 2023
    - 31.5K 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