Skip to content

Remove deprecated AffineScalar bijector  #31

@thegodone

Description

@thegodone

How to fix this deprecated function with recent tfp ?

 71 self.logisitc_match = tfb.Chain(

---> 72 [tfb.AffineScalar(shift=tf.cast(0, tf.float64), scale=tf.cast(1, tf.float64)), tfb.Sigmoid()])

AttributeError: module 'tensorflow_probability.python.bijectors' has no attribute 'AffineScalar'

proposal is to replace by shift function but it's exactly same function as in line for logistic_gap ...

   self.logistic_gap = tfb.Chain(
        [tfb.Shift(tf.cast(0, tf.float64))(tfb.Scale(tf.cast(1, tf.float64))), tfb.Sigmoid()])
    self.logisitc_match = tfb.Chain(
        [tfb.Shift(tf.cast(0, tf.float64))(tfb.Scale(tf.cast(1, tf.float64))), tfb.Sigmoid()])

any idea ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions