parameters: (op)
return_statement: return [grad_shape]
docstring: Shape function for the ApplyAdagrad op.
docstring_summary: Shape function for the ApplyAdagrad op.
docstring_tokens: Shape function for the ApplyAdagrad op .
function: def _ApplyAdagradShape(op):
    """Shape function for the ApplyAdagrad op."""
    var_shape = op.inputs[0].get_shape()
    accum_shape = op.inputs[1].get_shape().merge_with(var_shape)
    _AssertInputIsScalar(op, 2)  # lr
    grad_shape = op.inputs[3].get_shape().merge_with(accum_shape)
    return [grad_shape]
function_tokens: def _ApplyAdagradShape ( op ) : var_shape = op . inputs [ 0 ] . get_shape ( ) accum_shape = op . inputs [ 1 ] . get_shape ( ) . merge_with ( var_shape ) _AssertInputIsScalar ( op , 2 ) # lr grad_shape = op . inputs [ 3 ] . get_shape ( ) . merge_with ( accum_shape ) return [ grad_shape ]