Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 40 for Decomposes (0.16 sec)

  1. tensorflow/compiler/mlir/tfr/integration/tfr_decompose_ctx.h

      GraphExportConfig export_confs_;
    };
    
    // Decomposes the NodeDef to a set of primitive ops according to the decompose
    // library loaded. Wrap the decomposed result in a FunctionDef.
    absl::StatusOr<FunctionDef> ExpandNode(const NodeDef& node_def,
                                           StringPiece func_name);
    
    // Decomposes the ops in the ModuleOp to a set of primitive ops according to
    // decompose library in the context.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Feb 26 11:12:54 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/quantization/stablehlo/utils/math_utils.h

    limitations under the License.
    ==============================================================================*/
    
    #include "mlir/Support/LogicalResult.h"  // from @llvm-project
    
    namespace mlir::quant::stablehlo {
    
    // Decomposes a given floating point value num into a normalized and quantized
    // fraction and an integral power of two.
    LogicalResult QuantizeMultiplier(double double_multiplier,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Sep 18 07:43:59 UTC 2023
    - 1.3K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/lite/transforms/decompose_hybrid_quantization.cc

    See the License for the specific language governing permissions and
    limitations under the License.
    ==============================================================================*/
    
    // This transformation pass decomposes dense operations that assume
    // support for hybrid quantization. These cases cover when a dense operation
    // (e.g. matmul) has both quantized and unquantized inputs by dequantizing
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 5.8K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tfr/python/op_reg_gen.py

              compose_dec.append(dec)
    
        if not compose_dec:
          # skip a non-composition function
          return
        elif len(compose_dec) > 1:
          raise KeyError('More than one TF ops decomposes for.')
    
        all_dec_args = {}
        for arg_name, arg_value in zip(_COMPOSITE_ARG_LIST, compose_dec[0].args):
          all_dec_args[arg_name] = self.visit(arg_value)
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Sep 28 21:37:05 UTC 2021
    - 5K bytes
    - Viewed (0)
  5. src/cmd/vendor/golang.org/x/tools/go/analysis/passes/testinggoroutine/testinggoroutine.go

    	return &asyncCall{region: call, async: call, scope: fun, fun: fun}
    }
    
    var forbidden = []string{
    	"FailNow",
    	"Fatal",
    	"Fatalf",
    	"Skip",
    	"Skipf",
    	"SkipNow",
    }
    
    // forbiddenMethod decomposes a call x.m() into (x, x.m, m) where
    // x is a variable, x.m is a selection, and m is the static callee m.
    // Returns (nil, nil, nil) if call is not of this form.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 02:20:05 UTC 2024
    - 7.8K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/lite/quantization/numerical_utils_test.cc

    TEST(NumericalUtils, QuantizeMultiplier) {
      // Decompose multiplier larger than 1.
      ASSERT_FLOAT_EQ(ComposeScale(QuantizeMultiplier(1.0e6)), 1.0e6);
      ASSERT_FLOAT_EQ(ComposeScale(QuantizeMultiplier(1.0e3)), 1.0e3);
      ASSERT_FLOAT_EQ(ComposeScale(QuantizeMultiplier(10.)), 10.);
      ASSERT_FLOAT_EQ(ComposeScale(QuantizeMultiplier(5.)), 5.);
      ASSERT_FLOAT_EQ(ComposeScale(QuantizeMultiplier(2.)), 2.);
    
      // Decompose multiplier between 1.0 and 1e-6.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Apr 08 01:38:03 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/lite/stablehlo/transforms/passes.td

      let constructor = "mlir::odml::CreateComposeUniformQuantizedTypePass()";
      let description = [{
        Identifies uniform quantization patterns and composes them to uniform
        quantized types. This pass targets a specific set of models that are
        quantized from the framework level, which produces "decomposed"
        quantization patterns due to the limitations of the framework.
    
        In the long term it is desired that the framework produces uniform
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 21:59:06 UTC 2024
    - 5.6K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tfr/integration/tfr_decompose_ctx_test.cc

                        .Input(src_list)
                        .Finalize(&test_node);
      EXPECT_TRUE(status.ok());
      auto decomposed = test_ctx_->ExpandNode(test_node, "test");
      EXPECT_TRUE(decomposed.ok());
      std::vector<NodeAndType> expected_results{{"Identity", DT_FLOAT}};
      EXPECT_THAT(NodesSequenceOf(decomposed.value()),
                  ElementsAreArray(expected_results));
    }
    
    TEST_F(TFRDecomposeContextTest, FLOAT_3_ins) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Sep 06 19:12:29 UTC 2023
    - 5.8K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tfr/integration/tfr_decompose_ctx.cc

    }
    
    Status TFRDecomposeContext::DecomposeGraph(mlir::ModuleOp user_module) {
      // Call the decompose passes by using the external symbol table.
      if (failed(pm_.run(user_module))) {
        return errors::Internal("Failed to run the decompose passes.");
      }
      return absl::OkStatus();
    }
    
    // Constructor of the decompose context.
    TFRDecomposeContext::TFRDecomposeContext(mlir::ModuleOp tfr_module)
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Apr 29 02:34:43 UTC 2024
    - 9.1K bytes
    - Viewed (0)
  10. src/cmd/compile/internal/ssa/location.go

    // variable that has been decomposed into multiple stack slots.
    // As an example, a string could have the following configurations:
    //
    //	          stack layout              LocalSlots
    //
    //	Optimizations are disabled. s is on the stack and represented in its entirety.
    //	[ ------- s string ---- ] { N: s, Type: string, Off: 0 }
    //
    //	s was not decomposed, but the SSA operates on its parts individually, so
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 11 16:34:30 UTC 2022
    - 3.1K bytes
    - Viewed (0)
Back to top