Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 382 for get_operations (0.38 sec)

  1. tensorflow/compiler/mlir/lite/transforms/get_arithmetic_count.cc

      void runOnOperation() override;
    };
    
    void GetArithmeticCountPass::runOnOperation() {
      auto func = getOperation();
      OpBuilder builder(func);
      func->walk([&](TflArithmeticCountOpInterface arithmetic_count_op) {
        Operation* op = arithmetic_count_op.getOperation();
        int64_t arithmetic_count = arithmetic_count_op.GetArithmeticCount(op);
        auto attr =
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Oct 07 21:08:41 UTC 2022
    - 2.5K bytes
    - Viewed (0)
  2. pkg/util/tolerations/tolerations_test.go

    		expected: []string{"all"},
    	}}
    
    	for _, test := range tests {
    		t.Run(test.name, func(t *testing.T) {
    			actual := MergeTolerations(getTolerations(test.a), getTolerations(test.b))
    			require.Len(t, actual, len(test.expected))
    			for i, expect := range getTolerations(test.expected) {
    				assert.Equal(t, expect, actual[i], "expected[%d] = %s", i, test.expected[i])
    			}
    		})
    	}
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Aug 26 22:25:49 UTC 2019
    - 11.4K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/lite/transforms/runtime_verify.cc

      explicit RuntimeVerifyPass() {}
    
     private:
      void runOnOperation() override;
    };
    
    void RuntimeVerifyPass::runOnOperation() {
      getOperation().walk([&](TflRuntimeVerifyOpInterface op) {
        if (failed(op.VerifyTflRuntimeConstraints(
                op.getOperation(), /*emit_error_on_verify_fail=*/true)))
          signalPassFailure();
      });
    }
    }  // namespace
    
    // Verifies TFL runtime constraints.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Oct 07 21:08:41 UTC 2022
    - 1.9K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tensorflow/transforms/decompose_optionals.cc

        mlir::SymbolRefAttr sym = callable.dyn_cast<mlir::SymbolRefAttr>();
        auto symbol =
            mlir::SymbolTable::lookupNearestSymbolFrom(call.getOperation(), sym);
        if (!symbol) return failure();
        auto f = llvm::dyn_cast<mlir::func::FuncOp>(symbol);
    
        if (call.getOperation()->getNumOperands() !=
            f.getBody().front().getNumArguments()) {
          return failure();  // RemoteCall et al
        }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Jun 12 21:18:05 UTC 2024
    - 9.8K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tf2xla/internal/passes/xla_cluster_formation.cc

        auto call = llvm::cast<CallOpInterface>(pcall_op.getOperation());
        auto callee =
            llvm::cast<FuncOp>(call.resolveCallable(&symbol_table_collection));
        callee->setAttr(noinline_attr_name, builder.getBoolAttr(true));
      }
      return mlir::success();
    }
    
    void XlaClusterFormationPass::runOnOperation() {
      ModuleOp module = getOperation();
      SymbolTableCollection symbol_table_collection;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Dec 19 19:09:44 UTC 2023
    - 6K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tensorflow/transforms/drop_while_shape_invariant.cc

      if (llvm::isa<WhileOp, WhileRegionOp>(op))
        op->removeAttr(kShapeInvariantAttr);
    }
    void DropWhileShapeInvariantPass::runOnOperation() {
      getOperation().walk([](Operation* op) { DropWhileShapeInvariantAttr(op); });
    }
    
    void DropWhileShapeInvariantInDeviceClusterPass::runOnOperation() {
      getOperation().walk([](tf_device::ClusterOp cluster) {
        cluster.walk([](Operation* op) { DropWhileShapeInvariantAttr(op); });
      });
    }
    }  // namespace
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Oct 05 23:50:19 UTC 2022
    - 2.4K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tfr/passes/decompose.cc

        Operation* inlined_point = call_op.getOperation();
        Operation* after_inlined_point =
            &*std::next(Block::iterator(call_op.getOperation()));
    
        // Use the inliner to replace all the uses of the call_op by its
        // composition.
        if (failed(inlineCall(inliner,
                              cast<CallOpInterface>(call_op.getOperation()),
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 14.6K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/lite/experimental/tac/transforms/cost_model.cc

      int64_t total_size_transferred = 0;
      for (auto input : to_graph.getOperands()) {
        Operation* input_op = input.getDefiningOp();
        if (input_op && input_op == from_graph.getOperation()) {
          auto input_type =
              mlir::dyn_cast_or_null<RankedTensorType>(input.getType());
          if (input_type == nullptr || !input_type.hasStaticShape()) continue;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 7.3K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/lite/transforms/decompose_hybrid_quantization.cc

     public:
      using OpRewritePattern<SrcOp>::OpRewritePattern;
    
      LogicalResult matchAndRewrite(SrcOp srcop,
                                    PatternRewriter &rewriter) const final {
        Operation *op = srcop.getOperation();
        bool allTypesFp = true;
        bool allTypesQuantizedOrInt = true;
        for (auto operand : op->getOperands()) {
          ShapedType type = mlir::dyn_cast<ShapedType>(operand.getType());
          if (!type) continue;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 5.8K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/lite/quantization/tensorflow/tf_to_quant.cc

        }
        // Use the min/max from the operands and the num_bits and narrow_range
        // attribute to create the quantization parameter for the new quantize op.
        rewriter.setInsertionPointAfter(tf_op.getOperation());
        IntegerAttr num_bits = rewriter.getI64IntegerAttr(tf_op.getNumBits());
        BoolAttr narrow_range = rewriter.getBoolAttr(tf_op.getNarrowRange());
        Type res_type = tf_op.getType();
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 8.1K bytes
    - Viewed (0)
Back to top