Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for cond_true (0.25 sec)

  1. tensorflow/compiler/mlir/quantization/tensorflow/python/integration_test/quantize_model_test.py

          if func.signature.name.startswith('cond_false'):
            self.assertTrue(
                any(map(_is_quantized_function_call_node, func.node_def))
            )
          elif func.signature.name.startswith('cond_true'):
            self.assertFalse(
                any(map(_is_quantized_function_call_node, func.node_def))
            )
    
      # Run this test only with the eager mode.
      @test_util.run_v2_only
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 17 03:36:50 UTC 2024
    - 235.6K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tensorflow/ir/tf_ops_n_z.cc

        return op.emitOpError()
               << "condition should yield a tensor<i1> and forward the arguments";
    
      auto cond_type =
          cond_yield->getOperand(0).getType().dyn_cast<RankedTensorType>();
      if (!cond_type || !cond_type.getShape().equals({}) ||
          !cond_type.getElementType().isInteger(/*width=*/1))
        return op.emitOpError()
               << "condition should have a single tensor<i1> result";
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 09 22:07:10 UTC 2024
    - 170.8K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/lite/stablehlo/transforms/uniform_quantized_stablehlo_to_tfl_pass.cc

      void rewrite(stablehlo::SelectOp op,
                   PatternRewriter& rewriter) const override {
        Value pred = op.getOperand(0);
        Value on_true = op.getOperand(1);
        Value on_false = op.getOperand(2);
        rewriter.replaceOpWithNewOp<TFL::SelectV2Op>(op, pred, on_true, on_false);
      }
    };
    
    // Rewrites quantized stablehlo.concatenate to tfl.concatenation.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Apr 22 09:00:19 UTC 2024
    - 99.8K bytes
    - Viewed (0)
Back to top