mirror of
https://github.com/zebrajr/pytorch.git
synced 2025-12-06 12:20:52 +01:00
[codemod][lowrisk] Remove extra semi colon from caffe2/c10/core/SymNodeImpl.h (#123055)
Summary: `-Wextra-semi` or `-Wextra-semi-stmt` If the code compiles, this is safe to land. Pull Request resolved: https://github.com/pytorch/pytorch/pull/123055 Approved by: https://github.com/Skylion007
This commit is contained in:
parent
023f05cfe6
commit
b55f57b7af
|
|
@ -30,61 +30,61 @@ class C10_API SymNodeImpl : public c10::intrusive_ptr_target {
|
|||
// these could be pure virtual when we implement LTC versions
|
||||
virtual bool is_int() {
|
||||
TORCH_CHECK(false, "NYI");
|
||||
};
|
||||
}
|
||||
virtual bool is_bool() {
|
||||
TORCH_CHECK(false, "NYI");
|
||||
};
|
||||
}
|
||||
virtual bool is_float() {
|
||||
TORCH_CHECK(false, "NYI");
|
||||
};
|
||||
}
|
||||
virtual bool is_nested_int() const {
|
||||
return false;
|
||||
};
|
||||
}
|
||||
virtual SymNode add(const SymNode& other) {
|
||||
TORCH_CHECK(false, "NYI");
|
||||
};
|
||||
}
|
||||
virtual SymNode sub(const SymNode& other) {
|
||||
TORCH_CHECK(false, "NYI");
|
||||
};
|
||||
}
|
||||
virtual SymNode mul(const SymNode& other) {
|
||||
TORCH_CHECK(false, "NYI");
|
||||
};
|
||||
}
|
||||
virtual SymNode truediv(const SymNode& other) {
|
||||
TORCH_CHECK(false, "NYI");
|
||||
};
|
||||
}
|
||||
virtual SymNode pow(const SymNode& other) {
|
||||
TORCH_CHECK(false, "NYI");
|
||||
};
|
||||
}
|
||||
virtual SymNode floordiv(const SymNode& other) {
|
||||
TORCH_CHECK(false, "NYI");
|
||||
};
|
||||
}
|
||||
virtual SymNode mod(const SymNode& other) {
|
||||
TORCH_CHECK(false, "NYI");
|
||||
};
|
||||
}
|
||||
virtual SymNode eq(const SymNode& other) {
|
||||
TORCH_CHECK(false, "NYI");
|
||||
};
|
||||
}
|
||||
virtual SymNode ne(const SymNode& other) {
|
||||
TORCH_CHECK(false, "NYI");
|
||||
};
|
||||
}
|
||||
virtual SymNode gt(const SymNode& other) {
|
||||
TORCH_CHECK(false, "NYI");
|
||||
};
|
||||
}
|
||||
virtual SymNode lt(const SymNode& other) {
|
||||
TORCH_CHECK(false, "NYI");
|
||||
};
|
||||
}
|
||||
virtual SymNode le(const SymNode& other) {
|
||||
TORCH_CHECK(false, "NYI");
|
||||
};
|
||||
}
|
||||
virtual SymNode ge(const SymNode& other) {
|
||||
TORCH_CHECK(false, "NYI");
|
||||
};
|
||||
}
|
||||
virtual SymNode ceil() {
|
||||
TORCH_CHECK(false, "NYI");
|
||||
};
|
||||
}
|
||||
virtual SymNode floor() {
|
||||
TORCH_CHECK(false, "NYI");
|
||||
};
|
||||
}
|
||||
virtual SymNode neg() {
|
||||
TORCH_CHECK(false, "NYI");
|
||||
};
|
||||
|
|
|
|||
|
|
@ -99,7 +99,7 @@ struct alignas(2) BFloat16 {
|
|||
}
|
||||
|
||||
constexpr C10_HOST_DEVICE BFloat16(unsigned short bits, from_bits_t)
|
||||
: x(bits){};
|
||||
: x(bits) {}
|
||||
inline C10_HOST_DEVICE BFloat16(float value);
|
||||
inline C10_HOST_DEVICE operator float() const;
|
||||
|
||||
|
|
|
|||
|
|
@ -142,7 +142,7 @@ namespace {
|
|||
WarningHandler* getBaseHandler() {
|
||||
static WarningHandler base_warning_handler_ = WarningHandler();
|
||||
return &base_warning_handler_;
|
||||
};
|
||||
}
|
||||
|
||||
class ThreadWarningHandler {
|
||||
public:
|
||||
|
|
|
|||
|
|
@ -233,7 +233,7 @@ struct alignas(1) Float8_e4m3fn {
|
|||
Float8_e4m3fn() = default;
|
||||
|
||||
constexpr C10_HOST_DEVICE Float8_e4m3fn(uint8_t bits, from_bits_t)
|
||||
: x(bits){};
|
||||
: x(bits) {}
|
||||
inline C10_HOST_DEVICE Float8_e4m3fn(float value);
|
||||
inline C10_HOST_DEVICE operator float() const;
|
||||
inline C10_HOST_DEVICE bool isnan() const;
|
||||
|
|
|
|||
|
|
@ -121,7 +121,7 @@ struct alignas(1) Float8_e4m3fnuz {
|
|||
Float8_e4m3fnuz() = default;
|
||||
|
||||
constexpr C10_HOST_DEVICE Float8_e4m3fnuz(uint8_t bits, from_bits_t)
|
||||
: x(bits){};
|
||||
: x(bits) {}
|
||||
inline C10_HOST_DEVICE Float8_e4m3fnuz(float value);
|
||||
inline C10_HOST_DEVICE operator float() const;
|
||||
inline C10_HOST_DEVICE bool isnan() const;
|
||||
|
|
|
|||
|
|
@ -30,7 +30,7 @@ std::function<::c10::Backtrace()>& GetFetchStackTrace() {
|
|||
return get_lazy_backtrace(/*frames_to_skip=*/1);
|
||||
};
|
||||
return func;
|
||||
};
|
||||
}
|
||||
} // namespace
|
||||
|
||||
void SetStackTraceFetcher(std::function<::c10::Backtrace()> fetcher) {
|
||||
|
|
@ -134,19 +134,19 @@ APIUsageLoggerType* GetAPIUsageLogger() {
|
|||
static APIUsageLoggerType func =
|
||||
IsAPIUsageDebugMode() ? &APIUsageDebug : [](const string&) {};
|
||||
return &func;
|
||||
};
|
||||
}
|
||||
|
||||
APIUsageMetadataLoggerType* GetAPIUsageMetadataLogger() {
|
||||
static APIUsageMetadataLoggerType func =
|
||||
[](const std::string&,
|
||||
const std::map<std::string, std::string>& metadata_map) {};
|
||||
return &func;
|
||||
};
|
||||
}
|
||||
|
||||
DDPUsageLoggerType* GetDDPUsageLogger() {
|
||||
static DDPUsageLoggerType func = [](const DDPLoggingData&) {};
|
||||
return &func;
|
||||
};
|
||||
}
|
||||
} // namespace
|
||||
|
||||
void SetAPIUsageLogger(std::function<void(const std::string&)> logger) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user