Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 12 for transposes (0.37 sec)

  1. tensorflow/compiler/mlir/lite/tests/prepare-tf.mlir

      // CHECK: %[[TRANSPOSE:.*]] = "tf.Transpose"(%[[DEQUANT]], %[[CST]]) : (tensor<3x4xf32>, tensor<?xi32>) -> tensor<*xf32>
      // CHECK: %[[MATMUL:.*]] = "tf.MatMul"(%arg0, %[[TRANSPOSE]]) <{grad_a = false, grad_b = false, transpose_a = false, transpose_b = true}> : (tensor<2x3xf32>, tensor<*xf32>) -> tensor<2x4xf32>
      // CHECK: return %[[MATMUL]] : tensor<2x4xf32>
    }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 29 07:26:59 UTC 2024
    - 59.8K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/lite/transforms/optimize_patterns.td

      [(HasRank<2> $input),
       (AreLastTwoDimsTransposed $perm_value),
       (IsBoolAttrEqual<"false"> $adj_y)]>;
    
    // Replace conv-->transpose-->add with conv-->add-->transpose
    // The bias needs only reshape (i.e. ReshapeNCHWBiasToNHWC) and not transpose
    // because the bias's shape simply changes from NxCx1x1 to Nx1x1xC.
    def ReorderNCHWTransposeAdd : Pat <
      (TFL_AddOp:$add_op
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 16 20:31:41 UTC 2024
    - 66.4K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tensorflow/transforms/lower_tf.cc

        rewriter.replaceOpWithNewOp<ConcatV2Op>(op, op.getType(), expanded_inputs,
                                                axis_value);
        return success();
      }
    };
    
    // Lowers SpaceToBatchND by reducing to reshape(transpose(reshape(pad(input)))).
    //
    // Before rewrite:
    //   output = SpaceToBatchND(input, block_shape, paddings)
    // Let:
    //   [batch] + spatial_shape + remaining_shape = input.shape
    //   M = spatial_shape.rank
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 74.9K bytes
    - Viewed (0)
  4. tensorflow/c/c_api_test.cc

                           TF_Operation* r, const char* name,
                           bool transpose_a = false, bool transpose_b = false) {
        TF_OperationDescription* desc = TF_NewOperation(graph, "MatMul", name);
        if (transpose_a) {
          TF_SetAttrBool(desc, "transpose_a", 1);
        }
        if (transpose_b) {
          TF_SetAttrBool(desc, "transpose_b", 1);
        }
        TF_AddInput(desc, {l, 0});
        TF_AddInput(desc, {r, 0});
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Apr 15 03:35:10 UTC 2024
    - 96.9K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/lite/transforms/prepare_tf.cc

      TFL::populateWithGenerated(patterns);
      // TODO(fengliuai): Implement similar rule in the QuantizePass if the constant
      // folding hook of tfl.transpose and tfl.reshape are implemented.
      patterns.add<ReorderFakeQuantPattern<TF::ReshapeOp>,
                   ReorderFakeQuantPattern<TF::TransposeOp>>(ctx);
      // Remove redundant reshape ops.
      TF::ReshapeOp::getCanonicalizationPatterns(patterns, ctx);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 28 21:49:50 UTC 2024
    - 64.6K bytes
    - Viewed (0)
  6. tensorflow/compiler/jit/mark_for_compilation_pass.cc

            // [{X, Y}, {Size, Z}], the better clustering is Size with Y because the
            // output of size will be a small tensor while Y is a potentially large
            // tensor that must be computed and possible transposed/copied before
            // the second cluster executes.
            Node* n = GetOnlyNodeIn(*to);
            bool is_shape_consumer_op = n && IsShapeConsumerOp(*n);
            if (!is_shape_consumer_op) {
              return false;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Feb 21 12:19:41 UTC 2024
    - 85.3K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/lite/tests/prepare-quantize.mlir

      %dq = "tfl.dequantize"(%q) : (tensor<5x2x!quant.uniform<i8<-127:127>:f32, 1.113490e-03>>) -> tensor<5x2xf32>
      %t = "tfl.transpose"(%dq, %perm) : (tensor<5x2xf32>, tensor<2xi32>) -> tensor<2x5xf32>
      func.return %t : tensor<2x5xf32>
    
      // QDQ: %[[perm:.*]] = arith.constant dense<[1, 0]> : tensor<2xi32>
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 02 09:41:17 UTC 2024
    - 67.5K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tensorflow/tests/lower_tf.mlir

      // CHECK-DAG: [[RESHAPED:%.+]] = "tf.Reshape"([[PADDED]], [[RESHAPED_SHAPE]])
      // CHECK-DAG: [[PERMUTED:%.+]] = "tf.Transpose"([[RESHAPED]], [[PERMUTATION]])
      // CHECK-DAG: [[RESULT:%.+]] = "tf.Reshape"([[PERMUTED]], [[OUTPUT_SHAPE]])
      // CHECK-DAG: return [[RESULT]]
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Jan 05 18:35:42 UTC 2024
    - 92K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/quantization/stablehlo/python/integration_test/quantize_model_test.py

                  'concatenate',
                  'gather',
                  'max_pool',
                  'pad',
                  'reshape',
                  'select',
                  'slice',
                  'transpose',
              ),
          }])
      )
      @test_util.run_in_graph_and_eager_modes
      def test_matmul_and_same_scale_ptq_model(
          self,
          same_scale_op: str,
      ):
        input_shape = (2, 3, 1, 1024)
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 14 06:31:57 UTC 2024
    - 51.4K bytes
    - Viewed (0)
  10. platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/transform/ArtifactTransformBuildOperationIntegrationTest.groovy

        void checkExecuteTransformWorkOperations(List<BuildOperationRecord> executeWorkOps, List<String> skipMessages) {
            assert executeWorkOps.size() == skipMessages.size()
            [executeWorkOps, skipMessages].transpose().every { op, skipMessage ->
                verifyAll(op) {
                    details.workType == "TRANSFORM"
                    result.skipMessage == skipMessage
                }
            }
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Apr 12 16:27:38 UTC 2024
    - 67.8K bytes
    - Viewed (0)
Back to top