Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for new_fully_connected (0.14 sec)

  1. tensorflow/compiler/mlir/tfr/examples/mnist/mnist_train.py

        reshape = tf.reshape(max_pool2, [-1, flatten_size])
    
        # output shape: [-1, 1024]
        fc1 = gen_mnist_ops.new_fully_connected(reshape, self.weights['f3'],
                                                self.biases['b3'], 'RELU')
        # output shape: [-1, 10]
        return gen_mnist_ops.new_fully_connected(fc1, self.weights['f4'],
                                                 self.biases['b4'])
    
    
    def main(strategy):
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Oct 20 03:05:18 UTC 2021
    - 6.5K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tfr/examples/mnist/mnist_ops_test.py

        bias = tf.zeros([3])
        kwargs = {'input_': input_, 'filter_': filter_, 'bias': bias, 'act': 'RELU'}
    
        self._assertOpAndComposite([input_, filter_, bias],
                                   tf.function(gen_mnist_ops.new_fully_connected),
                                   ops_defs._composite_fully_connected, kwargs)
    
      def test_new_max_pool(self):
        input_ = tf.random.uniform([8, 4, 4, 1])
        kwargs = {
            'input_': input_,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Sep 28 21:37:05 UTC 2021
    - 4K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tfr/examples/mnist/ops_defs.py

              shape_1,
              grad,
              strides=strides,
              padding=padding,
              dilations=dilations,
              data_format='NHWC'), bias_grad
      ]
    
    
    @Composite(
        'NewFullyConnected',
        inputs=['input_: T', 'filter_: T', 'bias: T'],
        attrs=['act: {"", "RELU", "RELU6", "TANH"} = ""'],
        derived_attrs=['T: {float, int8}'],
        outputs=['o: T'])
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Aug 31 20:23:51 UTC 2023
    - 6.8K bytes
    - Viewed (0)
Back to top