Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 19 of 19 for cond_false (0.21 sec)

  1. src/net/http/fs.go

    			return condTrue
    		} else {
    			return condFalse
    		}
    	}
    	// The If-Range value is typically the ETag value, but it may also be
    	// the modtime date. See golang.org/issue/8367.
    	if modtime.IsZero() {
    		return condFalse
    	}
    	t, err := ParseTime(ir)
    	if err != nil {
    		return condFalse
    	}
    	if t.Unix() == modtime.Unix() {
    		return condTrue
    	}
    	return condFalse
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 09 17:06:47 UTC 2024
    - 31.1K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/quantization/tensorflow/python/integration_test/quantize_model_test.py

          return node_def.op == 'PartitionedCall' and node_def.attr[
              'f'
          ].func.name.startswith('quantized_')
    
        for func in output_graphdef.library.function:
          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(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 17 03:36:50 UTC 2024
    - 235.6K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/lite/transforms/optimize_functional_ops.cc

            !cond_type.getElementType().isInteger(/*width=*/1))
          return failure();
    
        // Identify the branch to inline.
        bool cond_value = (*cond.value_begin<APInt>()).getSExtValue();
        func::FuncOp func = cond_value ? then_func : else_func;
    
        // Make sure that the function has exactly one block to simplify inlining.
        // TFLite doesn't use control flow with blocks so functions with more than
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 6.6K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tensorflow/transforms/sparsecore/embedding_pipelining.cc

                             TF::TPUCompilationResultOp& compilation_op,
                             Value& cond_value, Callers& callers,
                             const std::vector<Value>& loop_operands_nm0,
                             TF::StatefulPartitionedCallOp& caller) {
      const std::string name = "start_step_0";
    
      AddAssertion(builder, loc, cond_value,
                   "[StartStep0] Auto-pipelining requires at least two steps.");
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 92.9K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tf2xla/transforms/legalize_tf_patterns.td

    //===----------------------------------------------------------------------===//
    
     def : Pat<(TF_SelectV2Op MHLO_Tensor:$pred, MHLO_Tensor:$on_true,
                MHLO_Tensor:$on_false),
               (CHLO_BroadcastSelectOp $pred, $on_true, $on_false)>;
    
    //===----------------------------------------------------------------------===//
    // PartitionedCall and LegacyCall op patterns.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon May 06 18:46:23 UTC 2024
    - 34.8K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/quantization/stablehlo/tests/passes/insert_calibration_statistics_saver.mlir

        %cst = "tf.Const"() <{value = dense<true> : tensor<i1>}> {device = ""} : () -> tensor<i1>
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 01:09:50 UTC 2024
    - 24.3K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/quantization/tensorflow/tests/insert_custom_aggregation_ops.mlir

        %cst = "tf.Const"() <{value = dense<true> : tensor<i1>}> {device = ""} : () -> tensor<i1>
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 10 04:07:09 UTC 2024
    - 32.1K bytes
    - Viewed (0)
  8. tensorflow/compiler/jit/deadness_analysis_test.cc

    }
    
    TEST(DeadnessAnalysisTest, ConstantFalseSwitchCondition) {
      Scope root = Scope::NewRootScope().ExitOnError();
    
      Output constant_false = ops::Const(root.WithOpName("const_false"), false);
      Output value = ops::Placeholder(root.WithOpName("value"), DT_FLOAT);
      ops::Switch sw(root.WithOpName("switch"), value, constant_false);
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Feb 22 06:59:07 UTC 2024
    - 51.6K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/lite/stablehlo/transforms/uniform_quantized_stablehlo_to_tfl_pass.cc

                   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.
    // TODO: b/322428814 - Add StableHLO quantizer integration tests for ODML.
    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