Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 27 for assertMem (0.19 sec)

  1. src/net/http/request_test.go

    		t.Errorf("missing value = %q, want empty string", g)
    	}
    
    	assertMem := func(n string, fd multipart.File) {
    		if _, ok := fd.(*os.File); ok {
    			t.Error(n, " is *os.File, should not be")
    		}
    	}
    	fda := testMultipartFile(t, req, "filea", "filea.txt", fileaContents)
    	defer fda.Close()
    	assertMem("filea", fda)
    	fdb := testMultipartFile(t, req, "fileb", "fileb.txt", filebContents)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 18:42:34 UTC 2024
    - 44K bytes
    - Viewed (0)
  2. 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)
  3. 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)
  4. tensorflow/c/c_api_test.cc

      TF_Operation* a = Placeholder(graph, s, "A");
      ASSERT_EQ(TF_OK, TF_GetCode(s)) << TF_Message(s);
    
      TF_Operation* b = Placeholder(graph, s, "B");
      ASSERT_EQ(TF_OK, TF_GetCode(s)) << TF_Message(s);
    
      TF_Operation* two = ScalarConst(2, graph, s);
      ASSERT_EQ(TF_OK, TF_GetCode(s)) << TF_Message(s);
    
      TF_Operation* plus2 = Add(a, two, graph, s, "plus2");
      ASSERT_EQ(TF_OK, TF_GetCode(s)) << TF_Message(s);
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Apr 15 03:35:10 UTC 2024
    - 96.9K bytes
    - Viewed (0)
  5. tensorflow/cc/experimental/libtf/impl/iostream_test.cc

      std::stringstream stream;
      stream << x;
      ASSERT_EQ(stream.str(), "42");
    }
    
    TEST(OStreamTest, TestFloat32) {
      Float32 x(0.375);  // Exactly representable as a float.
      std::stringstream stream;
      stream << x;
      ASSERT_EQ(stream.str(), "0.375");
    }
    
    TEST(OStreamTest, TestString) {
      String s("foo");
      std::stringstream stream;
      stream << s;
      ASSERT_EQ(stream.str(), "foo");
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 18 09:47:46 UTC 2024
    - 2K bytes
    - Viewed (0)
  6. tensorflow/c/experimental/saved_model/internal/saved_model_api_test.cc

              tensorflow::unwrap(saved_model));
      tensorflow::Variable* uninitialized_variable;
      ASSERT_EQ(absl::OkStatus(), model_api->GetVariable("uninitialized_variable",
                                                         &uninitialized_variable));
      ASSERT_EQ(tensorflow::DT_FLOAT, uninitialized_variable->dtype());
    
      ASSERT_EQ(absl::OkStatus(),
                model_api->GetVariable("sub_module.uninitialized_variable",
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Apr 23 08:08:45 UTC 2024
    - 21.3K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/lite/quantization/lite/quantize_weights_test.cc

      ASSERT_EQ(status, kTfLiteOk);
    
      const uint8_t* buffer = builder.GetBufferPointer();
      const Model* output_model = GetModel(buffer);
      ASSERT_TRUE(output_model);
    
      ASSERT_EQ(output_model->subgraphs()->size(), model_->subgraphs()->size());
      const auto quantized_graph = output_model->subgraphs()->Get(0);
      // A dequantize op should be added.
      ASSERT_EQ(quantized_graph->operators()->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)
  8. tensorflow/compiler/mlir/tensorflow/utils/device_util_test.cc

      (*module_ref)->setAttr("tf.devices", device_dict);
    
      mlir::TF::RuntimeDevices devices;
      EXPECT_TRUE(mlir::succeeded(GetDevicesFromOp(*module_ref, &devices)));
    
      ASSERT_EQ(devices.NumDevices(), 1);
      ASSERT_EQ(devices.device_names().size(), 1);
      ASSERT_EQ(DeviceNameUtils::ParsedNameToString(devices.device_names()[0]),
                "/job:worker/replica:0/task:0/device:CPU:0");
    }
    
    TEST(DeviceUtilTest, GetGpuDeviceMetadata) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 9.5K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tensorflow/utils/tpu_rewrite_device_util_test.cc

      EXPECT_EQ(xla_device_assignment->computation_count(), 2);
      ASSERT_EQ(xla_device_assignment->computation_devices_size(), 2);
      const auto& computation_device_0 =
          xla_device_assignment->computation_devices(0);
      ASSERT_EQ(computation_device_0.replica_device_ids_size(), 4);
      const auto& computation_device_1 =
          xla_device_assignment->computation_devices(1);
      ASSERT_EQ(computation_device_1.replica_device_ids_size(), 4);
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Apr 26 09:37:10 UTC 2024
    - 46.8K bytes
    - Viewed (0)
  10. src/runtime/error.go

    	_interface    *_type
    	concrete      *_type
    	asserted      *_type
    	missingMethod string // one method needed by Interface, missing from Concrete
    }
    
    func (*TypeAssertionError) RuntimeError() {}
    
    func (e *TypeAssertionError) Error() string {
    	inter := "interface"
    	if e._interface != nil {
    		inter = toRType(e._interface).string()
    	}
    	as := toRType(e.asserted).string()
    	if e.concrete == nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 19:10:41 UTC 2024
    - 9.9K bytes
    - Viewed (0)
Back to top