class_docstr: Variable that is (defaults to being) shared between functions that
  it appears in.
  
  Parameters
  ----------
  name : str
      The name for this variable (see `Variable`).
  type : str
      The type for this variable (see `Variable`).
  value
      A value to associate with this variable (a new container will be
      created).
  strict
      True : assignments to .value will not be cast or copied, so they must
      have the correct type.
  allow_downcast
      Only applies if `strict` is False.
      True : allow assigned value to lose precision when cast during
      assignment.
      False : never allow precision loss.
      None : only allow downcasting of a Python float to a scalar floatX.
  container
      The container to use for this variable. Illegal to pass this as well as
      a value.
  
  Notes
  -----
  For more user-friendly constructor, see `shared`.
class_docstr_tok: ["Variable","that","is","(","defaults","to","being",")","shared","between","functions","that","it","appears","in",".","Parameters","--","--","--","--","--","name",":","str","The","name","for","this","variable","(","see","`","Variable","`",")",".","type",":","str","The","type","for","this","variable","(","see","`","Variable","`",")",".","value","A","value","to","associate","with","this","variable","(","a","new","container","will","be","created",")",".","strict","True",":","assignments","to",".value","will","not","be","cast","or","copied",",","so","they","must","have","the","correct","type",".","allow_downcast","Only","applies","if","`","strict","`","is","False",".","True",":","allow","assigned","value","to","lose","precision","when","cast","during","assignment",".","False",":","never","allow","precision","loss",".","None",":","only","allow","downcasting","of","a","Python","float","to","a","scalar","floatX",".","container","The","container","to","use","for","this","variable",".","Illegal","to","pass","this","as","well","as","a","value",".","Notes","--","--","-","For","more","user-friendly","constructor",",","see","`","shared","`","."]
docstr: Set the values of a shared variable to 0.
  
  Parameters
  ----------
  borrow : bbol
      True to modify the value of a shared variable directly by using
      its previous value. Potentially this can cause problems
      regarding to the aliased memory.
  
  Changes done with this function will be visible to all functions using
  this SharedVariable.
docstr_tok: ["Set","the","values","of","a","shared","variable","to","0",".","Parameters","--","--","--","--","--","borrow",":","bbol","True","to","modify","the","value","of","a","shared","variable","directly","by","using","its","previous","value",".","Potentially","this","can","cause","problems","regarding","to","the","aliased","memory",".","Changes","done","with","this","function","will","be","visible","to","all","functions","using","this","SharedVariable","."]
code: def zero(self, borrow=False):
      """
      Set the values of a shared variable to 0.
  
      Parameters
      ----------
      borrow : bbol
          True to modify the value of a shared variable directly by using
          its previous value. Potentially this can cause problems
          regarding to the aliased memory.
  
      Changes done with this function will be visible to all functions using
      this SharedVariable.
  
      """
      if borrow:
          self.container.value[...] = 0
      else:
          self.container.value = 0 * self.container.value
  
file_path: Theano/theano/compile/sharedvalue.py
imports: from __future__ import absolute_import, print_function, division
  import copy
  import logging
  import numpy
  from theano.gof import Container, Variable, generic, utils
label_desc: Use image node_id 4 for calling the SharedVariable obj's underlying member method code with example usage: obj.zero(borrow) without return types