message: Bug fix: Don't dereference nullptr in OpKernelContext::input_alloc_attr().
diff: @@ -909,10 +909,14 @@ class OpKernelContext {
  }
  AllocatorAttributes input_alloc_attr(int index) const {
  + if (params_->input_alloc_attrs == nullptr) {
  + return AllocatorAttributes();
  + } else {
  DCHECK_GE(index, 0);
  DCHECK_LT(index, params_->input_alloc_attrs->size());
  return (*params_->input_alloc_attrs)[index];
  }
  + }
  AllocatorAttributes output_alloc_attr(int index) const {
  return params_->output_attr_array[index];
  