Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 34 for assertGet (0.13 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. 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)
  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/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)
  8. 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)
  9. 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)
  10. 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)
Back to top