Skip to main content
T0 Big tech Baidu Internship

Baidu AI Infra internship (2)

Real Baidu AI Infra internship interview questions covering inference and operator optimization

Inference optimization Operator optimization

C++ basics

  1. Role and use cases of the static keyword
  2. Different uses of the const keyword
  3. Memory layout of a C++ program (stack, heap, global area, code area, etc.)
  4. Introduce C++’s four smart pointers and when each applies
  5. Explain differences among C++’s four cast operators
  6. How do you inspect symbol information in a dynamic library (.so)?
  7. Can a destructor take parameters? Can it have a return value?
  8. Explain C++ polymorphism, focusing on runtime polymorphism and the vtable
  9. Can destructors and constructors be declared virtual? Explain why for each
  10. Explain RAII (Resource Acquisition Is Initialization) and its uses
  11. What does std::move do? Difference between lvalues and rvalues

Python basics

  1. Python’s memory-management mechanism
  2. Principle and usage of decorators
  3. When importing a module, what does the interpreter do?

Git

  1. Difference between git merge and git rebase
  2. How do you undo a commit that is already made?

Deep learning

  1. Describe the overall Transformer architecture
  2. List other large-model architectures and compare them with Transformer
  3. Introduce ResNet’s core idea and the role of residual connections

Other

  1. Basic principles of Docker containers
  2. Your understanding of the TVM compilation framework
  3. Basic methods and use cases of network quantization

Coding

  1. Implement Queue using Stacks (LeetCode 232)