Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 27 for DEVICE_CPU (0.21 sec)

  1. tensorflow/compiler/jit/xla_compile_util_test.cc

      EXPECT_FALSE(UsePjRtForSingleDeviceCompilation(DeviceType(DEVICE_CPU)));
    
      // Flag is turned on and the requested device is allowlisted.
      rollout_config.AllowForDeviceInXlaLaunch(DeviceType(DEVICE_CPU));
      EXPECT_TRUE(UsePjRtForSingleDeviceCompilation(DeviceType(DEVICE_CPU)));
    
      // The requested device is allowlisted, but the flag is turned off.
      rollout_config.enabled_for_xla_launch_ = false;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 16 21:48:05 UTC 2023
    - 6K bytes
    - Viewed (0)
  2. tensorflow/c/experimental/next_pluggable_device/tensor_pjrt_buffer_util_test.cc

                  StatusIs(error::INTERNAL,
                           HasSubstr(absl::StrCat("PjRtClient for ", DEVICE_CPU,
                                                  " is not type PjRtCApiClient"))));
    }
    
    TEST(TensorPjRtBufferUtilTest, GetPjRtCApiClientSuccess) {
      auto status = pjrt::PjrtApi(DEVICE_CPU);
      if (!status.ok()) {
        TF_ASSERT_OK(pjrt::SetPjrtApi(DEVICE_CPU, GetPjrtApi()));
      }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Apr 01 16:29:40 UTC 2024
    - 7.2K bytes
    - Viewed (0)
  3. tensorflow/compiler/jit/xla_compiler_options_util_test.cc

    TEST_F(XlaCompilerOptionsTest, PjRtOptionsPjRtBaseDevice) {
      // Although DEVICE_CPU isn't a PjRtBaseDevice, we use it here just for testing
      // purposes and to keep things simple. Creating a TpuDevice or
      // NextPluggableDevice in the context of this unit test is non-trivial.
      device_setup_.AddDevicesAndSetUp({DEVICE_CPU});
      Device* device = device_setup_.GetDevice(DEVICE_CPU);
      DeviceType compilation_device_type = DeviceType(DEVICE_CPU_XLA_JIT);
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Dec 29 01:41:20 UTC 2023
    - 14.8K bytes
    - Viewed (0)
  4. tensorflow/compiler/jit/xla_platform_info_test.cc

      DeviceType device_gpu = DeviceType(DEVICE_GPU);
      EXPECT_EQ(GetPersistentCacheDirectory(device_gpu), "/tmp/xla_cache");
      DeviceType device_cpu = DeviceType(DEVICE_CPU);
      EXPECT_EQ(GetPersistentCacheDirectory(device_cpu), "/tmp/xla_cache");
      DeviceType device_tpu = DeviceType(DEVICE_TPU);
      EXPECT_TRUE(GetPersistentCacheDirectory(device_tpu).empty());
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sun Jan 14 15:17:12 UTC 2024
    - 13.6K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tfrt/test_opkernels.cc

      }
    
     private:
      TestAsyncIdentityKernel(const TestAsyncIdentityKernel&) = delete;
      void operator=(const TestAsyncIdentityKernel&) = delete;
    };
    
    REGISTER_KERNEL_BUILDER(Name("TestAsyncIdentity").Device(DEVICE_CPU),
                            TestAsyncIdentityKernel);
    
    }  // namespace tf_mlrt
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Oct 12 08:49:52 UTC 2023
    - 1.7K bytes
    - Viewed (0)
  6. tensorflow/c/kernels/bitcast_op_test.cc

    };
    
    void TestBitcastOp(Tensor* input_tensor, DataType out_type,
                       TensorShape expected_shape, error::Code expected_code) {
      Status status;
      NodeDef def;
      def.set_op("Bitcast");
      def.set_device(DEVICE_CPU);
    
      AttrValue typeAttr;
      SetAttrValue(input_tensor->dtype(), &typeAttr);
    
      AttrValue outTypeAttr;
      SetAttrValue(out_type, &outTypeAttr);
    
      (*def.mutable_attr())["T"] = typeAttr;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Jul 18 15:10:51 UTC 2022
    - 5.5K bytes
    - Viewed (0)
  7. tensorflow/c/kernels/summary_op_test.cc

                             error::Code expected_code) {
      // Initialize node used to fetch OpKernel
      Status status;
      NodeDef def;
      def.set_op("ScalarSummary");
    
      def.set_device(DEVICE_CPU);
    
      AttrValue valuesTypeAttr;
      SetAttrValue(values->dtype(), &valuesTypeAttr);
      (*def.mutable_attr())["T"] = valuesTypeAttr;
    
      def.add_input(strings::StrCat("input1: ", DataTypeString(tags->dtype())));
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Jul 18 15:10:51 UTC 2022
    - 6.7K bytes
    - Viewed (0)
  8. tensorflow/compiler/jit/xla_ops_on_regular_devices.cc

      REGISTER_KERNEL_BUILDER(Name("XlaCallModule").Device(DEVICE),                \
                              XlaCompileOnDemandOp);
    REGISTER_XLA_OPS_ON_DEVICE(DEVICE_CPU);
    REGISTER_XLA_OPS_ON_DEVICE(DEVICE_GPU);
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Aug 19 19:55:14 UTC 2022
    - 8.8K bytes
    - Viewed (0)
  9. tensorflow/compiler/jit/kernels/xla_ops.cc

      int i = 0;
      if (ctx->has_input(i) || ctx->has_input(++i)) {
        ctx->set_output(0, ctx->input(i));
      }
    }
    
    REGISTER_KERNEL_BUILDER(Name("XlaLaunch").Device(DEVICE_CPU), XlaLocalLaunchOp);
    
    REGISTER_KERNEL_BUILDER(Name("XlaLaunchV2").Device(DEVICE_CPU), XlaLaunchV2Op);
    
    REGISTER_KERNEL_BUILDER(Name("XlaLaunch")
                                .Device(DEVICE_GPU)
                                .HostMemory("constants")
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 17 22:46:36 UTC 2024
    - 41.4K bytes
    - Viewed (0)
  10. tensorflow/c/kernels/merge_summary_op.cc

      CHECK(SerializeToTString(s, output_tstring));
    }
    
    void RegisterMergeSummaryOpKernel() {
      TF_Status* status = TF_NewStatus();
      {
        auto* builder = TF_NewKernelBuilder(
            "MergeSummary", tensorflow::DEVICE_CPU, &MergeSummaryOp_Create,
            &MergeSummaryOp_Compute, &MergeSummaryOp_Delete);
        TF_RegisterKernelBuilder("MergeSummary", builder, status);
        CHECK_EQ(TF_OK, TF_GetCode(status))
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Mar 31 03:28:11 UTC 2021
    - 4.7K bytes
    - Viewed (0)
Back to top