Search Options

Results per page
Sort
Preferred Languages
Advance

Results 81 - 90 of 137 for matmul_0 (0.13 sec)

  1. tensorflow/compiler/mlir/tensorflow/tests/tf_saved_model/import_restore_v1.py

    
    def Test():
    
      x = tf.constant([[1.0], [1.0], [1.0]])
      y = tf.compat.v1.get_variable(
          name='y',
          shape=(1, 3),
          initializer=tf.random_normal_initializer(),
          trainable=True)
      r = tf.matmul(x, y)
    
      tensor_info_x = tf.compat.v1.saved_model.utils.build_tensor_info(x)
      tensor_info_r = tf.compat.v1.saved_model.utils.build_tensor_info(r)
    
      return {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Oct 31 08:49:35 UTC 2023
    - 2.8K bytes
    - Viewed (1)
  2. tensorflow/compiler/mlir/tfr/README.md

    (TODO)
    
    ## Authoring Op Composition in Python
    
    The composable TF provides a single API to define a new op with its composition
    at the same time. For example, the following code defines a new
    `FusedFullyConnected` op, which have `MatMul`, `Add` and some
    `activation function` (specified by an op attribute) fused.
    
    
    ```python
    import tensorflow as tf
    
    @Composite(
        'FusedFullyConnected',
        inputs=['input_: T', 'filter_: T', 'bias: T'],
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Mar 29 18:32:13 UTC 2022
    - 6.2K bytes
    - Viewed (0)
  3. tensorflow/cc/framework/scope.h

    ///     int idx = 3;
    ///     auto b = Variable(linear.WithOpName("b_", idx),
    ///                       {2}, DT_FLOAT);
    ///     auto x = Const(linear, {...});  // name: "linear/Const"
    ///     auto m = MatMul(linear, x, W);  // name: "linear/MatMul"
    ///     auto r = BiasAdd(linear, m, b); // name: "linear/BiasAdd"
    ///
    /// Scope lifetime:
    ///
    /// A new scope is created by calling Scope::NewRootScope. This creates some
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sat Apr 13 09:08:33 UTC 2024
    - 10.5K bytes
    - Viewed (0)
  4. tensorflow/c/eager/gradient_checker_test.cc

                       absl::Span<AbstractTensorHandle* const> inputs,
                       absl::Span<AbstractTensorHandle*> outputs) {
      return ops::MatMul(ctx, inputs[0], inputs[1], &outputs[0],
                         /*transpose_a=*/false,
                         /*transpose_b=*/false, "MatMul");
    }
    
    Status MulModel(AbstractContext* ctx,
                    absl::Span<AbstractTensorHandle* const> inputs,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Apr 14 10:03:59 UTC 2023
    - 6.5K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/quantization/tensorflow/cc/constant_fold.cc

    // specs.
    absl::flat_hash_set<int> GetQuantizableOperands(Operation* op) {
      absl::flat_hash_set<int> quantizable_operands;
      if (isa<TF::DepthwiseConv2dNativeOp, TF::Conv2DOp, TF::Conv3DOp, TF::MatMulOp,
              TF::BatchMatMulOp>(op)) {
        quantizable_operands.insert(1);
      } else if (isa<TF::GatherOp>(op)) {
        quantizable_operands.insert(0);
      } else if (auto einsum_op = dyn_cast<TF::EinsumOp>(op)) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 17 17:58:54 UTC 2024
    - 5K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/quantization/tensorflow/tests/replace_cast_hacks_with_tf_xla_ops.mlir

    // CHECK-DAG: %[[CONST:.*]] = "tf.Const"() <{value = dense<-131072> : tensor<1x3xi32>}> : () -> tensor<1x3xi32>
    // CHECK: %[[MATMUL:.*]] = "tf.XlaDotV2"({{.*}}, %[[WEIGHT]])
    // CHECK-SAME: (tensor<1x1024xi8>, tensor<1024x3xi8>) -> tensor<1x3xi32>
    // CHECK: %[[SUB:.*]] = "tf.Sub"(%[[MATMUL]], %[[CONST]]) : (tensor<1x3xi32>, tensor<1x3xi32>) -> tensor<1x3xi32>
    }
    
    // -----
    
    module attributes {} {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Oct 30 06:52:55 UTC 2023
    - 81K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/quantization/tensorflow/python/integration_test/quantize_model_test.py

          ]
      )
      def matmul(self, matmul_input: core.Tensor) -> Mapping[str, core.Tensor]:
        """Performs a matrix multiplication.
    
        Args:
          matmul_input: Input tensor to matmul with the filter.
    
        Returns:
          A map of: output key -> output result.
        """
        out = math_ops.matmul(matmul_input, self.matmul_filters)
    
        return {'output': out}
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 17 03:36:50 UTC 2024
    - 235.6K bytes
    - Viewed (0)
  8. tensorflow/cc/framework/gradient_checker_test.cc

    #include "tensorflow/core/platform/test.h"
    #include "tensorflow/core/util/equal_graph_def.h"
    
    namespace tensorflow {
    namespace {
    
    using ops::Complex;
    using ops::Const;
    using ops::Div;
    using ops::MatMul;
    using ops::Placeholder;
    using ops::Real;
    using ops::Split;
    using ops::Square;
    using ops::Stack;
    using ops::Sub;
    using ops::Unstack;
    
    TEST(GradientCheckerTest, BasicFloat) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Aug 06 15:54:08 UTC 2018
    - 6.7K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tfrt/tests/tfrt_fallback/batching_fallback.mlir

      %ch1 = tfrt.merge.chains %ch, %ch0 : !tfrt.chain, !tfrt.chain
    
      %ch2 = tfrt_fallback_async.createop(%ch1) key(0) device("/CPU:0") "tf.MatMul"() {T = i32} num_args(2)
    
      %ch3, %result = tfrt_fallback_async.executeop.seq(%ch2) key(0) cost(100) device("/CPU:0") "tf.MatMul"(%a, %b) {T = i32}  : 1
    
      %s = "tfrt_test.get_string"() { value = "Running @matmul_cpu" } : () -> !tfrt.string
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jul 18 22:58:56 UTC 2023
    - 8.6K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tensorflow/tests/tf_saved_model/shared_variable_v1.py

    
    def Test():
    
      x = tf.constant([[1.0], [1.0], [1.0]])
      y = tf.get_variable(
          name='y',
          shape=(1, 3),
          initializer=tf.random_normal_initializer(),
          trainable=True)
      r = tf.matmul(x, y)
    
      tensor_info_x = tf.saved_model.utils.build_tensor_info(x)
      tensor_info_r = tf.saved_model.utils.build_tensor_info(r)
    
      signature_def = tf.saved_model.signature_def_utils.build_signature_def(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Oct 31 08:49:35 UTC 2023
    - 2.7K bytes
    - Viewed (0)
Back to top