Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 8,595 for fusing (0.17 sec)

  1. src/cmd/compile/internal/ssa/branchelim.go

    			simple = bb
    			post = other
    			break
    		}
    	}
    	if simple == nil || len(post.Preds) != 2 || post == dom {
    		return false
    	}
    
    	// We've found our diamond CFG of blocks.
    	// Now decide if fusing 'simple' into dom+post
    	// looks profitable.
    
    	// Check that there are Phis, and that all of them
    	// can be safely rewritten to CondSelect.
    	hasphis := false
    	for _, v := range post.Values {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 30 17:46:51 UTC 2022
    - 12.7K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/quantization/stablehlo/python/integration_test/quantize_model_test_base.py

                data_format='NHWC',
                name='sample/conv',
            )
            if bias_fn is not None:
              out = nn_ops.bias_add(out, self.bias)
            if has_batch_norm:
              # Fusing is supported for non-training case.
              out, _, _, _, _, _ = nn_ops.fused_batch_norm_v3(
                  out, scale, offset, mean, variance, is_training=False
              )
            if activation_fn is not None:
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 14 06:31:57 UTC 2024
    - 18.2K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/quantization/tensorflow/python/integration_test/quantize_model_test_base.py

                padding='SAME',
                data_format='NHWC',
            )
            if has_bias:
              out = nn_ops.bias_add(out, self.bias)
            if has_batch_norm:
              # Fusing is supported for non-training case.
              out, _, _, _, _, _ = nn_ops.fused_batch_norm_v3(
                  out, scale, offset, mean, variance, is_training=False
              )
            if activation_fn is not None:
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Mar 21 08:51:46 UTC 2024
    - 51.2K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tensorflow/ir/tf_device.cc

        // If the corresponding result of the cluster op is used in some resource
        // update op, do not eliminate the result. Such assignment ops could be for
        // device resources and are required during fusing of the execute op and
        // the resource update ops.
        bool is_used_for_resource_write = llvm::any_of(
            op.getResult(operand.getOperandNumber()).getUsers(),
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 33.4K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tensorflow/transforms/executor_tpuv1_island_coarsening.cc

          // Found an operand that isn't scheduled yet, return true.
          return true;
        }
      }
      return false;
    }
    
    // Sorts the operations in the provided range to enforce dominance.
    // This is useful after fusing / reorganizing Operations in a block and later
    // needing to readjust the ordering to ensure dominance.
    LogicalResult SortTopologically(Block::iterator begin, Block::iterator end) {
      Block* block = begin->getBlock();
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 17 17:58:54 UTC 2024
    - 27.6K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/lite/transforms/optimize_patterns.td

            $filter_width, $filter_height, ActFnAttr),
        [(HasOneUse $pool_out)]>;
    }
    
    // TODO(hinsu): Also fuse ops corresponding to SIGN_BIT fused
    // activation functions.
    // Currently we're not fusing tanh, sigmoid, hard_swish and other activations
    // those cannot be simply translated into clamping.
    foreach actFnPair = [[TFL_ReluOp, TFL_AF_Relu],
                         [TFL_Relu6Op, TFL_AF_Relu6],
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 16 20:31:41 UTC 2024
    - 66.4K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/quantization/stablehlo/passes/quantization_patterns.cc

    namespace mlir::quant::stablehlo {
    
    namespace {
    
    using ::mlir::quant::FindUserOfType;
    using ::mlir::quant::TryCast;
    using ::mlir::stablehlo::AddOp;
    using ::mlir::stablehlo::BroadcastInDimOp;
    using ::mlir::stablehlo::ConcatenateOp;
    using ::mlir::stablehlo::ConvolutionOp;
    using ::mlir::stablehlo::DotGeneralOp;
    using ::mlir::stablehlo::DynamicBroadcastInDimOp;
    using ::mlir::stablehlo::GatherOp;
    using ::mlir::stablehlo::GetDimensionSizeOp;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 03 06:04:36 UTC 2024
    - 41.7K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/quantization/common/quantization_lib/quantization_utils.h

    inline constexpr double kNearZeroTolerance = 1.0e-6;
    
    using QuantParams = QuantizedType;
    using QuantSpec = QuantizationSpecs;
    using SignedInteger = std::pair<unsigned, unsigned>;  // bitwidth and sign
    using QuantParamsForResults = llvm::SmallVector<QuantizedType, 4>;
    using AccumulatorScaleFunc =
        std::function<QuantizedType(const std::vector<QuantizedType>&, int, bool)>;
    using BiasParamsMap =
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Apr 24 20:30:06 UTC 2024
    - 41.7K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/lite/transforms/optimize.cc

          }
        }
    
        return true;
      }
    };
    
    using ScalarizeSplatConstantForSub =
        ScalarizeSplatConstantForBroadcastableOps<TFL::SubOp>;
    using ScalarizeSplatConstantForAdd =
        ScalarizeSplatConstantForBroadcastableOps<TFL::AddOp>;
    using ScalarizeSplatConstantForMul =
        ScalarizeSplatConstantForBroadcastableOps<TFL::MulOp>;
    using ScalarizeSplatConstantForDiv =
    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. docs/en/docs/advanced/using-request-directly.md

    # Using the Request Directly
    
    Up to now, you have been declaring the parts of the request that you need with their types.
    
    Taking data from:
    
    * The path as parameters.
    * Headers.
    * Cookies.
    * etc.
    
    And by doing so, **FastAPI** is validating that data, converting it and generating documentation for your API automatically.
    
    But there are situations where you might need to access the `Request` object directly.
    
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Sat Aug 29 14:02:58 UTC 2020
    - 2.3K bytes
    - Viewed (0)
Back to top