Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 66 for assertGet (0.17 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/compiler/mlir/quantization/tensorflow/utils/tf_to_uniform_attribute_utils_test.cc

      ASSERT_TRUE(succeeded(res));
      ASSERT_EQ(2147483647, op.getLhsQuantizationMaxValAttr().getInt());
      ASSERT_EQ(-2147483648, op.getLhsQuantizationMinValAttr().getInt());
      ASSERT_EQ(2147483647, op.getRhsQuantizationMaxValAttr().getInt());
      ASSERT_EQ(-2147483648, op.getRhsQuantizationMinValAttr().getInt());
      ASSERT_EQ(2147483647, op.getOutputQuantizationMaxValAttr().getInt());
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Sep 11 00:47:05 UTC 2023
    - 11.4K bytes
    - Viewed (0)
  3. 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)
  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/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)
  6. tensorflow/c/eager/c_api_distributed_test.cc

      TFE_Execute(func, &retvals[0], &num_retvals, status);
      ASSERT_EQ(TF_OK, TF_GetCode(status)) << TF_Message(status);
      ASSERT_EQ(1, num_retvals);
      TF_Tensor* t = TFE_TensorHandleResolve(retvals[0], status);
      ASSERT_EQ(TF_OK, TF_GetCode(status)) << TF_Message(status);
      TFE_DeleteTensorHandle(retvals[0]);
      float sum = 0;
      ASSERT_EQ(sizeof(sum), TF_TensorByteSize(t));
      memcpy(&sum, TF_TensorData(t), TF_TensorByteSize(t));
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Feb 15 09:49:45 UTC 2024
    - 23.5K bytes
    - Viewed (0)
  7. 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)
  8. tensorflow/compiler/mlir/quantization/tensorflow/python/representative_dataset_test.py

            }
    
        repr_ds = data_gen()
        self.assertIsNone(repr_dataset.get_num_samples(repr_ds))
    
        # Make sure that the __next__() is never called during the
        # get_num_samples call.
        self.assertLen(list(repr_ds), num_samples)
    
      def test_get_num_samples_returns_none_when_len_raises_error(self):
        class LenRaisingError:
          """A test-only class that raises an error when len() is called.
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jan 04 07:35:19 UTC 2024
    - 11.6K 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. testing/internal-integ-testing/src/main/groovy/org/gradle/test/fixtures/server/sftp/SFTPServer.groovy

            }
    
            void assertMet() {
                //can never be not met
            }
        }
    
        class SftpAllowAll implements SftpExpectation {
    
            final boolean failing = false
            final boolean missing = false
    
            boolean matches(Buffer buffer, int type, int id) {
                return true
            }
    
            void assertMet() {
                //can never be not met
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 17.1K bytes
    - Viewed (0)
Back to top