class_docstr: Deltafier layer computing the difference between the current and the previous input; can only
  be used as preprocessing layer (specification key: `deltafier`).
  
  Args:
      concatenate (False | int >= 0): Whether to concatenate instead of replace deltas with
          input, and if so, concatenation axis
          (<span style="color:#00C000"><b>default</b></span>: false).
      name (string): Layer name
          (<span style="color:#00C000"><b>default</b></span>: internally chosen).
      input_spec (specification): <span style="color:#00C000"><b>internal use</b></span>.
class_docstr_tok: ["Deltafier","layer","computing","the","difference","between","the","current","and","the","previous","input",";","can","only","be","used","as","preprocessing","layer","(","specification","key",":","`","deltafier","`",")",".","Args",":","concatenate","(","False","|","int",">","=","0",")",":","Whether","to","concatenate","instead","of","replace","deltas","with","input",",","and","if","so",",","concatenation","axis","(","<","span","style=","''","color",":","#","00C000","''",">","<","b",">","default","<","\/b",">","<","\/span",">",":","false",")",".","name","(","string",")",":","Layer","name","(","<","span","style=","''","color",":","#","00C000","''",">","<","b",">","default","<","\/b",">","<","\/span",">",":","internally","chosen",")",".","input_spec","(","specification",")",":","<","span","style=","''","color",":","#","00C000","''",">","<","b",">","internal","use","<","\/b",">","<","\/span",">","."]
code: def output_spec(self):
      output_spec = super().output_spec()
  
      if self.concatenate is not False:
          output_spec.shape = tuple(
              2 * dims if axis == self.concatenate else dims
              for axis, dims in enumerate(output_spec.shape)
          )
  
      return output_spec
  
imports: import tensorflow
  from tensorforce.core import parameter_modules, SignatureDict, TensorSpec, tf_function, tf_util
  from tensorforce.core.layers import Layer
label_desc: Use image node_id 3 for calling the Deltafier obj's underlying member method code with example usage: obj.output_spec() and returns: output_spec