From c21f090ab4470ec8487868d334250667cfcaf794 Mon Sep 17 00:00:00 2001 From: Lu Fang Date: Tue, 4 Dec 2018 14:48:56 -0800 Subject: [PATCH] Minor doc change in c10/Device.h (#14762) Summary: Make sure it's a valid regex. Pull Request resolved: https://github.com/pytorch/pytorch/pull/14762 Reviewed By: zrphercule Differential Revision: D13326108 Pulled By: houseroad fbshipit-source-id: fdcae2d5d42774c4071651b7477f08047d385dfa --- c10/Device.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/c10/Device.h b/c10/Device.h index c07a256..3c9fafa 100644 --- a/c10/Device.h +++ b/c10/Device.h @@ -46,9 +46,9 @@ struct C10_API Device final { /// Constructs a `Device` from a string description, for convenience. /// The string supplied must follow the following schema: - /// `(cpu|cuda):[]` - /// where `cpu:` or `cuda:` specifies the device type, and - /// `` optionally specifies a device index. + /// `(cpu|cuda)[:]` + /// where `cpu` or `cuda` specifies the device type, and + /// `:` optionally specifies a device index. /* implicit */ Device(const std::string& device_string); /// Returns true if the type and index of this `Device` matches that of -- 2.7.4