MCPcopy Index your code
hub / github.com/OpenDriveLab/TCP / update_values

Method update_values

roach/models/ppo_buffer.py:133–139  ·  view source on GitHub ↗
(self, policy)

Source from the content-addressed store, hash-verified

131 self.full = True
132
133 def update_values(self, policy):
134 for i in range(self.buffer_size):
135 obs_dict = {}
136 for k in self.observations.keys():
137 obs_dict[k] = self.observations[k][i]
138 values = policy.forward_value(obs_dict)
139 self.values[i] = values
140
141 def get(self, batch_size: Optional[int] = None) -> Generator[PpoBufferSamples, None, None]:
142 assert self.full, ''

Callers 1

trainMethod · 0.80

Calls 1

forward_valueMethod · 0.80

Tested by

no test coverage detected