Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 256 for onStop (0.14 sec)

  1. tensorflow/compiler/mlir/tensorflow/transforms/unroll_batch_matmul.cc

      Type resultType = RankedTensorType::get(shape, element_type);
      auto constant_attr = DenseElementsAttr::get(shape_spec_type, shape);
      auto shape_tensor =
          rewriter.create<TF::ConstOp>(loc, shape_spec_type, constant_attr);
      return rewriter.create<TF::ReshapeOp>(loc, resultType, /*tensor=*/value,
                                            /*shape=*/shape_tensor);
    }
    
    template <typename BatchMatMulOpType>
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 11.6K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/lite/utils/lstm_utils.cc

    }
    
    TF::ConstOp Create1DConstantOp(const std::vector<int>& value, Location loc,
                                   OpBuilder* builder) {
      auto type =
          mlir::RankedTensorType::get(value.size(), builder->getIntegerType(32));
      auto dense_values = mlir::DenseIntElementsAttr::get(type, value);
      return builder->create<TF::ConstOp>(loc, dense_values);
    }
    
    TF::ConstOp CreateScalarConstantOp(int value, Location loc,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 36.2K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/lite/experimental/tac/common/utils.h

    inline bool IsNonConstOp(Operation* op) {
      if (!op) return false;
      if (llvm::isa<arith::ConstantOp, mlir::func::ConstantOp>(op)) return false;
      if (op->hasTrait<OpTrait::ConstantLike>()) return false;
      if (llvm::isa<TFL::ConstOp, TFL::QConstOp>(op)) return false;
      return true;
    }
    
    // Returns true if 'op' is a terminator op, otherwise false.
    bool IsTerminatorOp(Operation* op);
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 3.5K bytes
    - Viewed (0)
  4. pkg/scheduler/framework/plugins/tainttoleration/taint_toleration_test.go

    	tests := []struct {
    		name       string
    		pod        *v1.Pod
    		node       *v1.Node
    		wantStatus *framework.Status
    	}{
    		{
    			name: "A pod having no tolerations can't be scheduled onto a node with nonempty taints",
    			pod:  podWithTolerations("pod1", []v1.Toleration{}),
    			node: nodeWithTaints("nodeA", []v1.Taint{{Key: "dedicated", Value: "user1", Effect: "NoSchedule"}}),
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 12 13:26:09 UTC 2024
    - 17.5K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/quantization/tensorflow/cc/constant_fold_test.cc

      ASSERT_THAT(test_func, NotNull());
    
      Operation* mul_op = FindOperationOfType<TF::MulOp>(test_func);
      SmallVector<Value> results = ConstantFoldOpIfPossible(mul_op);
      EXPECT_THAT(results, SizeIs(1));
      EXPECT_TRUE(isa<TF::ConstOp>(results[0].getDefiningOp()));
    }
    
    TEST_F(ConstantFoldingTest, NotFoldingIdentity) {
      constexpr absl::string_view kModuleCode = R"mlir(
        module {
          func.func @test_fold_constant() -> (tensor<1024x24x24x3xf32>) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 04 07:19:09 UTC 2024
    - 10.1K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/lite/quantization/lite/tfl_to_std.cc

          auto qcast = b.create<quantfork::QuantizeCastOp>(
              q.getLoc(), q.getOutput().getType(), q.getInput());
          q.getOutput().replaceAllUsesWith(qcast);
          q.erase();
        } else if (auto q = llvm::dyn_cast<ConstOp>(op)) {
          auto value = q.getValue();
          auto type = q.getResult().getType();
          if (arith::ConstantOp::isBuildableWith(value, type)) {
            auto c = b.create<arith::ConstantOp>(q.getLoc(), q.getValue());
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Apr 22 02:50:01 UTC 2024
    - 3.5K bytes
    - Viewed (0)
  7. istioctl/pkg/writer/ztunnel/configdump/configdump_test.go

    		wantErr            bool
    	}{
    		{
    			name:             "returns expected secret summary onto Stdout",
    			callPrime:        true,
    			wantOutputSecret: "testdata/secretsummary.txt",
    		},
    		{
    			name:    "errors if config dump is not primed",
    			wantErr: true,
    		},
    		{
    			name:               "returns expected workload summary onto Stdout",
    			callPrime:          true,
    			wantOutputWorkload: "testdata/workloadsummary.txt",
    		},
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 06 20:18:34 UTC 2024
    - 3.6K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tfrt/tests/mlrt/tf_to_mlrt.mlir

      // CHECK-NEXT: [[PREFIX:%.*]] = tf_mlrt.constop
      %cst = "tf.Const"() {__op_key = 0: i32, value = dense<"restore_ariables"> : tensor<!tf_type.string>} : () -> tensor<!tf_type.string>
      // CHECK-NEXT: [[SLICE:%.*]] = tf_mlrt.constop
      %cst_0 = "tf.Const"()  {__op_key = 1: i32, value = dense<""> : tensor<1x!tf_type.string>} : () -> tensor<1x!tf_type.string>
      // CHECK-NEXT: [[NAME:%.*]] = tf_mlrt.constop
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 31 20:44:15 UTC 2024
    - 24.7K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/lite/transforms/optimize.cc

          auto mul_rhs = ExpandTo4DForConv(gamma_cst);
          broadcasted_gamma = rewriter.create<ConstOp>(loc, mul_rhs);
        } else if (isa<TFL::DepthwiseConv2DOp>(mul_op_lhs)) {
          auto mul_rhs = ExpandTo4DForDepthwiseConv(gamma_cst);
          broadcasted_gamma = rewriter.create<ConstOp>(loc, mul_rhs);
        } else {
          return failure();
        }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Apr 30 00:40:15 UTC 2024
    - 102.3K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tf2xla/transforms/legalize_tf_collective.cc

        IntegerAttr group_key = rewriter.getI32IntegerAttr(0);
    
        auto const_group_size = rewriter.create<TF::ConstOp>(
            assign_group->getLoc(), assign_group.getResult(0).getType(),
            group_size);
        auto const_group_key = rewriter.create<TF::ConstOp>(
            assign_group->getLoc(), assign_group.getResult(1).getType(), group_key);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 16K bytes
    - Viewed (0)
Back to top