Search Options

Results per page
Sort
Preferred Languages
Advance

Results 91 - 100 of 386 for assertGet (0.2 sec)

  1. 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)
  2. tensorflow/compiler/jit/partially_decluster_pass_test.cc

      ASSERT_EQ(unclustered_consumer_inputs.size(), 2);
      EXPECT_EQ(unclustered_consumer_inputs[0]->name(),
                "ClusteredProducer1/declustered");
      EXPECT_EQ(unclustered_consumer_inputs[1]->name(), "Input");
    
      ASSERT_TRUE(GetInputsForNode(*graph, "ClusteredProducer1/declustered",
                                   &declustered_producer_1_inputs));
      ASSERT_EQ(declustered_producer_1_inputs.size(), 2);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Jun 10 12:32:39 UTC 2022
    - 23K bytes
    - Viewed (0)
  3. testing/internal-integ-testing/src/main/groovy/org/gradle/test/fixtures/server/ServerWithExpectations.groovy

        @Override
        void resetExpectations() {
            try {
                if (failure != null) {
                    throw failure
                }
                for (ServerExpectation e in expectations) {
                    e.assertMet()
                }
            } finally {
                failure = null
                expectations.clear()
            }
        }
    
        @Override
        protected void after() {
            stop()
            resetExpectations()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 1.9K bytes
    - Viewed (0)
  4. tensorflow/c/kernels_test.cc

        TF_EXPECT_OK(status);
        ASSERT_NE(nullptr, kernel.get());
    
        p.op_kernel = kernel.get();
        OpKernelContext ctx(&p);
        kernel->Compute(&ctx);
    
        ASSERT_EQ(2, num_inputs);
        ASSERT_EQ(1, num_outputs);
        ASSERT_EQ(123, ctx.mutable_output(0)->scalar<tensorflow::uint8>()());
      }
    }
    
    TEST(TestKernel, DeleteKernelBuilderIsOkOnNull) {
      TF_DeleteKernelBuilder(nullptr);
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Sep 06 19:12:29 UTC 2023
    - 50.4K bytes
    - Viewed (0)
  5. tensorflow/c/c_test_util.cc

      TF_OperationDescription* desc = TF_NewOperation(graph, "Const", name);
      TF_SetAttrTensor(desc, "value", t, s);
      ASSERT_EQ(TF_OK, TF_GetCode(s)) << TF_Message(s);
      TF_SetAttrType(desc, "dtype", TF_TensorType(t));
      *op = TF_FinishOperation(desc, s);
      ASSERT_EQ(TF_OK, TF_GetCode(s)) << TF_Message(s);
      ASSERT_NE(*op, nullptr);
    }
    
    TF_Operation* Const(TF_Tensor* t, TF_Graph* graph, TF_Status* s,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Oct 15 03:16:52 UTC 2021
    - 17.8K bytes
    - Viewed (0)
  6. tensorflow/cc/experimental/libtf/impl/scalars_test.cc

    #include "tensorflow/cc/experimental/libtf/impl/scalars.h"
    
    #include "tensorflow/core/platform/test.h"
    
    namespace tf {
    namespace libtf {
    namespace impl {
    
    TEST(ScalarsTest, TestHeterogeneousAddition) {
      ASSERT_EQ((Int64(1) + Float32(0.375)).get(), 1.375);
    }
    
    }  // namespace impl
    }  // namespace libtf
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Jul 28 22:58:49 UTC 2021
    - 991 bytes
    - Viewed (0)
  7. tensorflow/c/eager/dlpack_test.cc

          << "], strides=[" << absl::StrJoin(strides, ",") << "])";
    
      auto* dlm_out =
          static_cast<DLManagedTensor*>(TFE_HandleToDLPack(handle, status));
      ASSERT_EQ(TF_OK, TF_GetCode(status)) << TF_Message(status);
      const DLTensor* dltensor_out = &dlm_out->dl_tensor;
      EXPECT_EQ(dltensor_out->device.device_type, dltensor_in->device.device_type);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Jun 30 03:04:46 UTC 2023
    - 4.4K bytes
    - Viewed (0)
  8. tensorflow/c/eager/custom_device_test.cc

          TFE_NewOp(context.get(), "Identity", status.get()), TFE_DeleteOp);
      TFE_OpReset(reused_op.get(), "Identity", custom_device_name, status.get());
      ASSERT_TRUE(TF_GetCode(status.get()) == TF_OK) << TF_Message(status.get());
      ASSERT_EQ(tensorflow::string(TFE_OpGetDevice(reused_op.get(), status.get())),
                tensorflow::string(custom_device_name));
      ASSERT_TRUE(TF_GetCode(status.get()) == TF_OK) << TF_Message(status.get());
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Aug 27 23:39:24 UTC 2020
    - 18.4K bytes
    - Viewed (0)
  9. tensorflow/c/eager/parallel_device/parallel_device_testlib.cc

        std::string first_device =
            TFE_TensorHandleBackingDeviceName(components[0].get(), status.get());
        ASSERT_EQ(underlying_devices[0], first_device);
        std::string second_device =
            TFE_TensorHandleBackingDeviceName(components[1].get(), status.get());
        ASSERT_EQ(underlying_devices[1], second_device);
      }
    
      // Add a parallel tensor with different values on each device to the variable.
      {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jun 15 15:44:44 UTC 2021
    - 12.5K bytes
    - Viewed (0)
  10. cni/pkg/util/pluginutil.go

    // Given an unmarshalled CNI config JSON map, return the plugin list asserted as a []interface{}
    func GetPlugins(cniConfigMap map[string]any) (plugins []any, err error) {
    	plugins, ok := cniConfigMap["plugins"].([]any)
    	if !ok {
    		err = fmt.Errorf("error reading plugin list from CNI config")
    		return
    	}
    	return
    }
    
    // Given the raw plugin interface, return the plugin asserted as a map[string]interface{}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Jan 26 20:34:28 UTC 2024
    - 3.6K bytes
    - Viewed (0)
Back to top