Python tensorflow.python.ops.math_ops.int32() Examples

The following are 10 code examples of tensorflow.python.ops.math_ops.int32(). You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may also want to check out all available functions/classes of the module tensorflow.python.ops.math_ops , or try the search function .
Example #1
Source File: student_t.py    From lambda-packs with MIT License 5 votes vote down vote up
def _param_shapes(sample_shape):
    return dict(
        zip(("df", "loc", "scale"), (
            [ops.convert_to_tensor(
                sample_shape, dtype=dtypes.int32)] * 3))) 
Example #2
Source File: student_t.py    From lambda-packs with MIT License 5 votes vote down vote up
def _event_shape_tensor(self):
    return constant_op.constant([], dtype=math_ops.int32) 
Example #3
Source File: student_t.py    From auto-alt-text-lambda-api with MIT License 5 votes vote down vote up
def _param_shapes(sample_shape):
    return dict(
        zip(("df", "mu", "sigma"), (
            [ops.convert_to_tensor(
                sample_shape, dtype=dtypes.int32)] * 3))) 
Example #4
Source File: student_t.py    From auto-alt-text-lambda-api with MIT License 5 votes vote down vote up
def _event_shape(self):
    return constant_op.constant([], dtype=math_ops.int32) 
Example #5
Source File: student_t.py    From deep_image_model with Apache License 2.0 5 votes vote down vote up
def _param_shapes(sample_shape):
    return dict(
        zip(("df", "mu", "sigma"), ([ops.convert_to_tensor(
            sample_shape, dtype=dtypes.int32)] * 3))) 
Example #6
Source File: student_t.py    From deep_image_model with Apache License 2.0 5 votes vote down vote up
def _event_shape(self):
    return constant_op.constant([], dtype=math_ops.int32) 
Example #7
Source File: student_t.py    From Serverless-Deep-Learning-with-TensorFlow-and-AWS-Lambda with MIT License 5 votes vote down vote up
def _param_shapes(sample_shape):
    return dict(
        zip(("df", "loc", "scale"), (
            [ops.convert_to_tensor(
                sample_shape, dtype=dtypes.int32)] * 3))) 
Example #8
Source File: student_t.py    From Serverless-Deep-Learning-with-TensorFlow-and-AWS-Lambda with MIT License 5 votes vote down vote up
def _event_shape_tensor(self):
    return constant_op.constant([], dtype=math_ops.int32) 
Example #9
Source File: student_t.py    From keras-lambda with MIT License 5 votes vote down vote up
def _param_shapes(sample_shape):
    return dict(
        zip(("df", "mu", "sigma"), (
            [ops.convert_to_tensor(
                sample_shape, dtype=dtypes.int32)] * 3))) 
Example #10
Source File: student_t.py    From keras-lambda with MIT License 5 votes vote down vote up
def _event_shape(self):
    return constant_op.constant([], dtype=math_ops.int32)