- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 25 for get_const (0.25 sec)
-
tensorflow/compiler/mlir/tf2xla/transforms/legalize_tf.cc
window_strides.push_back(stride); Value pad_low, pad_high; if (padding == tensorflow::Padding::EXPLICIT) { pad_low = get_const(get_int(explicit_paddings[2 * dim])); pad_high = get_const(get_int(explicit_paddings[2 * dim + 1])); } else { auto input_size = get_dim_value(op.getInput(), dim); auto filter_size = get_dim_value(op.getFilter(), i);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Jun 11 20:00:43 UTC 2024 - 291.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/collection_ops_util.cc
result_shape, buffer_type.getElementType()); return builder.create<TF::SliceOp>( loc, ArrayRef<Type>{slice_type}, ArrayRef<Value>{buffer, GetR1Const(slice_starts, builder, loc), GetR1Const(result_shape, builder, loc)}); } auto result_type = tensorflow::GetTypeFromTFTensorShape( result_shape, buffer_type.getElementType()); return builder.create<TF::GatherV2Op>(
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 14.5K bytes - Viewed (0) -
src/net/http/routing_index_test.go
g(collect) return pats } // A generator is a function that calls its argument with the strings that it // generates. type generator func(collect func(string)) // genConst generates a single constant string. func genConst(s string) generator { return func(collect func(string)) { collect(s) } } // genChoice generates all the strings in its argument. func genChoice(choices []string) generator {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Mar 21 22:14:00 UTC 2024 - 4K bytes - Viewed (0) -
build-logic/documentation/src/test/resources/org/gradle/test/JavaInterfaceWithConstants.java
package org.gradle.test; public interface JavaInterfaceWithConstants { String STRING_CONST = "some-string"; public static final int INT_CONST = 120;
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed Dec 09 08:14:05 UTC 2020 - 160 bytes - Viewed (0) -
build-logic/documentation/src/test/resources/org/gradle/test/JavaClassWithConstants.java
package org.gradle.test; public class JavaClassWithConstants { public static final String STRING_CONST = "some-string"; static final char CHAR_CONST = 'a'; static final int INT_CONST = 9; protected static final Object OBJECT_CONST = new JavaClassWithConstants(); static String ignored = "ignore"; String ignored2 = "ignore";
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed Dec 09 08:14:05 UTC 2020 - 353 bytes - Viewed (0) -
build-logic/documentation/src/test/resources/org/gradle/test/GroovyClassWithConstants.groovy
package org.gradle.test class GroovyClassWithConstants { static final int INT_CONST = 9 public static final String STRING_CONST = 'some-string' static final Object OBJECT_CONST = new GroovyClassWithConstants() static final def BIG_DECIMAL_CONST = 1.02 String ignored = 'ignore' final int ignored2 = 1001 static def ignored3
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed Dec 09 08:14:05 UTC 2020 - 356 bytes - Viewed (0) -
tensorflow/compiler/jit/increase_dynamism_for_auto_jit_pass.cc
auto it = cache_.find(constant); if (it == cache_.end()) { Output new_const = ops::Const(scope_.WithOpName("const_", constant), {constant}); it = cache_.insert({constant, new_const}).first; for (const Edge* e : control_deps_) { scope_.graph()->AddControlEdge(e->src(), new_const.node()); } } return it->second; } private: Scope scope_;
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Mar 12 06:33:33 UTC 2024 - 13.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/stablehlo/passes/quantize_weight.cc
rewriter.setInsertionPointAfter(op); // create new F16 constant op in that location ConstantOp new_const = rewriter.create<ConstantOp>( op->getLoc(), new_result_type, new_value_attr); ConvertOp dcast = rewriter.create<ConvertOp>(op->getLoc(), old_result_type, new_const); // replace all convert ops with dq op. convert_op->replaceAllUsesWith(dcast);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 9.9K bytes - Viewed (0) -
tensorflow/compiler/mlir/tfrt/analysis/test_cost_analysis_pass.cc
void runOnOperation() override { const auto& cost_analysis = getAnalysis<CostAnalysis>(); auto func_op = getOperation(); for (auto& op : func_op.front()) { op.emitRemark() << "Cost: " << cost_analysis.GetCost(&op); } } }; static mlir::PassRegistration<TestCostAnalysis> pass; } // namespace tfrt_compiler
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Feb 01 23:46:29 UTC 2023 - 1.6K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/tensor_list_ops_decomposition.cc
} if (failed(cutil::CreateInitBufferValue( element_shape, list.getMaxNumElements(), list, list.getElementDtype(), builder, &buffer))) { return failure(); } Value size = cutil::GetR1Const({0LL}, builder, list.getLoc()); list.getHandle().replaceAllUsesWith(buffer); (*buffer_to_size)[buffer] = {size, /*fixed=*/false}; list.erase(); return success(); }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 39.2K bytes - Viewed (0)