[go: nahoru, domu]

Skip to content

Commit

Permalink
Apply clang-format 18
Browse files Browse the repository at this point in the history
Reviewed By: igorsugak

Differential Revision: D56065247

fbshipit-source-id: f5a985dd8f8b84f2f9e1818b3719b43c5a1b05b3
  • Loading branch information
zertosh authored and facebook-github-bot committed Apr 14, 2024
1 parent cc770cb commit 5769ddb
Show file tree
Hide file tree
Showing 27 changed files with 1,010 additions and 937 deletions.
4 changes: 2 additions & 2 deletions include/glow/Backend/CompiledFunction.h
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ class CompiledFunction {
runtime::RuntimeBundle &getRuntimeBundle() { return runtimeBundle_; }

/// Collects constants for runtime.
virtual void collectConstants(const Module *){};
virtual void collectConstants(const Module *) {};

/// Setter for TraceEvent lookup. Note: does not enable tracing automatically.
void setTraceInfo(TraceInfo &&info) { traceInfo_ = std::move(info); }
Expand All @@ -63,7 +63,7 @@ class CompiledFunction {
/// Once the compiledFunction is done being added to devices calling this
/// method will free any resources needed to load the network on the device
/// but not needed for running on the device.
virtual void freeCompilationResources(){};
virtual void freeCompilationResources() {};

/// \returns a JSON representation of the result of compilation. Structure of
/// the JSON is dependent on the backend.
Expand Down
8 changes: 4 additions & 4 deletions include/glow/LLVMIRCodeGen/GlowJIT.h
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,9 @@
#endif
#endif

//##############################################################################
// ##############################################################################
#if GLOW_JIT_ORC_VERSION == 1
//##############################################################################
// ##############################################################################
namespace llvm {
namespace orc {

Expand Down Expand Up @@ -130,9 +130,9 @@ namespace glow {
using GlowJIT = llvm::orc::GlowJIT;
}

//##############################################################################
// ##############################################################################
#elif GLOW_JIT_ORC_VERSION == 2
//##############################################################################
// ##############################################################################

namespace glow {

Expand Down
18 changes: 9 additions & 9 deletions lib/Backends/CPU/libjit_cpu/libjit_cpu_conv.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ void libjit_conv_init_output_with_bias(dim_t N, float *outW, const float *biasW,
auto outIdx = libjit_getXYZW(outWdims, N, ax, ay, d);
outW[outIdx] = bias;
} // For each depth in the output.
} // For each Y in the output.
} // For each X in the output.
} // For each Y in the output.
} // For each X in the output.
}

/// Perform the heart of the convolution. Load \p ywidth scalars in a specific
Expand Down Expand Up @@ -196,8 +196,8 @@ void libjit_convDKKC8_foreach_xy_filter_pixels(
} // For each Y, in step of 1, in the output.

} // For each X in the output.
} // For each Y in the filter.
} // For each X in the filter.
} // For each Y in the filter.
} // For each X in the filter.
}

// Process the input buffer in the convolution by iterating on the input buffer
Expand Down Expand Up @@ -245,9 +245,9 @@ void libjit_convDKKC8_foreach_xy_pixels_filter(
outC += numDepthRegs * 8;
}
} // For each Y in the filter.
} // For each X in the filter.
} // For each Y in the output.
} // For each X in the output.
} // For each X in the filter.
} // For each Y in the output.
} // For each X in the output.
}

} // namespace
Expand Down Expand Up @@ -293,8 +293,8 @@ void libjit_convDKKC8_f(float *outW, const float *inW, const float *filterW,
endChannelIndex);

} // For each D (the depth, or the output channel).
} // for each G, the group
} // For each N, the sample in the batch.
} // for each G, the group
} // For each N, the sample in the batch.
}

} // extern "C"
Loading

0 comments on commit 5769ddb

Please sign in to comment.