- Sort Score
- Result 10 results
- Languages All
Results 71 - 80 of 5,782 for Const8 (0.14 sec)
-
src/internal/types/testdata/check/conversions0.go
) // numeric constant conversions are in const1.src. func string_conversions() { const A = string(65) assert(A == "A") const E = string(-1) assert(E == "\uFFFD") assert(E == string(1234567890)) type myint int assert(A == string(myint(65))) type mystring string const _ mystring = mystring("foo") const _ = string(true /* ERROR "cannot convert" */ ) const _ = string(1.2 /* ERROR "cannot convert" */ )
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Sep 02 02:58:32 UTC 2022 - 1.7K bytes - Viewed (0) -
src/internal/types/testdata/check/constdecl.go
package constdecl import "math" import "unsafe" var v int // Const decls must be initialized by constants. const _ = v /* ERROR "not constant" */ const _ = math /* ERROR "not constant" */ .Sin(0) const _ = int /* ERROR "not an expression" */ func _() { const _ = v /* ERROR "not constant" */ const _ = math /* ERROR "not constant" */ .Sin(0) const _ = int /* ERROR "not an expression" */ }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Oct 31 16:11:16 UTC 2023 - 3.7K bytes - Viewed (0) -
tensorflow/compiler/jit/build_xla_ops_pass.cc
absl::StatusOr<Node*> ReplaceFunctionCallWithPartitionedCall( const GraphOptimizationPassOptions& options, const FunctionLibraryDefinition& flib_def, Node* n, Graph* g, const NameAttrList& func, const Scope& root) { string config_string = options.session_options->config.SerializeAsString(); int input_count = absl::c_count_if( n->in_edges(), [](const Edge* e) { return !e->IsControlEdge(); });
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Mar 12 06:33:33 UTC 2024 - 24.3K bytes - Viewed (0) -
test/fixedbugs/issue20185.go
// license that can be found in the LICENSE file. // Issue 20185: type switching on untyped values (e.g. nil or consts) // caused an internal compiler error. package p func F() { switch t := nil.(type) { // ERROR "cannot type switch on non-interface value|not an interface" default: _ = t } } const x = 1 func G() {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Sep 27 21:10:19 UTC 2022 - 581 bytes - Viewed (0) -
src/vendor/golang.org/x/crypto/sha3/shake.go
// by the method specified in 3.3 of [1]. // It is stored here in order for Reset() to be able to put context into // initial state. initBlock []byte } // Consts for configuring initial SHA-3 state const ( dsbyteShake = 0x1f dsbyteCShake = 0x04 rate128 = 168 rate256 = 136 ) func bytepad(input []byte, w int) []byte { // leftEncode always returns max 9 bytes
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jun 04 16:19:04 UTC 2024 - 5.4K bytes - Viewed (0) -
cmd/format-meta.go
// along with this program. If not, see <http://www.gnu.org/licenses/>. package cmd // Format related consts const ( // Format config file carries backend format specific details. formatConfigFile = "format.json" ) const ( // Version of the formatMetaV1 formatMetaVersionV1 = "1" ) // format.json currently has the format: // { // "version": "1",
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Fri Apr 23 18:58:53 UTC 2021 - 1.7K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/tests/canonicalize.mlir
// CHECK-DAG: %[[CONST1:.*]] = "tf.Const"() <{value = dense<[0, 3, 1, 2]> : tensor<4xi32>}> // CHECK-DAG: %[[CONST2:.*]] = "tf.Const"() <{value = dense<[0, 2, 3, 1]> : tensor<4xi32>}> // CHECK: %[[TRANS1:.*]] = "tf.Transpose"(%arg0, %[[CONST1]]) : (tensor<1x4x4x8xf32>, tensor<4xi32>) -> tensor<1x8x4x4xf32>
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu May 09 22:07:10 UTC 2024 - 132.1K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/experimental/tac/transforms/fold_constants_to_subgraph.cc
namespace tac { namespace { // This pass is used to fold tfl.const ops to each subgraph (func::FuncOp): // See the example below: // // In main: // %0 = tfl.const... // %1 = tfl.const... // %2 = call func_1(..., %0,...) // %3 = call func_2(..., %0, ..., %1...) // ... // // Then those consts will be copied into each function and replace their usage. // func_1: // %0 = tfl.const... // func_2: // %0 = tfl.const...
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 6.1K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/tests/flatbuffer2mlir/simple.mlir
%0 = "tfl.pseudo_const" () {value = dense<[[1, 2], [3, 4], [5, 6]]> : tensor<3x2xi32>} : () -> tensor<3x2xi32> loc("Const") %1 = "tfl.sub" (%arg0, %0) {fused_activation_function = "RELU6"} : (tensor<3x2xi32>, tensor<3x2xi32>) -> tensor<3x2xi32> loc("sub") %2 = "arith.constant" () {value = dense<10> : tensor<i32>} : () -> tensor<i32> loc("Const2")
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu May 02 09:41:17 UTC 2024 - 1.6K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/tensorflow/passes/insert_restore_op.cc
const auto filename_op_type = RankedTensorType::get( /*shape=*/{}, /*elementType=*/builder.getType<TF::StringType>()); const auto file_prefix_attr = builder.getStringAttr(kTfFilePrefix); const auto arg_attrs = builder.getDictionaryAttr({builder.getNamedAttr( kTfSavedModelIndexPathAttr, builder.getArrayAttr({file_prefix_attr}))}); const int insert_idx = func_op.getNumArguments();
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Sun Mar 12 06:02:20 UTC 2023 - 9K bytes - Viewed (0)