Skip to content

Commit 73e7e43

Browse files
author
Valery Chernov
committed
fix lint
1 parent 289bd82 commit 73e7e43

File tree

2 files changed

+7
-14
lines changed
  • include/tvm/runtime/vm
  • src/runtime/vm

2 files changed

+7
-14
lines changed

include/tvm/runtime/vm/vm.h

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -302,25 +302,20 @@ class VirtualMachine : public runtime::ModuleNode {
302302
* \param func_name The function's name.
303303
* \return The input tensor index.
304304
*/
305-
int64_t getInputIndexFromName(const std::string& input_name,
306-
const std::string& func_name) const;
305+
int64_t getInputIndexFromName(const std::string& input_name, const std::string& func_name) const;
307306
/*!
308307
* \brief Check executable exists and function name is in global map, get VM function.
309308
* \param func_name The function's name.
310309
* \return VM function.
311310
*/
312311
const VMFunction& checkAndGetVMFunction(const std::string& func_name) const;
313-
/*!
314-
* \brief Set one input tensor with given index to set of input tensors if need copy to given device.
315-
* \param tensors the input tensors set (destination)
316-
* \param tensor some tensor (not neccessary DLTensor)
317-
* \param index The input tensor index.
318-
* \param dev device to copy if need.
312+
/*!
313+
* \brief Set one input tensor with given index to set of input tensors if need copy to given
314+
* device. \param tensors the input tensors set (destination) \param tensor some tensor (not
315+
* neccessary DLTensor). \param index The input tensor index. \param dev device to copy if need.
319316
*/
320317
void SetInputTensorWithIndex(std::vector<ObjectRef>& tensors, // NOLINT(*)
321-
const TVMArgValue& tensor,
322-
int index,
323-
Device dev);
318+
const TVMArgValue& tensor, int index, Device dev);
324319

325320
protected:
326321
/*! \brief The virtual machine's packed function table. */

src/runtime/vm/vm.cc

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -288,9 +288,7 @@ const VMFunction& VirtualMachine::checkAndGetVMFunction(const std::string& func_
288288
}
289289

290290
void VirtualMachine::SetInputTensorWithIndex(std::vector<ObjectRef>& tensors,
291-
const TVMArgValue& inp_tensor,
292-
int index,
293-
Device dev) {
291+
const TVMArgValue& inp_tensor, int index, Device dev) {
294292
if (inp_tensor.type_code() == kTVMDLTensorHandle) {
295293
// Automatically convert input DLTensors to NDArray
296294
DLTensor* tensor = inp_tensor;

0 commit comments

Comments
 (0)