Home | History | Annotate | Download | only in kernels

Lines Matching defs:written

168   //    The Tensor at 'index' has not yet been written to.
175 // - The index 'index' is marked as written.
213 // * The Tensor at 'index' has been written to.
419 : written(false), read(false), cleared(false), local_copy(false) {}
422 bool written; // True if a Tensor has been written to the index.
423 bool read; // True if a Tensor has been written to and read from the index.
428 // case, the first time a value is written, it is a shallow copy.
429 // The second time a value is written, it is aggregated. However,
487 if (!multiple_writes_aggregate_ && t.written) {
491 " because it has already been written to.");
494 if (t.written) {
507 // If existing_t == nullptr but written == true, then what was stored
538 t.written = true;
553 if ((is_grad_ && (index_t >= tensors_.size() || !tensors_[index].written)) ||
554 (!is_grad_ && (index_t < tensors_.size() && !tensors_[index].written))) {
558 // written due to stop_gradients, but is later read.
573 "stop_gradients is not allowing the gradients to be written. If you "
587 tensors_[i].written = true;
591 tensors_[index].written = true;